Skip to content

Commit 30d4af8

Browse files
committed
remove debug
1 parent 5c00e84 commit 30d4af8

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

Adafruit_MQTT.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,6 @@ void Adafruit_MQTT::processSubscriptionPacket(Adafruit_MQTT_Subscribe *sub) {
235235
sub->callback_double(data);
236236
} else if (sub->callback_buffer != NULL) {
237237
// execute callback in buffer mode
238-
DEBUG_PRINTLN("processPacketsUntil called the callback_buffer!");
239238
sub->callback_buffer((char *)sub->lastread, sub->datalen);
240239
} else if (sub->callback_io != NULL) {
241240
// execute callback in io mode
@@ -249,9 +248,6 @@ uint16_t Adafruit_MQTT::processPacketsUntil(uint8_t *buffer,
249248
uint8_t waitforpackettype,
250249
uint16_t timeout) {
251250
uint16_t len;
252-
DEBUG_PRINTLN("call: processPacketsUntil()");
253-
DEBUG_PRINT("Looking for packetType: ");
254-
DEBUG_PRINTLN(waitforpackettype);
255251

256252
while (true) {
257253
len = readFullPacket(buffer, MAXBUFFERSIZE, timeout);
@@ -505,7 +501,6 @@ void Adafruit_MQTT::processPackets(int16_t timeout) {
505501
uint32_t elapsed = 0, endtime, starttime = millis();
506502

507503
while (elapsed < (uint32_t)timeout) {
508-
DEBUG_PRINTLN("L480: readSubscription() called by processPackets()");
509504
Adafruit_MQTT_Subscribe *sub = readSubscription(timeout - elapsed);
510505
if (sub)
511506
processSubscriptionPacket(sub);

Adafruit_MQTT.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
#define ADAFRUIT_MQTT_VERSION_PATCH 0
3535

3636
// Uncomment/comment to turn on/off debug output messages.
37-
#define MQTT_DEBUG
37+
// #define MQTT_DEBUG
3838
// Uncomment/comment to turn on/off error output messages.
3939
#define MQTT_ERROR
4040

@@ -107,7 +107,7 @@
107107
// Largest full packet we're able to send.
108108
// Need to be able to store at least ~90 chars for a connect packet with full
109109
// 23 char client ID.
110-
#define MAXBUFFERSIZE (512)
110+
#define MAXBUFFERSIZE (150)
111111

112112
#define MQTT_CONN_USERNAMEFLAG 0x80
113113
#define MQTT_CONN_PASSWORDFLAG 0x40

0 commit comments

Comments
 (0)