ESP Chip ID a Flash Chip ID jsou nyni zobrazovany hexadecimalne

This commit is contained in:
Pavel Brychta 2018-06-03 16:38:08 +02:00
parent ef4be58c76
commit 36b213efde

View File

@ -303,6 +303,7 @@ void WiFiConfig::_handleReset(void)
void WiFiConfig::_handleInfo(void) void WiFiConfig::_handleInfo(void)
{ {
String reply; String reply;
char buff[32];
reply.reserve(3000); reply.reserve(3000);
@ -335,10 +336,12 @@ void WiFiConfig::_handleInfo(void)
reply.concat(macaddress); reply.concat(macaddress);
reply.concat(F("<TR><TD>ESP Chip ID:<TD>")); reply.concat(F("<TR><TD>ESP Chip ID:<TD>"));
reply.concat(ESP.getChipId()); sprintf_P(buff, PSTR("%06X"), ESP.getChipId());
reply.concat(buff);
reply.concat(F("<TR><TD>Flash Chip ID:<TD>")); reply.concat(F("<TR><TD>Flash Chip ID:<TD>"));
reply.concat(ESP.getFlashChipId()); sprintf_P(buff, PSTR("%08X"), ESP.getFlashChipId());
reply.concat(buff);
reply.concat(F("</table></form>")); reply.concat(F("</table></form>"));
server->send(200, TEXTHTML, reply); server->send(200, TEXTHTML, reply);