thingsboard / thingsboard-gateway

Open-source IoT Gateway - integrates devices connected to legacy and third-party systems with ThingsBoard IoT Platform using Modbus, CAN bus, BACnet, BLE, OPC-UA, MQTT, ODBC and REST protocols
https://thingsboard.io/docs/iot-gateway/what-is-iot-gateway/
Apache License 2.0
1.72k stars 829 forks source link

How to send rpc call through gateway to device? #576

Closed chenliangrui closed 2 years ago

chenliangrui commented 3 years ago

Device send data through gateway to thingsboard is fine.Now, I cant figure out how to send rpc call through gateway to device. In my opinion, should send rpc call to gateway,and then gateway handle that ,and gateway create topic in external broker,so my device can subscribe like ‘sensor/SN-001/request/no-reply/1’ in order to recive message.If im right,how can i send rpc call to gateway.(use Control Widget's Send RPC button?) And i had read official document,but im still struggling with this problem! plz!!!

chenliangrui commented 3 years ago

Device send data through gateway to thingsboard is fine.Now, I cant figure out how to send rpc call through gateway to device. In my opinion, should send rpc call to gateway,and then gateway handle that ,and gateway create topic in external broker,so my device can subscribe like ‘sensor/SN-001/request/no-reply/1’ in order to recive message.If im right,how can i send rpc call to gateway.(use Control Widget's Send RPC button?) And i had read official document,but im still struggling with this problem! plz!!!

Emmmm...Now its fine,i just forget when i restart the btoker my device info be cleared and i need notice gateway about my device. Thingsboard is perfect!