31#ifndef _MQTT_SN_CLIENT_MISC_H
32#define _MQTT_SN_CLIENT_MISC_H
44error_t mqttSnClientProcessEvents(MqttSnClientContext *context,
48 MqttSnFlags flags, uint16_t topicId,
const uint8_t *data,
size_t dataLen);
50error_t mqttSnClientAddTopic(MqttSnClientContext *context,
51 const char_t *topicName, uint16_t topicId);
53error_t mqttSnClientDeleteTopic(MqttSnClientContext *context,
54 const char_t *topicName);
56const char_t *mqttSnClientFindTopicId(MqttSnClientContext *context,
59uint16_t mqttSnClientFindTopicName(MqttSnClientContext *context,
60 const char_t *topicName);
62const char_t *mqttSnClientFindPredefTopicId(MqttSnClientContext *context,
65uint16_t mqttSnClientFindPredefTopicName(MqttSnClientContext *context,
66 const char_t *topicName);
68uint16_t mqttSnClientGenerateMessageId(MqttSnClientContext *context);
70error_t mqttSnClientStoreMessageId(MqttSnClientContext *context,
73error_t mqttSnClientDiscardMessageId(MqttSnClientContext *context,
76bool_t mqttSnClientIsDuplicateMessageId(MqttSnClientContext *context,
79bool_t mqttSnClientIsShortTopicName(
const char_t *topicName);
error_t
Error codes.
Definition error.h:43
MqttSnReturnCode
MQTT-SN return codes.
Definition mqtt_sn_common.h:129
uint32_t systime_t
System time.
Definition os_port_none.h:90