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
Merge connected branch, bump to version 0.9.3
This commit is contained in:
@ -66,7 +66,7 @@
|
||||
#define MQTT_CONN_KEEPALIVE 300
|
||||
|
||||
// Largest full packet we're able to send.
|
||||
// Need to be able to store at least ~90 chars for a connect packet with full
|
||||
// Need to be able to store at least ~90 chars for a connect packet with full
|
||||
// 23 char client ID.
|
||||
#define MAXBUFFERSIZE (125)
|
||||
|
||||
@ -111,6 +111,9 @@ class Adafruit_MQTT {
|
||||
// otherwise.
|
||||
virtual bool disconnect() = 0; // Subclasses need to fill this in!
|
||||
|
||||
// Return true if connected to the MQTT server, otherwise false.
|
||||
virtual bool connected() = 0; // Subclasses need to fill this in!
|
||||
|
||||
// Publish a message to a topic using the specified QoS level. Returns true
|
||||
// if the message was published, false otherwise.
|
||||
bool publish(const char *topic, char *payload, uint8_t qos);
|
||||
|
Reference in New Issue
Block a user