summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJeff Epler <jepler@gmail.com>2020-07-15 11:45:13 -0500
committerJeff Epler <jepler@gmail.com>2020-07-15 11:45:13 -0500
commita2919a6fb2c433cafa5c528ee03ee9c86efb93d8 (patch)
tree588e5815bcfaad1738ef3a53369bd9f5c132fd10 /docs
parenta6c20208b3be3bd9e34afb7112a2a1497bc92d23 (diff)
esp32s2: Use the device's EUI-48 address as unique ID
On my hardware, esptool reports MAC: 7c:df:a1:02:6c:b8 after this change, the USB descriptor says SerialNumber: 7CDFA1026CB8 and microcontroller.cpu.id has >>> "".join("%02x" % byte for byte in microcontroller.cpu.uid) 'c7fd1a20c68b' Note that the nibble-swapping between USB and cpu.uid is typical. For instance, an stm32 board has USB SerialNumber 24002500F005D42445632302 but hex-converted microcontroller.cpu.id 420052000f504d4254363220.
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions