layout |
assignees |
title |
description |
redirect_from |
server-side-rpc |
client-side-rpc |
docwithnav |
|
MQTT Device API Reference |
Supported MQTT API Reference for IoT Devices |
/docs/reference/mqtt-api |
0 |
1 |
2 |
4 |
image |
title |
/images/reference/device-connectivity-apis/server-side-rpc-mqtt-1-ce.png |
Use RPC debug terminal widget in your ThingsBoard instance |
|
image |
title |
/images/reference/device-connectivity-apis/server-side-rpc-mqtt-2-ce.png |
Subscribe to RPC commands from the server |
|
image |
title |
/images/reference/device-connectivity-apis/server-side-rpc-mqtt-3-ce.png |
Send an RPC request "connect" to the device using RPC debug terminal widget |
|
image |
title |
/images/reference/device-connectivity-apis/server-side-rpc-mqtt-4-ce.png |
You should receive a response from the device |
|
|
0 |
1 |
2 |
3 |
4 |
image |
title |
/images/reference/device-connectivity-apis/client-side-rpc-1-ce.png |
Add two nodes to the Rule Chain: "script" and "rpc call reply" |
|
image |
title |
/images/reference/device-connectivity-apis/client-side-rpc-2-ce.png |
In the script node enter the function: return {msg: {time:String(new Date())}, metadata: metadata, msgType: msgType}; |
|
image |
/images/reference/device-connectivity-apis/client-side-rpc-3-ce.png |
|
image |
title |
/images/reference/device-connectivity-apis/client-side-rpc-mqtt-4-ce.png |
Send request to the server |
|
image |
title |
/images/reference/device-connectivity-apis/client-side-rpc-mqtt-5-ce.png |
You should receive a response from the server |
|
|
{% include get-hosts-name.html %}
{% include docs/reference/mqtt-api.md %}