adafruit / Adafruit_CircuitPython_AdafruitIO

Adafruit IO for CircuitPython
http://io.adafruit.com
MIT License
49 stars 33 forks source link

Add missing "on_publish" event callback in the class IO_MQTT - adafruit_io.py #123

Closed tyeth closed 3 months ago

tyeth commented 3 months ago

Adds callback method for on_publish, and updates examples to use it.

Fixes #122

Needs retesting on monday, marking draft until then

github-actions[bot] commented 3 months ago

👋 Thanks for this pull request! Unfortunately, it looks like the automated continuous integration (CI) test(s) failed. These can be tricky to fix so we've written a guide on how to fix them locally. It has pages about running pre-commit locally and another about building the docs locally with sphinx. Thanks for contributing to CircuitPython! If you have more questions, feel free to join the Adafruit Discord and post in #circuitpython-dev.

tyeth commented 3 months ago

Hey @brentru I've retested the S2 demo, and added the on_publish logging example to the mqtt examples. Think that solves it.