Simplest implementation of micropython-mqtt
Posted: Mon Jun 01, 2020 9:34 pm
Hi there All (and PeterH)
Please assist me with an idiot's guide to implementing MQTT using your uasyncio compatible library:(https://github.com/peterhinch/micropython-mqtt)
All I need is an implementation that satisfies the following:
> Callable function that publishes a string to a topic
> The function should only attempt to connect to broker when called (internet connection is intermittent and the function will only be called when there is connectivity)
> Async routines should be able to easily pass strings for publication to the function
> The function may be asked to send as many as 5 strings, of 40 characters each, per second
- Intermittently
Thanks as always.
Please assist me with an idiot's guide to implementing MQTT using your uasyncio compatible library:(https://github.com/peterhinch/micropython-mqtt)
All I need is an implementation that satisfies the following:
> Callable function that publishes a string to a topic
> The function should only attempt to connect to broker when called (internet connection is intermittent and the function will only be called when there is connectivity)
> Async routines should be able to easily pass strings for publication to the function
> The function may be asked to send as many as 5 strings, of 40 characters each, per second
- Intermittently
Thanks as always.