Device Serial Number

Derive a unique, consistent serial number of this device from internal data.

control.deviceSerialNumber();

This is an advanced API. For more information, see the micro:bit runtime messageBus documentation.