New to Arduino... Trying to get the ESP8266 to join my WiFi. I'd really appreciate some help
Running duinotech UNO with WiFi & have pushed firmware to Uno and esp8266 chips
With Board set to Generic ESP8266 and Port set (port confirmed working with Uno).
I get this error:
. Variables and constants in RAM (global, static), used 28196 / 80192 bytes (35%)
║ SEGMENT BYTES DESCRIPTION
╠══ DATA 1504 initialized variables
╠══ RODATA 980 constants
╚══ BSS 25712 zeroed variables
. Instruction RAM (IRAM_ATTR, ICACHE_RAM_ATTR), used 59735 / 65536 bytes (91%)
║ SEGMENT BYTES DESCRIPTION
╠══ ICACHE 32768 reserved space for flash instruction cache
╚══ IRAM 26967 code in IRAM
. Code in flash (default, ICACHE_FLASH_ATTR), used 238416 / 1048576 bytes (22%)
║ SEGMENT BYTES DESCRIPTION
╚══ IROM 238416 code in flash
esptool.py v3.0
Serial port /dev/cu.usbserial-8330
Failed uploading: uploading error: exit status 2
I have dip switches 5,6,7 = ON
This is the Code I am running:
#include <ESP8266WiFi.h> // Include the Wi-Fi library
const char* ssid = "*****"; // The SSID (name) of the Wi-Fi network you want to connect to
const char* password = "*******";
void setup() {
WiFi.mode(WIFI_STA);
WiFi.begin(ssid,password);
Serial.begin(115200);
while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.print(".");
}
Serial.println("");
Serial.print("Connected to ");
Serial.print(ssid);
Serial.print("IP Address: ");
Serial.print(WiFi.localIP());
}
void loop() {
}