瀏覽代碼

more info in /about

Chris Mullins 8 年之前
父節點
當前提交
a840a020cd
共有 2 個文件被更改,包括 5 次插入3 次删除
  1. 2 2
      dist/index.html.gz.h
  2. 3 1
      lib/WebServer/MiLightHttpServer.cpp

文件差異過大導致無法顯示
+ 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() {