version 1.1.1.1.2.5, 2011/11/18 17:23:59
|
version 1.1.1.1.2.6, 2011/11/21 12:16:11
|
Line 179 inline char mqtt_sizeLen(unsigned int len);
|
Line 179 inline char mqtt_sizeLen(unsigned int len);
|
*/ |
*/ |
inline mqtthdr_var_t *mqtt_str2var(const unsigned char *csStr, unsigned short strLen); |
inline mqtthdr_var_t *mqtt_str2var(const unsigned char *csStr, unsigned short strLen); |
|
|
|
/* |
|
* mqtt_msgCONNECT() Create CONNECT message |
|
* |
|
* @buf = Message buffer |
|
* @csConnID = ConnectID |
|
* @csUser = Username if !=NULL |
|
* @csPass = Password for Username, only if csUser is set |
|
* @csWillTopic = Will Topic if !=NULL Will Flags set into message |
|
* @csWillMessage = Will Message, may be NULL |
|
* @ClrSess = Clear Session subscriptions after disconnect |
|
* @WillQOS = Will QOS if csWillTopic is set |
|
* @WillRetain = Will Retain Will Message if csWillTopic is set |
|
* return: -1 error or >-1 message size for send |
|
*/ |
|
int mqtt_msgCONNECT(mqtt_msg_t * __restrict buf, const char *csConnID, |
|
const char *csUser, const char *csPass, |
|
const char *csWillTopic, const char *csWillMessage, |
|
char ClrSess, char WillQOS, char WillRetain); |
|
|
|
|
#endif |
#endif |