mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-26 22:22:16 +03:00
исправил баг данных в вебе
This commit is contained in:
@@ -289,14 +289,14 @@ void publishState() {
|
||||
|
||||
void handleMqttStatus(bool send) {
|
||||
String stateStr = getStateStr(mqtt.state());
|
||||
Serial.println(stateStr);
|
||||
// Serial.println(stateStr);
|
||||
jsonWriteStr_(errorsHeapJson, F("mqtt"), stateStr);
|
||||
if (!send) standWebSocket.broadcastTXT(errorsHeapJson);
|
||||
}
|
||||
|
||||
void handleMqttStatus(bool send, int state) {
|
||||
String stateStr = getStateStr(state);
|
||||
Serial.println(stateStr);
|
||||
// Serial.println(stateStr);
|
||||
jsonWriteStr_(errorsHeapJson, F("mqtt"), stateStr);
|
||||
if (!send) standWebSocket.broadcastTXT(errorsHeapJson);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user