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.
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:
- :file:`overlay-ble-mac` file for Bluetooth® Low Energy MAC address.
- :file:`overlay-imei` file for the :term:`International Mobile (Station) Equipment Identity (IMEI)` of the modem.
- :file:`overlay-uuid` file for the UUID of the modem.
Reset the kit.
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: