How to print out the unique ID?
#include <ArduinoUniqueID.h>
void setup(){
SerialUSB.begin(115200);
while (!SerialUSB);
UniqueIDdump(SerialUSB);
UniqueID8dump(SerialUSB);
}
void loop(){
}
The library is not for the RP2040
Ah yes, the M0+
You may have to write your own from a library for another device. Search for cortex M0+ unique ID and you'll find more info.
Someone else may know but I do not believe this feature has been ported to this chip yet for Arduino.
I was needing something like this, a quick fix for me was to read and use the MAC address from the WiFi module - hopefully it's unique, though not guaranteed. If you don't want it to look like a MAC address, convert to dec.
This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.