You've already forked Adafruit_MQTT_Library
mirror of
https://github.com/adafruit/Adafruit_MQTT_Library.git
synced 2025-07-21 18:22:06 +03:00
remove debug
This commit is contained in:
@ -235,7 +235,6 @@ void Adafruit_MQTT::processSubscriptionPacket(Adafruit_MQTT_Subscribe *sub) {
|
|||||||
sub->callback_double(data);
|
sub->callback_double(data);
|
||||||
} else if (sub->callback_buffer != NULL) {
|
} else if (sub->callback_buffer != NULL) {
|
||||||
// execute callback in buffer mode
|
// execute callback in buffer mode
|
||||||
DEBUG_PRINTLN("processPacketsUntil called the callback_buffer!");
|
|
||||||
sub->callback_buffer((char *)sub->lastread, sub->datalen);
|
sub->callback_buffer((char *)sub->lastread, sub->datalen);
|
||||||
} else if (sub->callback_io != NULL) {
|
} else if (sub->callback_io != NULL) {
|
||||||
// execute callback in io mode
|
// execute callback in io mode
|
||||||
@ -249,9 +248,6 @@ uint16_t Adafruit_MQTT::processPacketsUntil(uint8_t *buffer,
|
|||||||
uint8_t waitforpackettype,
|
uint8_t waitforpackettype,
|
||||||
uint16_t timeout) {
|
uint16_t timeout) {
|
||||||
uint16_t len;
|
uint16_t len;
|
||||||
DEBUG_PRINTLN("call: processPacketsUntil()");
|
|
||||||
DEBUG_PRINT("Looking for packetType: ");
|
|
||||||
DEBUG_PRINTLN(waitforpackettype);
|
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
len = readFullPacket(buffer, MAXBUFFERSIZE, timeout);
|
len = readFullPacket(buffer, MAXBUFFERSIZE, timeout);
|
||||||
@ -505,7 +501,6 @@ void Adafruit_MQTT::processPackets(int16_t timeout) {
|
|||||||
uint32_t elapsed = 0, endtime, starttime = millis();
|
uint32_t elapsed = 0, endtime, starttime = millis();
|
||||||
|
|
||||||
while (elapsed < (uint32_t)timeout) {
|
while (elapsed < (uint32_t)timeout) {
|
||||||
DEBUG_PRINTLN("L480: readSubscription() called by processPackets()");
|
|
||||||
Adafruit_MQTT_Subscribe *sub = readSubscription(timeout - elapsed);
|
Adafruit_MQTT_Subscribe *sub = readSubscription(timeout - elapsed);
|
||||||
if (sub)
|
if (sub)
|
||||||
processSubscriptionPacket(sub);
|
processSubscriptionPacket(sub);
|
||||||
|
@ -34,7 +34,7 @@
|
|||||||
#define ADAFRUIT_MQTT_VERSION_PATCH 0
|
#define ADAFRUIT_MQTT_VERSION_PATCH 0
|
||||||
|
|
||||||
// Uncomment/comment to turn on/off debug output messages.
|
// Uncomment/comment to turn on/off debug output messages.
|
||||||
#define MQTT_DEBUG
|
// #define MQTT_DEBUG
|
||||||
// Uncomment/comment to turn on/off error output messages.
|
// Uncomment/comment to turn on/off error output messages.
|
||||||
#define MQTT_ERROR
|
#define MQTT_ERROR
|
||||||
|
|
||||||
@ -107,7 +107,7 @@
|
|||||||
// Largest full packet we're able to send.
|
// 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.
|
// 23 char client ID.
|
||||||
#define MAXBUFFERSIZE (512)
|
#define MAXBUFFERSIZE (150)
|
||||||
|
|
||||||
#define MQTT_CONN_USERNAMEFLAG 0x80
|
#define MQTT_CONN_USERNAMEFLAG 0x80
|
||||||
#define MQTT_CONN_PASSWORDFLAG 0x40
|
#define MQTT_CONN_PASSWORDFLAG 0x40
|
||||||
|
Reference in New Issue
Block a user