Explorar el Código

Add new simple client status mode setting to web UI

Christopher Mullins hace 6 años
padre
commit
22e3d42f22
Se han modificado 2 ficheros con 12 adiciones y 2 borrados
  1. 2 2
      dist/index.html.gz.h
  2. 10 0
      web/src/js/script.js

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 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!",