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
Clarify that subscribe() must be called before connect()
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user