From f9ae6f31462fc61f1ca2d3d2571c9d6c899be6c8 Mon Sep 17 00:00:00 2001 From: Todd Treece Date: Mon, 5 Oct 2015 13:46:38 -0400 Subject: [PATCH] comment out suback for now --- Adafruit_MQTT.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Adafruit_MQTT.cpp b/Adafruit_MQTT.cpp index e738472..fc52516 100644 --- a/Adafruit_MQTT.cpp +++ b/Adafruit_MQTT.cpp @@ -128,14 +128,14 @@ int8_t Adafruit_MQTT::connect() { // Check for SUBACK if using MQTT 3.1.1 or higher // TODO: The Server is permitted to start sending PUBLISH packets matching the // Subscription before the Server sends the SUBACK Packet. - if(MQTT_PROTOCOL_LEVEL > 3) { - len = readPacket(buffer, 5, CONNECT_TIMEOUT_MS); - DEBUG_PRINT(F("SUBACK:\t")); - DEBUG_PRINTBUFFER(buffer, len); - if ((len != 5) || (buffer[0] != (MQTT_CTRL_SUBACK << 4))) { - return 6; // failure to subscribe - } - } + // if(MQTT_PROTOCOL_LEVEL > 3) { + // len = readPacket(buffer, 5, CONNECT_TIMEOUT_MS); + // DEBUG_PRINT(F("SUBACK:\t")); + // DEBUG_PRINTBUFFER(buffer, len); + // if ((len != 5) || (buffer[0] != (MQTT_CTRL_SUBACK << 4))) { + // return 6; // failure to subscribe + // } + // } }