if i break any bot rules.
id like to know , has anyone tried to run paho.mqtt with multithreading? yes? any examples or know how to do that?
My Problem Statement
i want to toggle Node Red (node-red-start) based on the mqtt messages received on the python!, i am able to toggle the nodered, but now i want it to be more efficeient in terms of, it should send a message to the local server and see if it have really failed, if so only then switch to the cloud server.
The problem is very simple except the mqtt is blocking my whole loop, and i did try to use while, keeping the mqtt loop active for every 100ms, but seems like the publishing wont work properly.
anyone? please?
Обсуждают сегодня