mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-26 22:22:16 +03:00
исправление серьезного бага графиков дневного расхода
This commit is contained in:
@@ -64,7 +64,9 @@ void webSocketEvent(uint8_t num, WStype_t type, uint8_t* payload, size_t length)
|
||||
String params = "{}";
|
||||
for (std::list<IoTItem*>::iterator it = IoTItems.begin(); it != IoTItems.end(); ++it) {
|
||||
if ((*it)->getSubtype() != "Loging") {
|
||||
if ((*it)->iAmLocal) jsonWriteStr(params, (*it)->getID(), (*it)->getValue());
|
||||
if ((*it)->getSubtype() != "LogingDaily") {
|
||||
if ((*it)->iAmLocal) jsonWriteStr(params, (*it)->getID(), (*it)->getValue());
|
||||
}
|
||||
}
|
||||
}
|
||||
sendStringToWs("params", params, num);
|
||||
|
||||
Reference in New Issue
Block a user