MQTT - automatic sync all data with mqtt - 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 - automatic sync all data with mqtt (/showthread.php?tid=5324) |
MQTT - automatic sync all data with mqtt - joaodaniel.pereira - 26.03.2024 Hi, Im trying to create a solution to send every object update (sync all knx data) to mqtt using your code. Why the value is not updating ? MQTT: campusdst out setpoint = 23 status = 1 >> value not updated automaticaly, why ? in status = 0 >> actual value (update with success every publish) Code: ------------------------------------------------------------ RE: MQTT - automatic sync all data with mqtt - Daniel - 26.03.2024 Who is the other client? What broker do you use and where it is? RE: MQTT - automatic sync all data with mqtt - joaodaniel.pereira - 26.03.2024 (26.03.2024, 08:31)Daniel Wrote: Who is the other client? What broker do you use and where it is? Hi, Broker: TBMQ (Thingsboard mqtt) Client "MQTT EXPLORER" RE: MQTT - automatic sync all data with mqtt - admin - 26.03.2024 On line 70 change this code: Code: if event.sender == 'mq' or not mclientfd then To this: Code: if not mclientfd then This will disable loop protection so be careful not to use the same topic names for both in and out. RE: MQTT - automatic sync all data with mqtt - joaodaniel.pereira - 26.03.2024 (26.03.2024, 12:01)admin Wrote: On line 70 change this code: Fixed! Thanks! |