AWS IoT Device SDK C: MQTT
MQTT 3.1.1 client library
Return to main page ↑
_mqttSubscription_t Struct Reference

Represents a subscription stored in an MQTT connection. More...

#include <iot_mqtt_internal.h>

Data Fields

IotLink_t link
 List link member.
 
int32_t references
 How many subscription callbacks are using this subscription.
 
bool unsubscribed
 Tracks whether an unsubscribe function has been called for this subscription. More...
 
struct {
   uint16_t   identifier
 Packet identifier.
 
   size_t   order
 Order in the packet's list of subscriptions.
 
packetInfo
 Information about the SUBSCRIBE packet that registered this subscription.
 
IotMqttCallbackInfo_t callback
 Callback information for this subscription.
 
uint16_t topicFilterLength
 Length of _mqttSubscription_t.pTopicFilter.
 
char pTopicFilter []
 The subscription topic filter.
 

Detailed Description

Represents a subscription stored in an MQTT connection.

Field Documentation

◆ unsubscribed

bool _mqttSubscription_t::unsubscribed

Tracks whether an unsubscribe function has been called for this subscription.

If there are active subscription callbacks, this subscription cannot be removed. Instead, this flag will be set, which schedules the removal of this subscription once all subscription callbacks terminate.


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