diff --git a/src/WiFiConfig.cpp b/src/WiFiConfig.cpp index b706727..9b079dc 100644 --- a/src/WiFiConfig.cpp +++ b/src/WiFiConfig.cpp @@ -303,6 +303,7 @@ void WiFiConfig::_handleReset(void) void WiFiConfig::_handleInfo(void) { String reply; + char buff[32]; reply.reserve(3000); @@ -335,10 +336,12 @@ void WiFiConfig::_handleInfo(void) reply.concat(macaddress); reply.concat(F("ESP Chip ID:")); - reply.concat(ESP.getChipId()); + sprintf_P(buff, PSTR("%06X"), ESP.getChipId()); + reply.concat(buff); reply.concat(F("Flash Chip ID:")); - reply.concat(ESP.getFlashChipId()); + sprintf_P(buff, PSTR("%08X"), ESP.getFlashChipId()); + reply.concat(buff); reply.concat(F("")); server->send(200, TEXTHTML, reply);