Paho Asynchronous MQTT C Client Library
Data Fields
MQTTProperty Struct Reference

#include <MQTTProperties.h>

Data Fields

enum MQTTPropertyCodes identifier
 
union {
   unsigned char   byte
 
   unsigned short   integer2
 
   unsigned int   integer4
 
   struct {
      MQTTLenString   data
 
      MQTTLenString   value
 
   } 
 
value
 

Detailed Description

Structure to hold an MQTT version 5 property of any type

Field Documentation

◆ identifier

enum MQTTPropertyCodes identifier

The MQTT V5 property id. A multi-byte integer.

◆ byte

unsigned char byte

holds the value of a byte property type

◆ integer2

unsigned short integer2

holds the value of a 2 byte integer property type

◆ integer4

unsigned int integer4

holds the value of a 4 byte integer property type

◆ data

The value of a string property, or the name of a user property.

◆ value [1/2]

The value of a user property.

◆  [2/2]

union { ... } value

The value of the property, as a union of the different possible types.


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