Arduino get_apikey()
-
Hello,
I am working with an M5StickCplus.
In micropython one can obtain a unique device ID like this:
import deviceCfg
deviceCfg.get_apikey()How does one get this same key in Arduino? Is this only a feature of UIFlow or is there some equivalent other hex identifier?
Thx, PD
-
You don’t, the api key is only used by UIFlow to program the controller and is generated in the UIFlow/Micropython firmware. Arduino wipes the firmware and works on a lower level to Micropython
-
Thanks @ajb2k3. Do you happen to know if there is any way to obtain a char[] or int that is unique to each M5stickC in Arduino? If one has many devices sending data over wifi, is there any way to tell them apart other than hardcoding a string or using a hardcoded IP address? Cheers, PD
-
the IP Adress is not hard coded when using DHCP to obtain it. Do you mean the hardware MAC adress? It is (theoretical) unique on every piece of network hardware.
WiFi.macAddress()
-
@holofloh Thanks, this is exactly what I was looking for. PD