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

◆ azure_iot_hub_dps_device_id_get()

int azure_iot_hub_dps_device_id_get ( struct azure_iot_hub_buf buf)

#include <include/net/azure_iot_hub_dps.h>

Get the currently assigned device ID.

Parameters
[in,out]bufPointer to buffer where the device ID will be stored. The buffer will upon success be populated to point to the assigned device ID and its size.
Return values
0if a valid device ID was found and populated to the provided buffer.
-EINVALif an invalid buffer pointer was provided.
-EMSGSIZEif the provided buffer is too small.
-ENOENTif no device ID has been registered using DPS.