Closed e-tobi closed 2 years ago
I find it useful to return the result of the callback method from check_msg(). This way the callback can process the MQTT message and pass some information up to the main loop calling check_msg().
Things I haven't changed in the PR:
Unfortunately, this is a change to the application API. Some programs will stop working because of this change.
I find it useful to return the result of the callback method from check_msg(). This way the callback can process the MQTT message and pass some information up to the main loop calling check_msg().
Things I haven't changed in the PR: