MQTTSNTopicDescriptor Struct ReferenceMQTT-SN Client

Table of contents Table of contents

Detailed Description

Structure describing a single MQTT-SN topic.

Data Fields

uint16_t registerMessageId
 Id of the REGISTER message that was sent during topic registration.
 
MQTTSNTopicId topicId
 MQTT-SN topic id.
 
char topicName [MQTTSN_MAX_TOPIC_NAME_LENGTH]
 MQTT-SN topic name.
 
size_t topicNameLen
 MQTT-SN topic name length.
 
MQTTSNOnTopicRegisteredByClient onTopicRegisteredByClient
 Callback that will be called when this topic is registered by client.
 
MQTTSNOnTopicSubscribedByClient onTopicSubscribedByClient
 Callback that will be called when this topic is subscribed to by client.
 
MQTTSNOnTopicUnsubscribedByClient onTopicUnsubscribedByClient
 Callback that will be called when this topic is unsubscribed by client.
 
MQTTSNOnPublishReceived onPublishReceived
 Callback that will be called when a published message is received on this topic.
 
MQTTSNOnPublishSent onPublishSent
 Callback that will be called when a message is sent to the topic.
 

Field Documentation

◆ registerMessageId

uint16_t MQTTSNTopicDescriptor::registerMessageId

Id of the REGISTER message that was sent during topic registration.

◆ topicId

MQTTSNTopicId MQTTSNTopicDescriptor::topicId

MQTT-SN topic id.

◆ topicName

char MQTTSNTopicDescriptor::topicName[MQTTSN_MAX_TOPIC_NAME_LENGTH]

MQTT-SN topic name.

◆ topicNameLen

size_t MQTTSNTopicDescriptor::topicNameLen

MQTT-SN topic name length.

◆ onTopicRegisteredByClient

MQTTSNOnTopicRegisteredByClient MQTTSNTopicDescriptor::onTopicRegisteredByClient

Callback that will be called when this topic is registered by client.

◆ onTopicSubscribedByClient

MQTTSNOnTopicSubscribedByClient MQTTSNTopicDescriptor::onTopicSubscribedByClient

Callback that will be called when this topic is subscribed to by client.

◆ onTopicUnsubscribedByClient

MQTTSNOnTopicUnsubscribedByClient MQTTSNTopicDescriptor::onTopicUnsubscribedByClient

Callback that will be called when this topic is unsubscribed by client.

◆ onPublishReceived

MQTTSNOnPublishReceived MQTTSNTopicDescriptor::onPublishReceived

Callback that will be called when a published message is received on this topic.

◆ onPublishSent

MQTTSNOnPublishSent MQTTSNTopicDescriptor::onPublishSent

Callback that will be called when a message is sent to the topic.


The documentation for this struct was generated from the following file:

Contact us

Any question or remarks? Just write us a message!

Contact Information

Feel free to get in touch