adafruit / Adafruit_CircuitPython_AdafruitIO

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

Expose feed callbacks via MiniMQTT topic callbacks #45

Closed brentru closed 3 years ago

brentru commented 3 years ago

MiniMQTT is able to execute a method if a new message is received on a topic. To keep in-line with the naming convention of Adafruit IO, this method should be named add_feed_callback instead of the MiniMQTT's standard add_topic_callback

Example: https://github.com/adafruit/Adafruit_CircuitPython_MiniMQTT/blob/master/examples/minimqtt_pub_sub_blocking_topic_callbacks.py

brentru commented 3 years ago

also, add remove_feed_callback(feed_name)