feat(heartbeat): add rssi to heartbeat payload
WiFi signal strength (dBm) now included in every heartbeat message. Docs updated: MQTTDriver README, api-reference, heartbeat feature doc. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -408,7 +408,10 @@ void MQTTDriver::publishHeartbeat() {
|
||||
|
||||
// Uptime in milliseconds
|
||||
payload["uptime_ms"] = uptimeMs;
|
||||
|
||||
|
||||
// WiFi signal strength
|
||||
payload["rssi"] = WiFi.RSSI();
|
||||
|
||||
// Serialize to string
|
||||
String heartbeatMessage;
|
||||
serializeJson(doc, heartbeatMessage);
|
||||
|
||||
Reference in New Issue
Block a user