diff --git a/src/MyESP.cpp b/src/MyESP.cpp index 7f4ec60e9..4cb83edde 100644 --- a/src/MyESP.cpp +++ b/src/MyESP.cpp @@ -2303,6 +2303,9 @@ void MyESP::_procMsg(AsyncWebSocketClient * client, size_t sz) { _shouldRestart = true; } else if (strcmp(command, "destroy") == 0) { _formatreq = true; + } else if (strcmp(command, "forcentp") == 0) { + myDebug("HHHH"); // XXX + NTP.getNtpTime(); } else if (strcmp(command, "geteventlog") == 0) { uint8_t page = doc["page"]; _sendEventLog(page); diff --git a/src/Ntp.h b/src/Ntp.h index 8371d1bb8..7eca60b9e 100644 --- a/src/Ntp.h +++ b/src/Ntp.h @@ -27,7 +27,6 @@ class NtpClient { static byte NTPpacket[NTP_PACKET_SIZE]; - private: static ICACHE_FLASH_ATTR time_t getNtpTime(); }; diff --git a/src/custom.js b/src/custom.js index 64f27e1d6..2b56a9de5 100644 --- a/src/custom.js +++ b/src/custom.js @@ -103,7 +103,7 @@ function listCustomStats() { } else { var color = ""; } - l.innerHTML = obj[i].model + ", Version:" + obj[i].version + ", ProductID:" + obj[i].productid + ", DeviceID:" + obj[i].deviceid; + l.innerHTML = obj[i].model + " (Version:" + obj[i].version + " ProductID:" + obj[i].productid + " DeviceID:0x" + obj[i].deviceid + ")"; l.className = "list-group-item list-group-item-" + color; list.appendChild(l); } diff --git a/src/ems-esp.cpp b/src/ems-esp.cpp index fd286139d..8a022583e 100644 --- a/src/ems-esp.cpp +++ b/src/ems-esp.cpp @@ -1713,9 +1713,13 @@ void WebCallback(JsonObject root) { JsonObject item = list.createNestedObject(); item["type"] = (it)->model_type; item["model"] = (it)->model_string; - item["deviceid"] = (it)->device_id; item["version"] = (it)->version; item["productid"] = (it)->product_id; + + char s[10]; + itoa((it)->device_id,s, 16); + item["deviceid"] = s; // convert to hex + } JsonObject thermostat = root.createNestedObject("thermostat"); diff --git a/src/websrc/myesp.htm b/src/websrc/myesp.htm index f023a704f..a1885100e 100644 --- a/src/websrc/myesp.htm +++ b/src/websrc/myesp.htm @@ -131,7 +131,7 @@