I’m new to PAHO MQTT Client functions and subscribing to topics. From experience in Thonny it it appears to be an asynchronous environment with the processing done in the ‘on_message’ function.
I’m looking for best practices on what to do once a payload is read and processed. I’m going to have additional processing to do and I’m wondering if I should pass the payload off to a spawn program or writing to a monitored file.
Thanks