mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-30 11:59:12 +03:00
add time timer
This commit is contained in:
3
mqtt.ino
3
mqtt.ino
@@ -251,6 +251,9 @@ void sendAllData() { //берет строку json и ключи превра
|
||||
|
||||
String tmp = selectToMarker (current_config, ",");
|
||||
String topic = selectToMarker (tmp, ":");
|
||||
if (topic.indexOf("time") < 0) {
|
||||
state.replace(".", ":");
|
||||
}
|
||||
topic.replace("\"", "");
|
||||
String state = selectToMarkerLast (tmp, ":");
|
||||
state.replace("\"", "");
|
||||
|
||||
Reference in New Issue
Block a user