You've already forked Adafruit_MQTT_Library
mirror of
https://github.com/adafruit/Adafruit_MQTT_Library.git
synced 2025-08-01 00:24:22 +03:00
adds unsubscribe() method def
This commit is contained in:
@ -154,6 +154,9 @@ class Adafruit_MQTT {
|
|||||||
// is made is not currently supported.
|
// is made is not currently supported.
|
||||||
bool subscribe(Adafruit_MQTT_Subscribe *sub);
|
bool subscribe(Adafruit_MQTT_Subscribe *sub);
|
||||||
|
|
||||||
|
// Unsubscribe from a previously subscribed MQTT topic.
|
||||||
|
bool unsubscribe(Adafruit_MQTT_Subscribe *sub);
|
||||||
|
|
||||||
// Check if any subscriptions have new messages. Will return a reference to
|
// Check if any subscriptions have new messages. Will return a reference to
|
||||||
// an Adafruit_MQTT_Subscribe object which has a new message. Should be called
|
// an Adafruit_MQTT_Subscribe object which has a new message. Should be called
|
||||||
// in the sketch's loop function to ensure new messages are recevied. Note
|
// in the sketch's loop function to ensure new messages are recevied. Note
|
||||||
|
Reference in New Issue
Block a user