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

◆ modem_jwt_get_uuids()

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).

Uses internally modem_jwt_generate and parses JWT token for "iss" "jti" fields which contains given UUID values.

Parameters
[out]devPointer to struct containing device UUID string. Can be NULL if UUID is not wanted.
[out]mfwPointer to struct containing modem fw UUID string. Can be NULL if UUID is not wanted.
Return values
0If the operation was successful. Otherwise, a (negative) error code is returned.