1
0
mirror of https://github.com/adafruit/Adafruit_MQTT_Library.git synced 2025-07-29 02:02:00 +03:00

switch to MQTT 3.1.1 by default

This commit is contained in:
ladyada
2015-10-20 23:51:03 -04:00
parent 9fa0c54fce
commit 15713af468
2 changed files with 8 additions and 1 deletions

View File

@ -45,7 +45,8 @@
#define DEBUG_PRINTBUFFER(buffer, len) {}
#endif
#define MQTT_PROTOCOL_LEVEL 3
// Use 3 (MQTT 3.0) or 4 (MQTT 3.1.1)
#define MQTT_PROTOCOL_LEVEL 4
#define MQTT_CTRL_CONNECT 0x01
#define MQTT_CTRL_CONNECTACK 0x02