31#ifndef _MQTT_CLIENT_MISC_H
32#define _MQTT_CLIENT_MISC_H
44void mqttClientChangeState(MqttClientContext *context,
47error_t mqttClientProcessEvents(MqttClientContext *context,
systime_t timeout);
48error_t mqttClientCheckKeepAlive(MqttClientContext *context);
51 bool_t dup,
MqttQosLevel qos, bool_t retain,
size_t remainingLen);
53error_t mqttSerializeByte(uint8_t *buffer,
size_t bufferLen,
54 size_t *pos, uint8_t value);
56error_t mqttSerializeShort(uint8_t *buffer,
size_t bufferLen,
57 size_t *pos, uint16_t value);
59error_t mqttSerializeString(uint8_t *buffer,
size_t bufferLen,
60 size_t *pos,
const void *
string,
size_t stringLen);
62error_t mqttSerializeData(uint8_t *buffer,
size_t bufferLen,
63 size_t *pos,
const void *data,
size_t dataLen);
65error_t mqttDeserializeHeader(uint8_t *buffer,
size_t bufferLen,
size_t *pos,
68error_t mqttDeserializeByte(uint8_t *buffer,
size_t bufferLen,
69 size_t *pos, uint8_t *value);
71error_t mqttDeserializeShort(uint8_t *buffer,
size_t bufferLen,
72 size_t *pos, uint16_t *value);
74error_t mqttDeserializeString(uint8_t *buffer,
size_t bufferLen,
75 size_t *pos, char_t **
string,
size_t *stringLen);
77error_t mqttClientCheckTimeout(MqttClientContext *context);
error_t
Error codes.
Definition error.h:43
MqttClientState
MQTT client states.
Definition mqtt_client.h:160
MqttQosLevel
Quality of service level.
Definition mqtt_common.h:87
MqttPacketType
MQTT control packet type.
Definition mqtt_common.h:99
uint32_t systime_t
System time.
Definition os_port_none.h:90