MQTT client subscriber : How to break a loop by receiving a new message from a publisher?
Can someone help me on that ?
I try to break a timelapse (written as looping a function) on my RPI started with a message “StartScanning”, by receiving a “Quit” message.
I am sorry for my knowledge on programming, but I am really stuck at this last step!
Here the code block of the subscriber ( which is the RPI and its PiCamera )