--- libaitmqtt/inc/aitmqtt.h 2016/09/14 15:52:36 1.3.4.1 +++ libaitmqtt/inc/aitmqtt.h 2022/09/12 21:52:57 1.3.4.2 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitmqtt.h,v 1.3.4.1 2016/09/14 15:52:36 misho Exp $ +* $Id: aitmqtt.h,v 1.3.4.2 2022/09/12 21:52:57 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -12,7 +12,7 @@ terms: All of the documentation and software included in the ELWIX and AITNET Releases is copyrighted by ELWIX - Sofia/Bulgaria -Copyright 2004 - 2016 +Copyright 2004 - 2022 by Michael Pounov . All rights reserved. Redistribution and use in source and binary forms, with or without @@ -49,7 +49,7 @@ SUCH DAMAGE. #define MAX_CONNID 24 #define MAX_CRED 13 -#define MQTTMSG_MAX 65529 +#define MQTTMSG_MAX 65535 #define MQTT_DATA_MAX 268435455 #define MQTT_PROTO_VER 3 @@ -88,6 +88,7 @@ struct mqtthdr { #define MQTT_TYPE_PINGREQ 12 /* PING request */ #define MQTT_TYPE_PINGRESP 13 /* PING response */ #define MQTT_TYPE_DISCONNECT 14 /* client is disconnecting */ +#define MQTT_TYPE_AUTH 15 /* authentication exchange */ #define MQTT_TYPE_MAX 15 /* reserved */ #define MQTT_FLAG_DUP 1 /* This flag is set when the client or server attempts to re-deliver