From 06767dc4b2e31f748efdeabadf256d47f12bb3cb Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Thu, 2 Jul 2015 13:33:42 +0200 Subject: [PATCH] Clarify that subscribe() must be called before connect() --- Adafruit_MQTT.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Adafruit_MQTT.h b/Adafruit_MQTT.h index dc703bc..a16c576 100644 --- a/Adafruit_MQTT.h +++ b/Adafruit_MQTT.h @@ -128,6 +128,8 @@ class Adafruit_MQTT { // Add a subscription to receive messages for a topic. Returns true if the // subscription could be added or was already present, false otherwise. + // Must be called before connect(), subscribing after the connection + // is made is not currently supported. bool subscribe(Adafruit_MQTT_Subscribe *sub); // Check if any subscriptions have new messages. Will return a reference to