mqtt_client_misc.c
error_t mqttSerializeData(uint8_t *buffer, size_t bufferLen, size_t *pos, const void *data, size_t dataLen)
Serialize raw data.
Definition: mqtt_client_misc.c:412
error_t mqttClientFormatPingReq(MqttClientContext *context)
Format PINGREQ packet.
Definition: mqtt_client_packet.c:1354
error_t mqttDeserializeHeader(uint8_t *buffer, size_t bufferLen, size_t *pos, MqttPacketType *type, bool_t *dup, MqttQosLevel *qos, bool_t *retain, size_t *remainingLen)
Deserialize fixed header.
Definition: mqtt_client_misc.c:448
error_t mqttClientReceivePacket(MqttClientContext *context)
Receive MQTT packet.
Definition: mqtt_client_packet.c:73
error_t mqttClientSendData(MqttClientContext *context, const void *data, size_t length, size_t *written, uint_t flags)
Send data using the relevant transport protocol.
Definition: mqtt_client_transport.c:466
error_t mqttDeserializeString(uint8_t *buffer, size_t bufferLen, size_t *pos, char_t **string, size_t *stringLen)
Deserialize string.
Definition: mqtt_client_misc.c:591
error_t mqttClientWaitForData(MqttClientContext *context, systime_t timeout)
Wait for incoming data.
Definition: mqtt_client_transport.c:621
error_t mqttDeserializeByte(uint8_t *buffer, size_t bufferLen, size_t *pos, uint8_t *value)
Read a 8-bit integer from the input buffer.
Definition: mqtt_client_misc.c:526
error_t mqttSerializeHeader(uint8_t *buffer, size_t *pos, MqttPacketType type, bool_t dup, MqttQosLevel qos, bool_t retain, size_t remainingLen)
Serialize fixed header.
Definition: mqtt_client_misc.c:230
Helper functions for MQTT client.
void mqttClientChangeState(MqttClientContext *context, MqttClientState newState)
Update MQTT client state.
Definition: mqtt_client_misc.c:52
Transport protocol abstraction layer.
error_t mqttClientProcessEvents(MqttClientContext *context, systime_t timeout)
Process MQTT client events.
Definition: mqtt_client_misc.c:67
error_t mqttSerializeByte(uint8_t *buffer, size_t bufferLen, size_t *pos, uint8_t value)
Write a 8-bit integer to the output buffer.
Definition: mqtt_client_misc.c:309
MQTT packet parsing and formatting.
error_t mqttClientProcessPacket(MqttClientContext *context)
Process incoming MQTT packet.
Definition: mqtt_client_packet.c:169
error_t mqttClientCheckTimeout(MqttClientContext *context)
Determine whether a timeout error has occurred.
Definition: mqtt_client_misc.c:627
error_t mqttClientCheckKeepAlive(MqttClientContext *context)
Check keep-alive time interval.
Definition: mqtt_client_misc.c:165
error_t mqttDeserializeShort(uint8_t *buffer, size_t bufferLen, size_t *pos, uint16_t *value)
Read a 16-bit integer from the input buffer.
Definition: mqtt_client_misc.c:558
error_t mqttSerializeShort(uint8_t *buffer, size_t bufferLen, size_t *pos, uint16_t value)
Write a 16-bit integer to the output buffer.
Definition: mqtt_client_misc.c:341
TCP/IP stack core.
error_t mqttSerializeString(uint8_t *buffer, size_t bufferLen, size_t *pos, const void *string, size_t stringLen)
Serialize string.
Definition: mqtt_client_misc.c:375
Debugging facilities.
MQTT client.