Skip to main content

Module uid

Module uid 

Source
Expand description

Unique ID (UID)

Functions§

uid
Get this device’s unique 128-bit ID. The datasheet (seems to) specify a 128-bit UID, while the SDK uses 96-bit. We read the full 128 bits to ensure uniqueness. Note that the last 4 bytes of the ID consist of unknown “internal coding” and fixed values.
uid_hex
Get this device’s unique 128-bit ID, encoded into a string of 32 hexadecimal ASCII digits. See documentation for uid for caveats.
uid_hex_bytes
Get this device’s unique 128-bit ID, encoded into 32 hexadecimal ASCII bytes. See documentation about uid for caveats.