fizista / micropython-umqtt.simple2

MIT License
74 stars 35 forks source link

Return the callback method result from check_msg() #10

Closed e-tobi closed 2 years ago

e-tobi commented 3 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:

fizista commented 2 years ago

Unfortunately, this is a change to the application API. Some programs will stop working because of this change.