#include <include/net/azure_iot_hub_dps.h>
Get the hostname of the currently assigned Azure IoT Hub as a terminated string.
- Parameters
-
[in,out] | buf | Pointer to buffer where the hostname will be stored. The buffer will upon success be populated to point to the assigned IoT Hub and its size. |
- Return values
-
0 | if a valid hostname was found and populated to the provided buffer. |
-EINVAL | if an invalid buffer pointer was provided. |
-EMSGSIZE | if the provided buffer is too small. |
-ENOENT | if no hostname has been registered using DPS. |