From b2a198af5a67feb85f9a354e880ba5f748e0b149 Mon Sep 17 00:00:00 2001 From: Todd Treece Date: Mon, 5 Oct 2015 09:26:06 -0400 Subject: [PATCH] adds unsubscribe() method def --- Adafruit_MQTT.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Adafruit_MQTT.h b/Adafruit_MQTT.h index 14940af..1fbd755 100644 --- a/Adafruit_MQTT.h +++ b/Adafruit_MQTT.h @@ -154,6 +154,9 @@ class Adafruit_MQTT { // is made is not currently supported. 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 // 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