Azure IoT middleware for FreeRTOS
|
Azure IoT FreeRTOS middleware message APIs and structs. More...
#include "azure_iot.h"
#include "azure_iot_result.h"
#include "azure/iot/az_iot_hub_client_properties.h"
#include "azure/core/_az_cfg_prefix.h"
#include "azure/core/_az_cfg_suffix.h"
Go to the source code of this file.
Data Structures | |
struct | AzureIoTMessageProperties |
The bag of properties associated with a message. More... | |
Typedefs | |
typedef struct AzureIoTMessageProperties | AzureIoTMessageProperties_t |
The bag of properties associated with a message. | |
Functions | |
AzureIoTResult_t | AzureIoTMessage_PropertiesInit (AzureIoTMessageProperties_t *pxMessageProperties, uint8_t *pucBuffer, uint32_t ulAlreadyWrittenLength, uint32_t ulBufferLength) |
Initialize the message properties. More... | |
AzureIoTResult_t | AzureIoTMessage_PropertiesAppend (AzureIoTMessageProperties_t *pxMessageProperties, const uint8_t *pucName, uint32_t ulNameLength, const uint8_t *pucValue, uint32_t ulValueLength) |
Append a property name and value to a message. More... | |
AzureIoTResult_t | AzureIoTMessage_PropertiesFind (AzureIoTMessageProperties_t *pxMessageProperties, const uint8_t *pucName, uint32_t ulNameLength, const uint8_t **ppucOutValue, uint32_t *pulOutValueLength) |
Find a property in the message property bag. More... | |
Azure IoT FreeRTOS middleware message APIs and structs.
AzureIoTResult_t AzureIoTMessage_PropertiesAppend | ( | AzureIoTMessageProperties_t * | pxMessageProperties, |
const uint8_t * | pucName, | ||
uint32_t | ulNameLength, | ||
const uint8_t * | pucValue, | ||
uint32_t | ulValueLength | ||
) |
Append a property name and value to a message.
/
: %2F
%
: %25
#
: %23
&
: %26
Only these characters would have to be encoded. If you would like to avoid the need to encode the names/values, avoid using these characters in names and values.[in] | pxMessageProperties | The AzureIoTMessageProperties_t* to use for the operation. |
[in] | pucName | The name of the property to append. |
[in] | ulNameLength | The length of pucName . |
[in] | pucValue | The value of the property to append. |
[in] | ulValueLength | The length of pucValue . |
AzureIoTResult_t AzureIoTMessage_PropertiesFind | ( | AzureIoTMessageProperties_t * | pxMessageProperties, |
const uint8_t * | pucName, | ||
uint32_t | ulNameLength, | ||
const uint8_t ** | ppucOutValue, | ||
uint32_t * | pulOutValueLength | ||
) |
Find a property in the message property bag.
[in] | pxMessageProperties | The AzureIoTMessageProperties_t* to use for the operation. |
[in] | pucName | The name of the property to find. |
[in] | ulNameLength | Length of the property name. |
[out] | ppucOutValue | The output pointer to the property value. |
[out] | pulOutValueLength | The length of ppucOutValue . |
AzureIoTResult_t AzureIoTMessage_PropertiesInit | ( | AzureIoTMessageProperties_t * | pxMessageProperties, |
uint8_t * | pucBuffer, | ||
uint32_t | ulAlreadyWrittenLength, | ||
uint32_t | ulBufferLength | ||
) |
Initialize the message properties.
/
: %2F
%
: %25
#
: %23
&
: %26
Only these characters would have to be encoded. If you would like to avoid the need to encode the names/values, avoid using these characters in names and values.[out] | pxMessageProperties | The AzureIoTMessageProperties_t* to use for the operation. |
[out] | pucBuffer | The pointer to the buffer. |
[in] | ulAlreadyWrittenLength | The length of the properties already written (if applicable). |
[in] | ulBufferLength | The length of pucBuffer . |