#include <include/net/azure_iot_hub.h>
Send data to Azure IoT Hub.
- Parameters
-
| [in] | tx_data | Pointer to struct containing data to be transmitted to Azure IoT Hub. |
- Return values
-
| 0 | If successful. |
| -EINVAL | if a NULL pointer was provided. |
| -ENOMSG | if the provided message topic was invalid. |
| -EMSGSIZE | an 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. |
| -ENOTCONN | if the device is not connected to an IoT Hub. |
| -ENOMEM | if the request ID buffer was insufficient to create the ID. |
| -EFAULT | if there was an internal error in the library. |