mqtt_sn_client_misc.c
error_t mqttSnClientProcessEvents(MqttSnClientContext *context, systime_t timeout)
Process MQTT-SN client events.
Definition: mqtt_sn_client_misc.c:53
const char_t * mqttSnClientFindPredefTopicId(MqttSnClientContext *context, uint16_t topicId)
Retrieve the topic name associated with a predefined topic ID.
Definition: mqtt_sn_client_misc.c:399
error_t mqttSnClientReceiveDatagram(MqttSnClientContext *context, IpAddr *srcIpAddr, uint16_t *srcPort, void *data, size_t size, size_t *received, systime_t timeout)
Receive a datagram.
Definition: mqtt_sn_client_transport.c:296
error_t mqttSnClientProcessMessage(MqttSnClientContext *context, MqttSnMessage *message, const IpAddr *ipAddr, uint16_t port)
Process incoming MQTT-SN message.
Definition: mqtt_sn_client_message.c:57
#define MQTT_SN_CLIENT_MSG_ID_TABLE_SIZE
Definition: mqtt_sn_client.h:62
#define MQTT_SN_CLIENT_MAX_KEEP_ALIVE_PROBES
Definition: mqtt_sn_client.h:118
MQTT-SN message formatting and parsing.
const uint8_t res[]
error_t mqttSnClientSendPingReq(MqttSnClientContext *context)
Send PINGREQ message.
Definition: mqtt_sn_client_message.c:1616
uint16_t mqttSnClientFindTopicName(MqttSnClientContext *context, const char_t *topicName)
Retrieve the topic ID associated with a given topic name.
Definition: mqtt_sn_client_misc.c:362
bool_t mqttSnClientIsDuplicateMessageId(MqttSnClientContext *context, uint16_t msgId)
Check whether the message ID is a duplicate (QoS 2 message processing)
Definition: mqtt_sn_client_misc.c:573
error_t mqttSnClientAddTopic(MqttSnClientContext *context, const char_t *topicName, uint16_t topicId)
Add a new entry to the topic table.
Definition: mqtt_sn_client_misc.c:244
#define MQTT_SN_CLIENT_TOPIC_TABLE_SIZE
Definition: mqtt_sn_client.h:55
uint16_t mqttSnClientGenerateMessageId(MqttSnClientContext *context)
Generate a new message identifier.
Definition: mqtt_sn_client_misc.c:472
bool_t mqttSnClientIsShortTopicName(const char_t *topicName)
Check whether a topic name is a short topic name.
Definition: mqtt_sn_client_misc.c:606
MqttSnReturnCode mqttSnDeliverPublishMessage(MqttSnClientContext *context, MqttSnFlags flags, uint16_t topicId, const uint8_t *data, size_t dataLen)
Deliver a PUBLISH message to the application.
Definition: mqtt_sn_client_misc.c:174
@ MQTT_SN_CLIENT_STATE_RESP_RECEIVED
Definition: mqtt_sn_client.h:169
@ MQTT_SN_CLIENT_STATE_DISCONNECTING
Definition: mqtt_sn_client.h:173
Helper functions for MQTT-SN client.
Transport protocol abstraction layer.
uint16_t mqttSnClientFindPredefTopicName(MqttSnClientContext *context, const char_t *topicName)
Retrieve the topic ID associated with a predefined topic name.
Definition: mqtt_sn_client_misc.c:436
@ MQTT_SN_RETURN_CODE_REJECTED_INVALID_TOPIC_ID
Definition: mqtt_sn_common.h:132
error_t mqttSnClientStoreMessageId(MqttSnClientContext *context, uint16_t msgId)
Store message ID (QoS 2 message processing)
Definition: mqtt_sn_client_misc.c:496
#define MQTT_SN_CLIENT_MAX_TOPIC_NAME_LEN
Definition: mqtt_sn_client.h:76
MQTT-SN client.
TCP/IP stack core.
const char_t * mqttSnClientFindTopicId(MqttSnClientContext *context, uint16_t topicId)
Retrieve the topic name associated with a given topic ID.
Definition: mqtt_sn_client_misc.c:325
error_t mqttSnClientDiscardMessageId(MqttSnClientContext *context, uint16_t msgId)
Discard message ID (QoS 2 message processing)
Definition: mqtt_sn_client_misc.c:540
Debugging facilities.
error_t mqttSnClientDeleteTopic(MqttSnClientContext *context, const char_t *topicName)
Remove an entry in the topic table.
Definition: mqtt_sn_client_misc.c:294