MQTT and Thingsboard - Printable Version +- Logic Machine Forum (https://forum.logicmachine.net) +-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1) +--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8) +--- Thread: MQTT and Thingsboard (/showthread.php?tid=5304) |
MQTT and Thingsboard - eilert - 16.03.2024 Hi, Anyone using Thingsboard together with Logicmachine? Would appreciate some input on how to handle the static topics of Thingsboard when using the gateway API: https://thingsboard.io/docs/reference/gateway-mqtt-api/ Best regards Eilert Bjerkan RE: MQTT and Thingsboard - admin - 16.03.2024 https://forum.logicmachine.net/showthread.php?tid=5106 RE: MQTT and Thingsboard - eilert - 17.03.2024 Thank you admin, sorry for not researching that before asking. My question is really connected to the lack of understanding of how to use the example code for MQTT of of this thread: https://forum.logicmachine.net/showthread.php?tid=1759 In the case of Thingsboard, the topics are fixed (one for telemetry (v1/devices/me/telemetry) and two for control (v1/devices/me/rpc/request and v1/devices/me/rpc/response)). Could you please show me what I need to change to go from your object-to-topic conversion over to a static topic with some telemetry and some commands. I see that I need to do the commands in the On_Message callback but I couldnt find the right spot to publish whenever updates where made to the KNX variables. Best regards Eilert RE: MQTT and Thingsboard - admin - 18.03.2024 Our examples follow best practices of MQTT where each topic is a single entity. Thingsboard uses a single topic for all data so our example won't work without modifications. A possible solution is to use an event script for publishing if you don't have a lot of messages. You can use HTTP instead of MQTT in this case. |