31#ifndef _MQTT_CLIENT_PACKET_H
32#define _MQTT_CLIENT_PACKET_H
44error_t mqttClientReceivePacket(MqttClientContext *context);
45error_t mqttClientProcessPacket(MqttClientContext *context);
47error_t mqttClientProcessConnAck(MqttClientContext *context,
48 bool_t dup,
MqttQosLevel qos, bool_t retain,
size_t remainingLen);
50error_t mqttClientProcessPubAck(MqttClientContext *context,
51 bool_t dup,
MqttQosLevel qos, bool_t retain,
size_t remainingLen);
53error_t mqttClientProcessPublish(MqttClientContext *context,
54 bool_t dup,
MqttQosLevel qos, bool_t retain,
size_t remainingLen);
56error_t mqttClientProcessPubRec(MqttClientContext *context,
57 bool_t dup,
MqttQosLevel qos, bool_t retain,
size_t remainingLen);
59error_t mqttClientProcessPubRel(MqttClientContext *context,
60 bool_t dup,
MqttQosLevel qos, bool_t retain,
size_t remainingLen);
62error_t mqttClientProcessPubComp(MqttClientContext *context,
63 bool_t dup,
MqttQosLevel qos, bool_t retain,
size_t remainingLen);
65error_t mqttClientProcessSubAck(MqttClientContext *context,
66 bool_t dup,
MqttQosLevel qos, bool_t retain,
size_t remainingLen);
68error_t mqttClientProcessUnsubAck(MqttClientContext *context,
69 bool_t dup,
MqttQosLevel qos, bool_t retain,
size_t remainingLen);
71error_t mqttClientProcessPingResp(MqttClientContext *context,
72 bool_t dup,
MqttQosLevel qos, bool_t retain,
size_t remainingLen);
74error_t mqttClientFormatConnect(MqttClientContext *context,
77error_t mqttClientFormatPublish(MqttClientContext *context,
const char_t *topic,
78 const void *message,
size_t length,
MqttQosLevel qos, bool_t retain);
80error_t mqttClientFormatPubAck(MqttClientContext *context, uint16_t packetId);
81error_t mqttClientFormatPubRec(MqttClientContext *context, uint16_t packetId);
82error_t mqttClientFormatPubRel(MqttClientContext *context, uint16_t packetId);
83error_t mqttClientFormatPubComp(MqttClientContext *context, uint16_t packetId);
85error_t mqttClientFormatSubscribe(MqttClientContext *context,
88error_t mqttClientFormatUnsubscribe(MqttClientContext *context,
91error_t mqttClientFormatPingReq(MqttClientContext *context);
92error_t mqttClientFormatDisconnect(MqttClientContext *context);
error_t
Error codes.
Definition error.h:43
MqttQosLevel
Quality of service level.
Definition mqtt_common.h:87