31#ifndef _MQTT_SN_MESSAGE_H
32#define _MQTT_SN_MESSAGE_H
39#ifndef MQTT_SN_MAX_MSG_SIZE
40 #define MQTT_SN_MAX_MSG_SIZE 1024
41#elif (MQTT_SN_MAX_MSG_SIZE < 16)
42 #error MQTT_SN_MAX_MSG_SIZE parameter is not valid
57 uint8_t buffer[MQTT_SN_MAX_MSG_SIZE + 1];
71 uint16_t duration,
const char_t *clientId);
74 const char_t *topicName);
80 uint16_t msgId, uint16_t topicId,
const char_t *topicName);
86 uint16_t msgId, uint16_t topicId,
const char_t *topicName,
87 const uint8_t *data,
size_t dataLen);
97 uint16_t msgId, uint16_t topicId,
const char_t *topicName);
100 uint16_t msgId, uint16_t topicId,
const char_t *topicName);
109 const char_t *topicName);
117 const uint8_t **gwAdd,
size_t *gwAddLen);
126 uint16_t *topicId,
const char_t **topicName);
132 uint16_t *msgId, uint16_t *topicId,
const uint8_t **data,
size_t *dataLen);
147 const char_t **clientId);
error_t
Error codes.
Definition error.h:43
Definitions common to MQTT-SN client and gateway.
MqttSnMsgType
MQTT-SN message types.
Definition mqtt_sn_common.h:92
MqttSnReturnCode
MQTT-SN return codes.
Definition mqtt_sn_common.h:129
MQTT-SN message.
Definition mqtt_sn_message.h:56