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

◆ azure_iot_hub_dps_hostname_get()

int azure_iot_hub_dps_hostname_get ( struct azure_iot_hub_buf * buf)

#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]bufPointer 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
0if a valid hostname was found and populated to the provided buffer.
-EINVALif an invalid buffer pointer was provided.
-EMSGSIZEif the provided buffer is too small.
-ENOENTif no hostname has been registered using DPS.