Sfoglia il codice sorgente

Add new simple client status mode setting to web UI

Christopher Mullins 6 anni fa
parent
commit
22e3d42f22
2 ha cambiato i file con 12 aggiunte e 2 eliminazioni
  1. 2 2
      dist/index.html.gz.h
  2. 10 0
      web/src/js/script.js

File diff suppressed because it is too large
+ 2 - 2
dist/index.html.gz.h


+ 10 - 0
web/src/js/script.js

@@ -171,6 +171,16 @@ var UI_FIELDS = [ {
     type: "string",
     tab: "tab-mqtt"
   }, {
+    tag:   "simple_mqtt_client_status",
+    friendly: "Client Status Messages Mode",
+    help: "In simple mode, only the strings 'connected' and 'disconnected' will be published.  In detailed mode, data about the version, IP address, etc. will be included.",
+    type: "option_buttons",
+    options: {
+      true: "Simple",
+      false: "Detailed"
+    },
+    tab: "tab-mqtt"
+  }, {
     tag:   "radio_interface_type",
     friendly: "Radio interface type",
     help: "2.4 GHz radio model. Only change this if you know you're not using an NRF24L01!",