Pārlūkot izejas kodu

more info in /about

Chris Mullins 8 gadi atpakaļ
vecāks
revīzija
a840a020cd
2 mainītis faili ar 5 papildinājumiem un 3 dzēšanām
  1. 2 2
      dist/index.html.gz.h
  2. 3 1
      lib/WebServer/MiLightHttpServer.cpp

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 2 - 2
dist/index.html.gz.h


+ 3 - 1
lib/WebServer/MiLightHttpServer.cpp

@@ -210,11 +210,13 @@ void MiLightHttpServer::handleAbout() {
   response["version"] = QUOTE(MILIGHT_HUB_VERSION);
   response["variant"] = QUOTE(FIRMWARE_VARIANT);
   response["free_heap"] = ESP.getFreeHeap();
+  response["arduino_version"] = ESP.getCoreVersion();
+  response["reset_reason"] = ESP.getResetReason();
 
   String body;
   response.printTo(body);
 
-  server.send(200, "application", body);
+  server.send(200, APPLICATION_JSON, body);
 }
 
 void MiLightHttpServer::handleGetRadioConfigs() {