File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 36
36
static char const SSID[] = SECRET_SSID; /* your network SSID (name) */
37
37
static char const PASS[] = SECRET_PASS; /* your network password (use for WPA, or use as key for WEP) */
38
38
39
+
40
+ #if defined(ARDUINO_NANO_ESP32)
41
+ static char const OTA_FILE_LOCATION[] = " https://downloads.arduino.cc/ota/NANO_ESP32_Blink.ino.ota" ;
42
+ #else
39
43
static char const OTA_FILE_LOCATION[] = " https://downloads.arduino.cc/ota/LOLIN_32_Blink.ino.ota" ;
44
+ #endif
40
45
41
46
/* *****************************************************************************
42
47
* SETUP/LOOP
@@ -95,7 +100,11 @@ void setup()
95
100
}
96
101
97
102
Serial.println (" Performing a reset after which the bootloader will start the new firmware." );
103
+ #if defined(ARDUINO_NANO_ESP32)
104
+ Serial.println (" Hint: Arduino NANO ESP32 will blink Red Green and Blue." );
105
+ #else
98
106
Serial.println (" Hint: LOLIN32 will blink Blue." );
107
+ #endif
99
108
delay (1000 ); /* Make sure the serial message gets out before the reset. */
100
109
ota.reset ();
101
110
}
You can’t perform that action at this time.
0 commit comments