version 1.1.1.1.2.9, 2011/11/21 14:51:23
|
version 1.1.1.1.2.10, 2011/11/21 15:10:23
|
Line 218 int mqtt_msgCONNACK(mqtt_msg_t * __restrict buf, unsig
|
Line 218 int mqtt_msgCONNACK(mqtt_msg_t * __restrict buf, unsig
|
* @msgID = MessageID >0, if QOS != MQTT_QOS_ONCE |
* @msgID = MessageID >0, if QOS != MQTT_QOS_ONCE |
* @Dup = Duplicate message |
* @Dup = Duplicate message |
* @QOS = QoS |
* @QOS = QoS |
|
* @Retain = Retain message |
* return: -1 error or >-1 message size for send |
* return: -1 error or >-1 message size for send |
*/ |
*/ |
int mqtt_msgPUBLISH(mqtt_msg_t * __restrict buf, const char *csTopic, | int mqtt_msgPUBLISH(mqtt_msg_t * __restrict buf, const char *csTopic, unsigned short msgID, |
unsigned short msgID, unsigned char Dup, unsigned char QOS); | unsigned char Dup, unsigned char QOS, unsigned char Retain); |
/* |
/* |
* mqtt_msgPUBACK() Create PUBACK message |
* mqtt_msgPUBACK() Create PUBACK message |
* |
* |