Преглед изворни кода

changed to use clear_wifi_config to be explictly clear whats happening, also added meta/viewport for better rendering for html5

Rob Chartier пре 8 година
родитељ
комит
22bd56d6c6
3 измењених фајлова са 5 додато и 5 уклоњено
  1. 3 3
      data/web/index.html
  2. 1 1
      lib/Settings/Settings.h
  3. 1 1
      lib/WebServer/MiLightHttpServer.cpp

+ 3 - 3
data/web/index.html

@@ -12,7 +12,7 @@
   <link href="https://gitcdn.github.io/bootstrap-toggle/2.2.2/css/bootstrap-toggle.min.css" rel="stylesheet"/>
   <link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-slider/9.7.0/css/bootstrap-slider.min.css" rel="stylesheet"/>
   <link href="https://cdnjs.cloudflare.com/ajax/libs/selectize.js/0.12.4/css/selectize.bootstrap3.min.css" rel="stylesheet"/>
-
+  <meta name="viewport" content="width=device-width, initial-scale=1.0">
   <!--[if lt IE 9]>
     <script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.js"></script>
   <![endif]-->
@@ -1016,8 +1016,8 @@
           Restart
         </button>
 
-        <button type="button" class="btn btn-danger system-btn" data-command="reset_wifi">
-          Reset Wifi
+        <button type="button" class="btn btn-danger system-btn" data-command="clear_wifi_config">
+          Clear Wifi Config
         </button>
 
         <button type="button" id="updates-btn" class="btn btn-primary">

+ 1 - 1
lib/Settings/Settings.h

@@ -21,7 +21,7 @@
 
 #define WEB_INDEX_FILENAME "/web/index.html"
 
-#define MILIGHT_GITHUB_USER "sidoh"
+#define MILIGHT_GITHUB_USER "nothingmn"
 #define MILIGHT_GITHUB_REPO "esp8266_milight_hub"
 #define MILIGHT_REPO_WEB_PATH "/data/web/index.html"
 

+ 1 - 1
lib/WebServer/MiLightHttpServer.cpp

@@ -130,7 +130,7 @@ void MiLightHttpServer::handleSystemPost() {
       ESP.restart();
 
       handled = true;
-    } else if (request["command"] == "reset_wifi") {
+    } else if (request["command"] == "clear_wifi_config") {
         Serial.println(F("Resetting Wifi and then Restarting..."));
         server.send(200, TEXT_PLAIN, "true");