Skip to content

Callbacks for subscribe and unsubscribe are not initialized #25

Closed
@brentru

Description

@brentru

IO_MQTT's on_subscribe and on_subscribe are setup (https://github.com/adafruit/Adafruit_CircuitPython_AdafruitIO/blob/master/adafruit_io/adafruit_io.py#L81) but never run as they're not explicitly declared in the init (https://github.com/adafruit/Adafruit_CircuitPython_AdafruitIO/blob/master/adafruit_io/adafruit_io.py#L83) and do not have "handler" methods like connect/on_message/disconnect.

Two new methods need to be created within IO_MQTT which will handle the MiniMQTT client's on_subscribe and on_unsubscribe callback methods, named _on_subscribe_mqtt and _on_unsubscribe_mqtt

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions