Oh and now if I plug a Micro B USB into the NodeMCU-ESP32 and look at Serial port COM7 I get this once every 3 seconds.
ESP32 Chip model = ESP32-D0WDQ6 Rev 1
This chip has 2 cores
Chip ID: 13961200
The sample code to do this is really simple:
C-like:
/* The true ESP32 chip ID is essentially its MAC address.
This sketch provides an alternate chip ID that matches
the output of the ESP.getChipId() function on ESP8266
(i.e. a 32-bit integer matching the last 3 bytes of
the MAC address. This is less unique than the
MAC address chip ID, but is helpful when you need
an identifier that can be no more than a 32-bit integer
(like for switch...case).
created 2020-06-07 by cweinhofer
with help from Cicicok */
uint32_t chipId = 0;
void setup() {
Serial.begin(115200);
}
void loop() {
for(int i=0; i<17; i=i+8) {
chipId |= ((ESP.getEfuseMac() >> (40 - i)) & 0xff) << i;
}
Serial.printf("ESP32 Chip model = %s Rev %d\n", ESP.getChipModel(), ESP.getChipRevision());
Serial.printf("This chip has %d cores\n", ESP.getChipCores());
Serial.print("Chip ID: "); Serial.println(chipId);
delay(3000);
}
Arduino's are incredibly easy to program with a huge set of libraries.
For example I then opened up the simple get time program, entered in my WiFi name and Password, built and downloaded it. It goes out to the ntp server.
Monday, October 10 2022 18:54:15
Monday, October 10 2022 18:54:16
Monday, October 10 2022 18:54:17
Monday, October 10 2022 18:54:18
Monday, October 10 2022 18:54:19
Monday, October 10 2022 18:54:20