31#ifndef _MQTT_SN_CLIENT_MESSAGE_H
32#define _MQTT_SN_CLIENT_MESSAGE_H
44error_t mqttSnClientProcessMessage(MqttSnClientContext *context,
47error_t mqttSnClientProcessGwInfo(MqttSnClientContext *context,
50error_t mqttSnClientProcessConnAck(MqttSnClientContext *context,
53error_t mqttSnClientProcessWillTopicReq(MqttSnClientContext *context,
56error_t mqttSnClientProcessWillMsgReq(MqttSnClientContext *context,
59error_t mqttSnClientProcessRegister(MqttSnClientContext *context,
62error_t mqttSnClientProcessRegAck(MqttSnClientContext *context,
65error_t mqttSnClientProcessPublish(MqttSnClientContext *context,
68error_t mqttSnClientProcessPubAck(MqttSnClientContext *context,
71error_t mqttSnClientProcessPubRec(MqttSnClientContext *context,
74error_t mqttSnClientProcessPubRel(MqttSnClientContext *context,
77error_t mqttSnClientProcessPubComp(MqttSnClientContext *context,
80error_t mqttSnClientProcessSubAck(MqttSnClientContext *context,
83error_t mqttSnClientProcessUnsubAck(MqttSnClientContext *context,
86error_t mqttSnClientProcessPingReq(MqttSnClientContext *context,
89error_t mqttSnClientProcessPingResp(MqttSnClientContext *context,
92error_t mqttSnClientProcessDisconnect(MqttSnClientContext *context,
95error_t mqttSnClientProcessWillTopicResp(MqttSnClientContext *context,
98error_t mqttSnClientProcessWillMsgResp(MqttSnClientContext *context,
101error_t mqttSnClientSendSearchGw(MqttSnClientContext *context, uint8_t radius,
102 const IpAddr *destIpAddr, uint16_t destPort);
104error_t mqttSnClientSendConnect(MqttSnClientContext *context,
105 bool_t cleanSession);
107error_t mqttSnClientSendWillTopic(MqttSnClientContext *context);
108error_t mqttSnClientSendWillMsg(MqttSnClientContext *context);
110error_t mqttSnClientSendRegister(MqttSnClientContext *context,
111 const char_t *topicName);
113error_t mqttSnClientSendRegAck(MqttSnClientContext *context, uint16_t msgId,
116error_t mqttSnClientSendPublish(MqttSnClientContext *context,
117 uint16_t msgId,
const char_t *topicName,
const uint8_t *data,
120error_t mqttSnClientSendPubAck(MqttSnClientContext *context, uint16_t msgId,
123error_t mqttSnClientSendPubRec(MqttSnClientContext *context, uint16_t msgId);
124error_t mqttSnClientSendPubRel(MqttSnClientContext *context, uint16_t msgId);
125error_t mqttSnClientSendPubComp(MqttSnClientContext *context, uint16_t msgId);
127error_t mqttSnClientSendSubscribe(MqttSnClientContext *context,
130error_t mqttSnClientSendUnsubscribe(MqttSnClientContext *context,
131 const char_t *topicName);
133error_t mqttSnClientSendPingReq(MqttSnClientContext *context);
134error_t mqttSnClientSendPingResp(MqttSnClientContext *context);
136error_t mqttSnClientSendDisconnect(MqttSnClientContext *context,
139error_t mqttSnClientSendWillTopicUpd(MqttSnClientContext *context);
140error_t mqttSnClientSendWillMsgUpd(MqttSnClientContext *context);
error_t
Error codes.
Definition error.h:43
MqttSnQosLevel
Quality of service level.
Definition mqtt_sn_common.h:66
MqttSnReturnCode
MQTT-SN return codes.
Definition mqtt_sn_common.h:129
IP network address.
Definition ip.h:72
MQTT-SN message.
Definition mqtt_sn_message.h:56