Skip to content

Latest commit

 

History

History
 
 

hw_id

Hardware ID

The hardware ID sample prints a unique hardware ID by using the :ref:`lib_hw_id` library.

The sample supports the following development kits:

.. table-from-sample-yaml::

You can use this sample to try out the different hardware ID sources supported by the :ref:`lib_hw_id` library.

|config|

By default, the hardware ID sample uses the hardware ID provided by Zephyr's HW Info API. You can change the hardware ID source by using one of the following :file:`conf` files:

|test_sample|

  1. |connect_terminal_specific|

  2. Reset the kit.

  3. Observe the following output:

    hw_id: DEADBEEF00112233

    If an error occurs, the sample prints the following message with the error code:

    hw_id_get failed (err -5)
    hw_id: unsupported

This sample uses the following |NCS| library: