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

◆ hw_id_get()

int hw_id_get ( char * buf,
size_t buf_len )

#include <include/hw_id.h>

Fetch unique device ID.

Note
The buffer should be at least HW_ID_LEN bytes long.
Parameters
[out]bufdestination buffer
[in]buf_lenlength of destination buffer
Returns
0 If the operation was successful.
-EINVAL If the passed in pointer is NULL or buffer is too small.
-EIO If requesting platform ID failed.