@@ -781,7 +781,7 @@ typedef struct
781
781
{
782
782
/** The eyecatcher for this structure. must be MQTC. */
783
783
char struct_id [4 ];
784
- /** The version number of this structure. Must be 0, 1, 2, 3, 4, 5 or 6 .
784
+ /** The version number of this structure. Must be 0, 1, 2, 3, 4, 5, 6 or 7 .
785
785
* 0 signifies no SSL options and no serverURIs
786
786
* 1 signifies no serverURIs
787
787
* 2 signifies no MQTTVersion
@@ -908,10 +908,6 @@ typedef struct
908
908
int len ; /**< binary password length */
909
909
const void * data ; /**< binary password data */
910
910
} binarypwd ;
911
- /**
912
- * httpHeaders
913
- */
914
- const MQTTClient_nameValue * httpHeaders ;
915
911
/**
916
912
* The maximum number of messages in flight
917
913
*/
@@ -920,11 +916,17 @@ typedef struct
920
916
* MQTT V5 clean start flag. Only clears state at the beginning of the session.
921
917
*/
922
918
int cleanstart ;
919
+ /**
920
+ * httpHeaders
921
+ */
922
+ const MQTTClient_nameValue * httpHeaders ;
923
923
} MQTTClient_connectOptions ;
924
924
925
- #define MQTTClient_connectOptions_initializer { {'M', 'Q', 'T', 'C'}, 7, 60, 1, 1, NULL, NULL, NULL, 30, 0, NULL, 0, NULL, MQTTVERSION_DEFAULT, {NULL, 0, 0}, {0, NULL}, NULL, -1, 0}
925
+ #define MQTTClient_connectOptions_initializer { {'M', 'Q', 'T', 'C'}, 7, 60, 1, 1, NULL, NULL, NULL, 30, 0, NULL,\
926
+ 0, NULL, MQTTVERSION_DEFAULT, {NULL, 0, 0}, {0, NULL}, -1, 0, NULL}
926
927
927
- #define MQTTClient_connectOptions_initializer5 { {'M', 'Q', 'T', 'C'}, 7, 60, 0, 1, NULL, NULL, NULL, 30, 0, NULL, 0, NULL, MQTTVERSION_5, {NULL, 0, 0}, {0, NULL}, NULL, -1, 1}
928
+ #define MQTTClient_connectOptions_initializer5 { {'M', 'Q', 'T', 'C'}, 7, 60, 0, 1, NULL, NULL, NULL, 30, 0, NULL,\
929
+ 0, NULL, MQTTVERSION_5, {NULL, 0, 0}, {0, NULL}, -1, 1, NULL}
928
930
929
931
/**
930
932
* This function attempts to connect a previously-created client (see
0 commit comments