Azure IoT middleware for FreeRTOS
azure_iot_message.h
Go to the documentation of this file.
1 /* Copyright (c) Microsoft Corporation.
2  * Licensed under the MIT License. */
3 
16 #ifndef AZURE_IOT_MESSAGE_H
17 #define AZURE_IOT_MESSAGE_H
18 
19 #include "azure_iot.h"
20 #include "azure_iot_result.h"
21 
22 /* Azure SDK for Embedded C includes */
23 #include "azure/iot/az_iot_hub_client_properties.h"
24 #include "azure/core/_az_cfg_prefix.h"
25 
31 {
32  struct
33  {
34  az_iot_message_properties xProperties;
37 
57  uint8_t * pucBuffer,
58  uint32_t ulAlreadyWrittenLength,
59  uint32_t ulBufferLength );
60 
81  const uint8_t * pucName,
82  uint32_t ulNameLength,
83  const uint8_t * pucValue,
84  uint32_t ulValueLength );
85 
97  const uint8_t * pucName,
98  uint32_t ulNameLength,
99  const uint8_t ** ppucOutValue,
100  uint32_t * pulOutValueLength );
101 
102 #include "azure/core/_az_cfg_suffix.h"
103 
104 #endif /* AZURE_IOT_MESSAGE_H */
Azure IoT FreeRTOS middleware common APIs and structs.
AzureIoTResult_t AzureIoTMessage_PropertiesInit(AzureIoTMessageProperties_t *pxMessageProperties, uint8_t *pucBuffer, uint32_t ulAlreadyWrittenLength, uint32_t ulBufferLength)
Initialize the message properties.
struct AzureIoTMessageProperties AzureIoTMessageProperties_t
The bag of properties associated with a message.
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.
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.
Azure IoT FreeRTOS middleware result values.
enum AzureIoTResult AzureIoTResult_t
The results used by the middleware.
The bag of properties associated with a message.
Definition: azure_iot_message.h:31
struct AzureIoTMessageProperties::@7 _internal
Internal to the SDK.