You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -231,9 +252,13 @@ For **Bluetooth** and **Bluetooth LE** : `GYROSCOPE,<x>,<y>,<z>`
231
252
232
253
## Sending JSON Messages to DroidPad
233
254
234
-
You can send JSON messages to DroidPad to update the UI. Currently, only **SWITCH** and **SLIDER** can be updated. All connection types are supported except for **BLE**.
255
+
You can send JSON messages to DroidPad to update the UI. All connection types are supported except for **BLE**. You can update following component
256
+
257
+
- SWITCH
258
+
- SLIDER
259
+
- LED
235
260
236
-
To update a **SWITCH**or a **SLIDER**, send a JSON object message similar to the ones specified in the [SWITCH](#switch) and [SLIDER](#slider) sections, with the desired value or state.
261
+
To update a **SWITCH**, **SLIDER**or **LED** send a JSON object message similar to the ones specified in the [SWITCH](#switch), [SLIDER](#slider) and [LED](#led) sections, with the desired value or state.
237
262
238
263
For **Bluetooth Classic** and **TCP** connections, you must send each JSON message on a new line. This is because DroidPad reads the incoming stream line by line. Each JSON message should be on a single line, and multiple messages should be separated by a line feed (`\n`).
For **MQTT**, **WebSocket**, and **UDP** connections, you can send formatted JSON without the one-line and line feed restrictions, as these are message-based protocols.
271
+
For **MQTT**, **WebSocket**, and **UDP** connections, you can send formatted JSON without the one-line and line feed restrictions, as these are message-based protocols. For **MQTT** you have to publish to `DroidPad/feed` topic
247
272
248
273
249
274
## Important Note for Bluetooth and Bluetooth Low Energy
0 commit comments