nRF Connect SDK API 0.1.0
|
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.
[in,out] | buf | Pointer 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. |
0 | if a valid device ID 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 device ID has been registered using DPS. |