This presentation shows how to work with ThingsBoard in IoT projects. In particular, we show how to receive data from knobs and switches from ThingsBoard
5. RPCs
5
Each ‘setValue’ and ‘getValue’ must be unique.
Two types of RPCs:
Knob (decimal value)
Switch (boolean value)
6. Light Dimm using RPCs in ThingsBoard
Control the light brightness of an AC Lamp using
ThingsBoard RPCs
RPC method: setValue
Range: 0-100.
6
https://roboticafacil.es/facilino/thingsboard/ac_lamp_dimmer.json
7. Remotely Controlled RGB using RPCs in
ThingsBoard
Remote control of RGB colors using RPCs in
ThingsBoard.
RPC methods: “setValueRed”, “setValueGreen”
and “setValueBlue”.
Range: 0-255.
7
https://roboticafacil.es/facilino/thingsboard/rgb_led.json
8. Remotely Controlled Melody using RPCs in
ThingsBoard
Remote control of a melody, using RPCs in
ThingsBoard
RPC methods: setValueBuzzer
8
https://roboticafacil.es/facilino/thingsboard/switches.json
9. Remotely Controlled LEDs using RPCs in
ThingsBoard
Remote control of LEDs (red and blue).
RPC methods: setValueRed, setValueBlue
9
https://roboticafacil.es/facilino/thingsboard/switches.json