From c06c24a947b2d3c2348063696f740d77cdbcb370 Mon Sep 17 00:00:00 2001 From: Tuan PM Date: Thu, 1 Mar 2018 22:30:15 +0700 Subject: [PATCH] fixed default protocol is 3.11 --- lib/mqtt_msg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mqtt_msg.c b/lib/mqtt_msg.c index 5931375..589cb46 100644 --- a/lib/mqtt_msg.c +++ b/lib/mqtt_msg.c @@ -49,7 +49,7 @@ struct __attribute((__packed__)) mqtt_connect_variable_header { uint8_t lengthMsb; uint8_t lengthLsb; -#if defined(CONFIG_MQTT_PROTOCOL_311) +#if defined(MQTT_PROTOCOL_311) uint8_t magic[4]; #else uint8_t magic[6];