nRF Connect SDK API 2.8.99
|
int modem_jwt_get_uuids | ( | struct nrf_device_uuid * | dev, |
struct nrf_modem_fw_uuid * | mfw ) |
#include <include/modem/modem_jwt.h>
Gets the device and/or modem firmware UUID from the modem and returns it as a NULL terminated string in the supplied struct(s). The device UUID can be used as a device identifier for cloud services and for secure device management using the nRF Cloud Identity Service. The modem firmware UUID represents the installed modem firmware version.
Uses internally modem_jwt_generate and parses JWT token for "iss" "jti" fields which contains given UUID values.
[out] | dev | Pointer to struct containing device UUID string. Can be NULL if UUID is not wanted. |
[out] | mfw | Pointer to struct containing modem fw UUID string. Can be NULL if UUID is not wanted. |
0 | If the operation was successful. Otherwise, a (negative) error code is returned. |