17#if !defined(MQTTPROPERTIES_H)
18#define MQTTPROPERTIES_H
20#include "MQTTExportDeclarations.h"
24#define MQTT_INVALID_PROPERTY_ID -2
123#define MQTTProperties_initializer {0, 0, 0, NULL}
int64_t MQTTProperties_getNumericValueAt(const MQTTProperties *props, enum MQTTPropertyCodes propid, int index)
int MQTTProperties_len(const MQTTProperties *props)
MQTTProperty * MQTTProperties_getPropertyAt(const MQTTProperties *props, enum MQTTPropertyCodes propid, int index)
MQTTProperties MQTTProperties_copy(const MQTTProperties *props)
const char * MQTTPropertyName(enum MQTTPropertyCodes value)
struct MQTTProperties MQTTProperties
int MQTTProperty_getType(enum MQTTPropertyCodes value)
int MQTTProperties_add(MQTTProperties *props, const MQTTProperty *prop)
MQTTPropertyTypes
Definition MQTTProperties.h:67
@ MQTTPROPERTY_TYPE_VARIABLE_BYTE_INTEGER
Definition MQTTProperties.h:71
@ MQTTPROPERTY_TYPE_UTF_8_STRING_PAIR
Definition MQTTProperties.h:74
@ MQTTPROPERTY_TYPE_BINARY_DATA
Definition MQTTProperties.h:72
@ MQTTPROPERTY_TYPE_FOUR_BYTE_INTEGER
Definition MQTTProperties.h:70
@ MQTTPROPERTY_TYPE_BYTE
Definition MQTTProperties.h:68
@ MQTTPROPERTY_TYPE_UTF_8_ENCODED_STRING
Definition MQTTProperties.h:73
@ MQTTPROPERTY_TYPE_TWO_BYTE_INTEGER
Definition MQTTProperties.h:69
void MQTTProperties_free(MQTTProperties *properties)
int MQTTProperties_hasProperty(const MQTTProperties *props, enum MQTTPropertyCodes propid)
MQTTProperty * MQTTProperties_getProperty(const MQTTProperties *props, enum MQTTPropertyCodes propid)
int MQTTProperties_propertyCount(const MQTTProperties *props, enum MQTTPropertyCodes propid)
int64_t MQTTProperties_getNumericValue(const MQTTProperties *props, enum MQTTPropertyCodes propid)
int MQTTProperties_write(char **pptr, const MQTTProperties *properties)
MQTTPropertyCodes
Definition MQTTProperties.h:27
@ MQTTPROPERTY_CODE_SERVER_REFERENCE
Definition MQTTProperties.h:44
@ MQTTPROPERTY_CODE_TOPIC_ALIAS_MAXIMUM
Definition MQTTProperties.h:47
@ MQTTPROPERTY_CODE_SESSION_EXPIRY_INTERVAL
Definition MQTTProperties.h:34
@ MQTTPROPERTY_CODE_RESPONSE_INFORMATION
Definition MQTTProperties.h:43
@ MQTTPROPERTY_CODE_MESSAGE_EXPIRY_INTERVAL
Definition MQTTProperties.h:29
@ MQTTPROPERTY_CODE_REQUEST_PROBLEM_INFORMATION
Definition MQTTProperties.h:40
@ MQTTPROPERTY_CODE_REASON_STRING
Definition MQTTProperties.h:45
@ MQTTPROPERTY_CODE_CONTENT_TYPE
Definition MQTTProperties.h:30
@ MQTTPROPERTY_CODE_REQUEST_RESPONSE_INFORMATION
Definition MQTTProperties.h:42
@ MQTTPROPERTY_CODE_RETAIN_AVAILABLE
Definition MQTTProperties.h:50
@ MQTTPROPERTY_CODE_MAXIMUM_QOS
Definition MQTTProperties.h:49
@ MQTTPROPERTY_CODE_WILL_DELAY_INTERVAL
Definition MQTTProperties.h:41
@ MQTTPROPERTY_CODE_USER_PROPERTY
Definition MQTTProperties.h:51
@ MQTTPROPERTY_CODE_MAXIMUM_PACKET_SIZE
Definition MQTTProperties.h:52
@ MQTTPROPERTY_CODE_SUBSCRIPTION_IDENTIFIER
Definition MQTTProperties.h:33
@ MQTTPROPERTY_CODE_ASSIGNED_CLIENT_IDENTIFER
Definition MQTTProperties.h:36
@ MQTTPROPERTY_CODE_AUTHENTICATION_METHOD
Definition MQTTProperties.h:38
@ MQTTPROPERTY_CODE_RESPONSE_TOPIC
Definition MQTTProperties.h:31
@ MQTTPROPERTY_CODE_CORRELATION_DATA
Definition MQTTProperties.h:32
@ MQTTPROPERTY_CODE_SUBSCRIPTION_IDENTIFIERS_AVAILABLE
Definition MQTTProperties.h:54
@ MQTTPROPERTY_CODE_SERVER_KEEP_ALIVE
Definition MQTTProperties.h:37
@ MQTTPROPERTY_CODE_RECEIVE_MAXIMUM
Definition MQTTProperties.h:46
@ MQTTPROPERTY_CODE_ASSIGNED_CLIENT_IDENTIFIER
Definition MQTTProperties.h:35
@ MQTTPROPERTY_CODE_AUTHENTICATION_DATA
Definition MQTTProperties.h:39
@ MQTTPROPERTY_CODE_WILDCARD_SUBSCRIPTION_AVAILABLE
Definition MQTTProperties.h:53
@ MQTTPROPERTY_CODE_TOPIC_ALIAS
Definition MQTTProperties.h:48
@ MQTTPROPERTY_CODE_SHARED_SUBSCRIPTION_AVAILABLE
Definition MQTTProperties.h:55
@ MQTTPROPERTY_CODE_PAYLOAD_FORMAT_INDICATOR
Definition MQTTProperties.h:28
int MQTTProperties_read(MQTTProperties *properties, char **pptr, char *enddata)
Definition MQTTProperties.h:88
char * data
Definition MQTTProperties.h:90
int len
Definition MQTTProperties.h:89
Definition MQTTProperties.h:116
MQTTProperty * array
Definition MQTTProperties.h:120
int max_count
Definition MQTTProperties.h:118
int length
Definition MQTTProperties.h:119
int count
Definition MQTTProperties.h:117
Definition MQTTProperties.h:98
unsigned short integer2
Definition MQTTProperties.h:103
MQTTLenString value
Definition MQTTProperties.h:107
unsigned char byte
Definition MQTTProperties.h:102
enum MQTTPropertyCodes identifier
Definition MQTTProperties.h:99
unsigned int integer4
Definition MQTTProperties.h:104
MQTTLenString data
Definition MQTTProperties.h:106