1
0
mirror of https://github.com/adafruit/Adafruit_MQTT_Library.git synced 2025-07-27 15:01:49 +03:00

Tidy code

This commit is contained in:
Ben Willmore
2022-11-02 11:37:01 +00:00
parent d3fdbb2f7c
commit e6ab3a9631
2 changed files with 10 additions and 8 deletions

View File

@ -190,10 +190,11 @@ public:
// 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, const char *payload, uint8_t qos = 0);
bool publish(const char *topic, const char *payload, bool retain, uint8_t qos = 0);
bool publish(const char *topic, uint8_t *payload, uint16_t bLen,
uint8_t qos = 0);
bool publish(const char *topic, const char *payload, bool retain, uint8_t qos = 0);
bool publish(const char *topic, uint8_t *payload, uint16_t bLen, bool retain, uint8_t qos = 0);
bool publish(const char *topic, uint8_t *payload, uint16_t bLen,
bool retain, uint8_t qos = 0);
// Add a subscription to receive messages for a topic. Returns true if the
// subscription could be added or was already present, false otherwise.