nRF Connect SDK API 2.8.0
|
Azure IoT Hub library. More...
#include <stdio.h>
#include <zephyr/net/mqtt.h>
Go to the source code of this file.
Data Structures | |
struct | azure_iot_hub_buf |
struct | azure_iot_hub_property |
Property bag structure for key/value string pairs. Per Azure IoT Hub documentation, the key must be defined, while the value can be a string or empty. More... | |
struct | azure_iot_hub_topic_data |
Azure IoT Hub topic data. More... | |
struct | azure_iot_hub_msg |
Azure IoT Hub transmission data. More... | |
struct | azure_iot_hub_method |
Azure IoT Hub direct method data. More... | |
struct | azure_iot_hub_result |
Azure IoT Hub result structure. More... | |
struct | azure_iot_hub_evt |
Struct with data received from Azure IoT Hub. More... | |
struct | azure_iot_hub_config |
Structure for Azure IoT Hub connection parameters. More... | |
Typedefs | |
typedef void(* | azure_iot_hub_evt_handler_t) (struct azure_iot_hub_evt *evt) |
Azure IoT Hub library event handler. | |
Functions | |
int | azure_iot_hub_init (azure_iot_hub_evt_handler_t event_handler) |
Initialize the module. | |
int | azure_iot_hub_connect (const struct azure_iot_hub_config *config) |
Establish connection to Azure IoT Hub. The function blocks until a connection to the hub is established on the transport level. Subsequent calls to other library function should await AZURE_IOT_HUB_EVT_CONNECTED and AZURE_IOT_HUB_EVT_READY events. | |
int | azure_iot_hub_disconnect (void) |
Disconnect from Azure IoT Hub. Calling this function initiates the disconnection procedure, and the event AZURE_IOT_HUB_EVT_DISCONNECTED is received when it is completed. | |
int | azure_iot_hub_send (const struct azure_iot_hub_msg *const tx_data) |
Send data to Azure IoT Hub. | |
int | azure_iot_hub_method_respond (struct azure_iot_hub_result *result) |
Send response to a direct method invoked from the cloud. | |
Azure IoT Hub library.