nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches

◆ azure_iot_hub_send()

int azure_iot_hub_send ( const struct azure_iot_hub_msg *const tx_data)

#include <include/net/azure_iot_hub.h>

Send data to Azure IoT Hub.

Parameters
[in]tx_dataPointer to struct containing data to be transmitted to Azure IoT Hub.
Return values
0If successful.
-EINVALif a NULL pointer was provided.
-ENOMSGif the provided message topic was invalid.
-EMSGSIZEan internal buffer is too small to hold the topic data. This can for instance happen if message properties are in use, as they are appended to the topic.
-ENOTCONNif the device is not connected to an IoT Hub.
-ENOMEMif the request ID buffer was insufficient to create the ID.
-EFAULTif there was an internal error in the library.