ESP8266IoT Projects

IoT Based Voice Controlled Home Automation Using NodeMCU & Android

This tutorial is all about IoT Based Voice Controlled Home Automation Using NodeMCU & Android. Previously we have made similar types of IoT based Home Automation Projects to control relay from NodeMCU web server. We have used Asyncwebserver to control home appliances from a web browser. But, today we will build our own Home Automation Android App using MIT App Inventor. Install it on Android smartphones and control our home appliances using voice commands as well as buttons.

IoT Based Voice Controlled Home Automation Using NodeMCU & Android

This IoT based voice-controlled home automation project, allows you to interface 2/4/8 channel relay with NodeMCU ESP8266 and control different Appliances like Lights, Fan, AC cooler, Pump, etc. We will use an Android app having Several ON/OFF Buttons and voice-controlled system to send a signal to NodeMCU in order to control relay output. We will assign an IP address to NodeMCU and assign the same IP Adress to the Android App. Because our Android phone and NodeMCU should be connected to the same network for access control. Hence this project is also a LAN based Project.

Components Required

Following are the list of the components that are required for making Voice Controlled Home Automation Project Using NodeMCU ESP8266 WiFi Module.

S.N.Components DescriptionQuantity
1NodeMCUESP8266-12E Board1
2Relay Module4-Channel 5V NPN Relay Module1
3LED5mm LED of Any Color4
4Resistor220 ohm4
5Power Supply5V, 1A Power Adapter1
6Connecting WiresJumper Wires10
7Breadboard1

Block Diagram of Voice Controlled Home Automation using ESP8266

Here is a block diagram for this project Voice Controlled Home Automation using ESP8266. It is simple and easy to understand.

The relay module is interfaced with using GPIO Pins of NodeMCU. The output pin of the Relay is connected to 4 different LEDs for demonstration. ESP8266 NodeMCU is connected to your Wifi network and is capable of receiving a signal via the Internet.

Block diagram of Home automation system

Your smartphone Device has a “Home Automation Control” Android app installed on it. For controlling NodeMCU GPIOs Pins, the IP address of NodeMCU is entered on the Android App IP box.

Once you complete this setup, you can control your home appliances from the Android app staying anywhere in the world. Here, your Android phone acts as a remote controller and NodeMCU as a receiver. Actually, signals are transmitted via the internet.

Circuit: Wifi & Voice Controlled Home Automation Using ESP8266

Here we will use a single channel relay and 3 LEDs connected to NodeMCU GPIOs. Simulating them as home appliances. If you have 4 channel relay you can connect them as below:

Circuit Diagram IoT Based Voice Controlled Home Automation Using NodeMCU & Android
NodeMCU ESP8266 GPIOsRelay Input Pin
GNDGND
GPIO Pin D1 Input Pin 1
GPIO Pin D2Input Pin 2
GPIO Pin D3Input Pin 3
GPIO Pin D4Input Pin 4
Vin/5vVcc
Circuit Diagram

Connect Relay Input Pin with NodeMCU ESP8266 as follows:

Similarly, Connect the 4 output to 4 different LEDs as shown in the figure above.

Android App Voice Controlled Home Automation

The Android App will send a string that must be interpreted by the code to activate each one of the relays defined as follows:

Android App voice controlled home automation

Relay1:
Turn-On: “r1on”;
Turn-Off: “r1off”;

Relay2:
Turn-On: “r2on”;
Turn-Off: “r2off”

Relay3:
Turn-On: “r3on”;
Turn-Off: “r3off”

Relay4:
Turn-On: “r4on”;
Turn-Off: “r4off”

Whenever Android App sends as a command: “r1on”, Relay1 must be turn on. We have also defined “group commands” to turn-on all the relay (“All ON”) and turn-off (“All OFF”) simultaneity all devices. Similarly, the voice input option is also given which when clicked gives a pop up for Google Assistant to Accept Voice Command.


Creating an Android App Using MIT App Inventor:

You can skip this step. Because I have provided the link of the android app file that is directly downloadable. Not only that, but I have also added the link of .aia file so that you can modify the app according to your requirements.

To create an Android App Visit MIT App Inventor website and create a new project.

The main components of this app are as shown in the screenshot below:

MIT App Inventor app block view

Four buttons contain an ON-OFF switch for controlling Relay as well as a voice-controlled command as shown in the screenshot below. You can watch the video embedded below for more detailed information.


Home Automation App Download Link:

If you are a beginner and you don’t know to make any Android App, you can simply download the App from the link below.

You can also modify this Android App by exporting the .aia file. You can watch the video attached below for a detailed tutorial.


Code to find NodeMCU IP Address

Simply copy the code provided below and upload it to Arduino IDE. After Code is uploaded successfully. Simply click on Serial Monitor and get the IP address of NodeMCU. Now note down this IP as it is required for your Android App.

Warning: Safety First !!! Always Disconnect Relay Power Pin while uploading the code.

#include <ESP8266WiFi.h>
WiFiClient client;
WiFiServer server(80);
const char* ssid = "xxxxxxx";
const char* password = "xxxxxxx";
 
void setup()
{
Serial.begin(115200);
connectWiFi();
server.begin();
}
 
void loop()
{
}
 
/* connecting WiFi */
void connectWiFi()
{
Serial.println("Connecting to WIFI");
WiFi.begin(ssid, password);
while ((!(WiFi.status() == WL_CONNECTED)))
{
delay(300);
Serial.print("..");
}
Serial.println("");
Serial.println("WiFi connected");
Serial.println("NodeMCU Local IP is : ");
Serial.print((WiFi.localIP()));
}

Source Code/Program:

Here is a source code for IoT Based Voice Controlled Home Automation Using NodeMCU & Android Application. Compile the code provided below and upload it to your NodeMCU EP8266 board.

#include <ESP8266WiFi.h>
WiFiClient client;
WiFiServer server(80);
const char* ssid = "xxxxxxxx";
const char* password = "xxxxxxxx";
String  command =""; // Command received from Android device
 
// Set Relay Pins
int relay1 = D1;
int relay2 = D2;
int relay3 = D3;
int relay4 = D4;
 
void setup()
{
  Serial.begin(115200);
 
  pinMode(relay1, OUTPUT); 
  pinMode(relay2, OUTPUT);  
  pinMode(relay3, OUTPUT);  
  pinMode(relay4, OUTPUT);  
 
  digitalWrite(relay1,HIGH);
  digitalWrite(relay2,HIGH);
  digitalWrite(relay3,HIGH);
  digitalWrite(relay4,HIGH);
      
  connectWiFi();
  server.begin();
}
 
void loop()
{
    client = server.available();
    if (!client) return; 
    command = checkClient ();
 
         if (command == "r1on"  || command == "turn on relay 1"    || command == "relay 1 on")        digitalWrite(relay1,0);
    else if (command == "r1off" || command == "turn off relay 1" || command == "relay 1 off")     digitalWrite(relay1,1);
    else if (command == "r2on"  || command == "turn on relay 2"    || command == "relay 2 on")      digitalWrite(relay2,0);     
    else if (command == "r2off" || command == "turn off relay 2" || command == "relay 2 off")   digitalWrite(relay2,1);
    else if (command == "r3on"  || command == "turn on relay 3"    || command == "relay 3 on")      digitalWrite(relay3,0);
    else if (command == "r3off" || command == "turn off relay 3" || command == "relay 3 off")   digitalWrite(relay3,1);
    else if (command == "r4on"  || command == "turn on relay 4"    || command == "relay 4 on")    digitalWrite(relay4,0);
    else if (command == "r4off" || command == "turn off relay 4" || command == "relay 4 off") digitalWrite(relay4,1);
    else if (command == "allon" || command == "Turn on all devices" || command == "all on") 
    {
      digitalWrite(relay1,LOW);
      digitalWrite(relay2,LOW);
      digitalWrite(relay3,LOW);
      digitalWrite(relay4,LOW);
    }
    else if (command == "alloff" || command == "Turn off all devices" || command == "all off") 
    {
      digitalWrite(relay1,HIGH);
      digitalWrite(relay2,HIGH);
      digitalWrite(relay3,HIGH);
      digitalWrite(relay4,HIGH);
    }
    sendBackEcho(command); // send command echo back to android device
    command = "";
}
 
/* connecting WiFi */
void connectWiFi()
{
  Serial.println("Connecting to WIFI");
  WiFi.begin(ssid, password);
  while ((!(WiFi.status() == WL_CONNECTED)))
  {
    delay(300);
    Serial.print("..");
  }
  Serial.println("");
  Serial.println("WiFi connected");
  Serial.println("NodeMCU Local IP is : ");
  Serial.print((WiFi.localIP()));
}
 
/* check command received from Android Device */
String checkClient (void)
{
  while(!client.available()) delay(1); 
  String request = client.readStringUntil('r');
  request.remove(0, 5);
  request.remove(request.length()-9,9);
  return request;
}
 
/* send command echo back to android device */
void sendBackEcho(String echo)
{
  client.println("HTTP/1.1 200 OK ");
  client.println("Content-Type: text/html");
  client.println("");
  client.println("<!DOCTYPE HTML>");
  client.println("<html>");
  client.println(echo);
  client.println("</html>");
  client.stop();
  delay(1);
}

WARNING: Safety First !!! Please Disconnect Relay Power Pin while uploading the code.

Video Tutorial: IoT Based Voice Controlled Home Automation Using NodeMCU & Android

YouTube Video Coming Soon

Conclusion

Finally, we have completed the IoT Based Voice Controlled Home Automation Using NodeMCU & Android. I hope you found this project useful! Drop a comment below if you have any doubts or queries. l will try my best to answer your queries.

  • Android App voice controlled home automation
  • IoT Based Voice Controlled Home Automation Using NodeMCU & Android
  • IoT Based Voice Controlled Home Automation Using NodeMCU & Android

More Home Automation Projects for you:

Related Articles

12 Comments

  1. hello friend thank you so much for sharing !! my voice command does not work and the result is the android version there is an update for everyone to use voice command in recent versions of Android

  2. The voice command is not working is there any solution and when we upload the code shall we have to remove all the power pin of the relay.
    Thank you so much

  3. Vraiment vous avez fourni beaucoup d’efforts pour ce valeureux travail…Bravo encore et bonne continuation….

  4. hello friend thankyou for the wonderful tutorial but voice command isn’t working, how can it be fixed?

    1. It has some issues with newer Android version. You need to provide permission manually from app settings

  5. int relay1 = D1;
    int relay2 = D2;
    int relay3 = D3;
    int relay4 = D4;
    ‘D1’ was not declared in this scope; did you mean ‘y1’?

    Arduino: 1.8.13 (Windows 7), Board: “Generic ESP8266 Module, 80 MHz, Flash, Disabled (new aborts on oom), Disabled, All SSL ciphers (most compatible), 32KB cache + 32KB IRAM (balanced), Use pgm_read macros for IRAM/PROGMEM, dtr (aka nodemcu), 26 MHz, 40MHz, DOUT (compatible), 1MB (FS:64KB OTA:~470KB), 2, nonos-sdk 2.2.1+100 (190703), v2 Lower Memory, Disabled, None, Only Sketch, 115200”

    C:\Program Files\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files\Arduino\hardware -hardware C:\Users\famid\AppData\Local\Arduino15\packages -tools C:\Program Files\Arduino\tools-builder -tools C:\Program Files\Arduino\hardware\tools\avr -tools C:\Users\famid\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files\Arduino\libraries -libraries C:\Users\famid\Documents\Arduino\libraries -fqbn=esp8266:esp8266:generic:xtal=80,vt=flash,exception=disabled,stacksmash=disabled,ssl=all,mmu=3232,non32xfer=fast,ResetMethod=nodemcu,CrystalFreq=26,FlashFreq=40,FlashMode=dout,eesz=1M64,led=2,sdk=nonosdk_190703,ip=lm2f,dbg=Disabled,lvl=None____,wipe=none,baud=115200 -vid-pid=1A86_7523 -ide-version=10813 -build-path C:\Users\famid\AppData\Local\Temp\arduino_build_882802 -warnings=none -build-cache C:\Users\famid\AppData\Local\Temp\arduino_cache_26953 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.python3.path=C:\Users\famid\AppData\Local\Arduino15\packages\esp8266\tools\python3\3.7.2-post1 -prefs=runtime.tools.python3-3.7.2-post1.path=C:\Users\famid\AppData\Local\Arduino15\packages\esp8266\tools\python3\3.7.2-post1 -prefs=runtime.tools.xtensa-lx106-elf-gcc.path=C:\Users\famid\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\3.0.4-gcc10.3-1757bed -prefs=runtime.tools.xtensa-lx106-elf-gcc-3.0.4-gcc10.3-1757bed.path=C:\Users\famid\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\3.0.4-gcc10.3-1757bed -prefs=runtime.tools.mklittlefs.path=C:\Users\famid\AppData\Local\Arduino15\packages\esp8266\tools\mklittlefs\3.0.4-gcc10.3-1757bed -prefs=runtime.tools.mklittlefs-3.0.4-gcc10.3-1757bed.path=C:\Users\famid\AppData\Local\Arduino15\packages\esp8266\tools\mklittlefs\3.0.4-gcc10.3-1757bed -prefs=runtime.tools.mkspiffs.path=C:\Users\famid\AppData\Local\Arduino15\packages\esp8266\tools\mkspiffs\3.0.4-gcc10.3-1757bed -prefs=runtime.tools.mkspiffs-3.0.4-gcc10.3-1757bed.path=C:\Users\famid\AppData\Local\Arduino15\packages\esp8266\tools\mkspiffs\3.0.4-gcc10.3-1757bed -verbose C:\Users\famid\Desktop\ESP8266 Project\sinric pro\main\main.ino

    C:\Program Files\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files\Arduino\hardware -hardware C:\Users\famid\AppData\Local\Arduino15\packages -tools C:\Program Files\Arduino\tools-builder -tools C:\Program Files\Arduino\hardware\tools\avr -tools C:\Users\famid\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files\Arduino\libraries -libraries C:\Users\famid\Documents\Arduino\libraries -fqbn=esp8266:esp8266:generic:xtal=80,vt=flash,exception=disabled,stacksmash=disabled,ssl=all,mmu=3232,non32xfer=fast,ResetMethod=nodemcu,CrystalFreq=26,FlashFreq=40,FlashMode=dout,eesz=1M64,led=2,sdk=nonosdk_190703,ip=lm2f,dbg=Disabled,lvl=None____,wipe=none,baud=115200 -vid-pid=1A86_7523 -ide-version=10813 -build-path C:\Users\famid\AppData\Local\Temp\arduino_build_882802 -warnings=none -build-cache C:\Users\famid\AppData\Local\Temp\arduino_cache_26953 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.python3.path=C:\Users\famid\AppData\Local\Arduino15\packages\esp8266\tools\python3\3.7.2-post1 -prefs=runtime.tools.python3-3.7.2-post1.path=C:\Users\famid\AppData\Local\Arduino15\packages\esp8266\tools\python3\3.7.2-post1 -prefs=runtime.tools.xtensa-lx106-elf-gcc.path=C:\Users\famid\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\3.0.4-gcc10.3-1757bed -prefs=runtime.tools.xtensa-lx106-elf-gcc-3.0.4-gcc10.3-1757bed.path=C:\Users\famid\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\3.0.4-gcc10.3-1757bed -prefs=runtime.tools.mklittlefs.path=C:\Users\famid\AppData\Local\Arduino15\packages\esp8266\tools\mklittlefs\3.0.4-gcc10.3-1757bed -prefs=runtime.tools.mklittlefs-3.0.4-gcc10.3-1757bed.path=C:\Users\famid\AppData\Local\Arduino15\packages\esp8266\tools\mklittlefs\3.0.4-gcc10.3-1757bed -prefs=runtime.tools.mkspiffs.path=C:\Users\famid\AppData\Local\Arduino15\packages\esp8266\tools\mkspiffs\3.0.4-gcc10.3-1757bed -prefs=runtime.tools.mkspiffs-3.0.4-gcc10.3-1757bed.path=C:\Users\famid\AppData\Local\Arduino15\packages\esp8266\tools\mkspiffs\3.0.4-gcc10.3-1757bed -verbose C:\Users\famid\Desktop\ESP8266 Project\sinric pro\main\main.ino

    Using board ‘generic’ from platform in folder: C:\Users\famid\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2

    Using core ‘esp8266’ from platform in folder: C:\Users\famid\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2

    Detecting libraries used…

    “C:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\3.0.4-gcc10.3-1757bed/bin/xtensa-lx106-elf-g++” -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -D_GNU_SOURCE “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/include” “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/lwip2/include” “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/libc/xtensa-lx106-elf/include” “-IC:\\Users\\famid\\AppData\\Local\\Temp\\arduino_build_882802/core” -c -w -Werror=return-type -Os -g -free -fipa-pta -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++17 -ffunction-sections -fdata-sections -fno-exceptions -DMMU_IRAM_SIZE=0x8000 -DMMU_ICACHE_SIZE=0x8000 -w -x c++ -E -CC -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10813 -DARDUINO_ESP8266_GENERIC -DARDUINO_ARCH_ESP8266 “-DARDUINO_BOARD=\”ESP8266_GENERIC\”” -DLED_BUILTIN=2 -DFLASHMODE_DOUT -DESP8266 “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\cores\\esp8266” “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\variants\\generic” “C:\\Users\\famid\\AppData\\Local\\Temp\\arduino_build_882802\\sketch\\main.ino.cpp” -o nul -DARDUINO_LIB_DISCOVERY_PHASE

    Alternatives for ESP8266WiFi.h: [ESP8266WiFi@1.0]

    ResolveLibrary(ESP8266WiFi.h)

    -> candidates: [ESP8266WiFi@1.0]

    “C:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\3.0.4-gcc10.3-1757bed/bin/xtensa-lx106-elf-g++” -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -D_GNU_SOURCE “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/include” “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/lwip2/include” “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/libc/xtensa-lx106-elf/include” “-IC:\\Users\\famid\\AppData\\Local\\Temp\\arduino_build_882802/core” -c -w -Werror=return-type -Os -g -free -fipa-pta -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++17 -ffunction-sections -fdata-sections -fno-exceptions -DMMU_IRAM_SIZE=0x8000 -DMMU_ICACHE_SIZE=0x8000 -w -x c++ -E -CC -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10813 -DARDUINO_ESP8266_GENERIC -DARDUINO_ARCH_ESP8266 “-DARDUINO_BOARD=\”ESP8266_GENERIC\”” -DLED_BUILTIN=2 -DFLASHMODE_DOUT -DESP8266 “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\cores\\esp8266” “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\variants\\generic” “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\libraries\\ESP8266WiFi\\src” “C:\\Users\\famid\\AppData\\Local\\Temp\\arduino_build_882802\\sketch\\main.ino.cpp” -o nul -DARDUINO_LIB_DISCOVERY_PHASE

    “C:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\3.0.4-gcc10.3-1757bed/bin/xtensa-lx106-elf-g++” -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -D_GNU_SOURCE “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/include” “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/lwip2/include” “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/libc/xtensa-lx106-elf/include” “-IC:\\Users\\famid\\AppData\\Local\\Temp\\arduino_build_882802/core” -c -w -Werror=return-type -Os -g -free -fipa-pta -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++17 -ffunction-sections -fdata-sections -fno-exceptions -DMMU_IRAM_SIZE=0x8000 -DMMU_ICACHE_SIZE=0x8000 -w -x c++ -E -CC -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10813 -DARDUINO_ESP8266_GENERIC -DARDUINO_ARCH_ESP8266 “-DARDUINO_BOARD=\”ESP8266_GENERIC\”” -DLED_BUILTIN=2 -DFLASHMODE_DOUT -DESP8266 “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\cores\\esp8266” “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\variants\\generic” “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\libraries\\ESP8266WiFi\\src” “C:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\libraries\\ESP8266WiFi\\src\\BearSSLHelpers.cpp” -o nul -DARDUINO_LIB_DISCOVERY_PHASE

    “C:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\3.0.4-gcc10.3-1757bed/bin/xtensa-lx106-elf-g++” -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -D_GNU_SOURCE “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/include” “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/lwip2/include” “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/libc/xtensa-lx106-elf/include” “-IC:\\Users\\famid\\AppData\\Local\\Temp\\arduino_build_882802/core” -c -w -Werror=return-type -Os -g -free -fipa-pta -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++17 -ffunction-sections -fdata-sections -fno-exceptions -DMMU_IRAM_SIZE=0x8000 -DMMU_ICACHE_SIZE=0x8000 -w -x c++ -E -CC -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10813 -DARDUINO_ESP8266_GENERIC -DARDUINO_ARCH_ESP8266 “-DARDUINO_BOARD=\”ESP8266_GENERIC\”” -DLED_BUILTIN=2 -DFLASHMODE_DOUT -DESP8266 “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\cores\\esp8266” “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\variants\\generic” “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\libraries\\ESP8266WiFi\\src” “C:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\libraries\\ESP8266WiFi\\src\\CertStoreBearSSL.cpp” -o nul -DARDUINO_LIB_DISCOVERY_PHASE

    “C:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\3.0.4-gcc10.3-1757bed/bin/xtensa-lx106-elf-g++” -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -D_GNU_SOURCE “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/include” “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/lwip2/include” “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/libc/xtensa-lx106-elf/include” “-IC:\\Users\\famid\\AppData\\Local\\Temp\\arduino_build_882802/core” -c -w -Werror=return-type -Os -g -free -fipa-pta -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++17 -ffunction-sections -fdata-sections -fno-exceptions -DMMU_IRAM_SIZE=0x8000 -DMMU_ICACHE_SIZE=0x8000 -w -x c++ -E -CC -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10813 -DARDUINO_ESP8266_GENERIC -DARDUINO_ARCH_ESP8266 “-DARDUINO_BOARD=\”ESP8266_GENERIC\”” -DLED_BUILTIN=2 -DFLASHMODE_DOUT -DESP8266 “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\cores\\esp8266” “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\variants\\generic” “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\libraries\\ESP8266WiFi\\src” “C:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\libraries\\ESP8266WiFi\\src\\ESP8266WiFi.cpp” -o nul -DARDUINO_LIB_DISCOVERY_PHASE

    “C:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\3.0.4-gcc10.3-1757bed/bin/xtensa-lx106-elf-g++” -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -D_GNU_SOURCE “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/include” “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/lwip2/include” “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/libc/xtensa-lx106-elf/include” “-IC:\\Users\\famid\\AppData\\Local\\Temp\\arduino_build_882802/core” -c -w -Werror=return-type -Os -g -free -fipa-pta -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++17 -ffunction-sections -fdata-sections -fno-exceptions -DMMU_IRAM_SIZE=0x8000 -DMMU_ICACHE_SIZE=0x8000 -w -x c++ -E -CC -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10813 -DARDUINO_ESP8266_GENERIC -DARDUINO_ARCH_ESP8266 “-DARDUINO_BOARD=\”ESP8266_GENERIC\”” -DLED_BUILTIN=2 -DFLASHMODE_DOUT -DESP8266 “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\cores\\esp8266” “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\variants\\generic” “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\libraries\\ESP8266WiFi\\src” “C:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\libraries\\ESP8266WiFi\\src\\ESP8266WiFiAP.cpp” -o nul -DARDUINO_LIB_DISCOVERY_PHASE

    “C:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\3.0.4-gcc10.3-1757bed/bin/xtensa-lx106-elf-g++” -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -D_GNU_SOURCE “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/include” “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/lwip2/include” “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/libc/xtensa-lx106-elf/include” “-IC:\\Users\\famid\\AppData\\Local\\Temp\\arduino_build_882802/core” -c -w -Werror=return-type -Os -g -free -fipa-pta -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++17 -ffunction-sections -fdata-sections -fno-exceptions -DMMU_IRAM_SIZE=0x8000 -DMMU_ICACHE_SIZE=0x8000 -w -x c++ -E -CC -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10813 -DARDUINO_ESP8266_GENERIC -DARDUINO_ARCH_ESP8266 “-DARDUINO_BOARD=\”ESP8266_GENERIC\”” -DLED_BUILTIN=2 -DFLASHMODE_DOUT -DESP8266 “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\cores\\esp8266” “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\variants\\generic” “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\libraries\\ESP8266WiFi\\src” “C:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\libraries\\ESP8266WiFi\\src\\ESP8266WiFiGeneric.cpp” -o nul -DARDUINO_LIB_DISCOVERY_PHASE

    “C:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\3.0.4-gcc10.3-1757bed/bin/xtensa-lx106-elf-g++” -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -D_GNU_SOURCE “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/include” “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/lwip2/include” “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/libc/xtensa-lx106-elf/include” “-IC:\\Users\\famid\\AppData\\Local\\Temp\\arduino_build_882802/core” -c -w -Werror=return-type -Os -g -free -fipa-pta -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++17 -ffunction-sections -fdata-sections -fno-exceptions -DMMU_IRAM_SIZE=0x8000 -DMMU_ICACHE_SIZE=0x8000 -w -x c++ -E -CC -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10813 -DARDUINO_ESP8266_GENERIC -DARDUINO_ARCH_ESP8266 “-DARDUINO_BOARD=\”ESP8266_GENERIC\”” -DLED_BUILTIN=2 -DFLASHMODE_DOUT -DESP8266 “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\cores\\esp8266” “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\variants\\generic” “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\libraries\\ESP8266WiFi\\src” “C:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\libraries\\ESP8266WiFi\\src\\ESP8266WiFiGratuitous.cpp” -o nul -DARDUINO_LIB_DISCOVERY_PHASE

    “C:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\3.0.4-gcc10.3-1757bed/bin/xtensa-lx106-elf-g++” -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -D_GNU_SOURCE “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/include” “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/lwip2/include” “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/libc/xtensa-lx106-elf/include” “-IC:\\Users\\famid\\AppData\\Local\\Temp\\arduino_build_882802/core” -c -w -Werror=return-type -Os -g -free -fipa-pta -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++17 -ffunction-sections -fdata-sections -fno-exceptions -DMMU_IRAM_SIZE=0x8000 -DMMU_ICACHE_SIZE=0x8000 -w -x c++ -E -CC -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10813 -DARDUINO_ESP8266_GENERIC -DARDUINO_ARCH_ESP8266 “-DARDUINO_BOARD=\”ESP8266_GENERIC\”” -DLED_BUILTIN=2 -DFLASHMODE_DOUT -DESP8266 “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\cores\\esp8266” “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\variants\\generic” “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\libraries\\ESP8266WiFi\\src” “C:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\libraries\\ESP8266WiFi\\src\\ESP8266WiFiMulti.cpp” -o nul -DARDUINO_LIB_DISCOVERY_PHASE

    “C:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\3.0.4-gcc10.3-1757bed/bin/xtensa-lx106-elf-g++” -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -D_GNU_SOURCE “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/include” “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/lwip2/include” “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/libc/xtensa-lx106-elf/include” “-IC:\\Users\\famid\\AppData\\Local\\Temp\\arduino_build_882802/core” -c -w -Werror=return-type -Os -g -free -fipa-pta -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++17 -ffunction-sections -fdata-sections -fno-exceptions -DMMU_IRAM_SIZE=0x8000 -DMMU_ICACHE_SIZE=0x8000 -w -x c++ -E -CC -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10813 -DARDUINO_ESP8266_GENERIC -DARDUINO_ARCH_ESP8266 “-DARDUINO_BOARD=\”ESP8266_GENERIC\”” -DLED_BUILTIN=2 -DFLASHMODE_DOUT -DESP8266 “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\cores\\esp8266” “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\variants\\generic” “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\libraries\\ESP8266WiFi\\src” “C:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\libraries\\ESP8266WiFi\\src\\ESP8266WiFiSTA-WPS.cpp” -o nul -DARDUINO_LIB_DISCOVERY_PHASE

    “C:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\3.0.4-gcc10.3-1757bed/bin/xtensa-lx106-elf-g++” -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -D_GNU_SOURCE “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/include” “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/lwip2/include” “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/libc/xtensa-lx106-elf/include” “-IC:\\Users\\famid\\AppData\\Local\\Temp\\arduino_build_882802/core” -c -w -Werror=return-type -Os -g -free -fipa-pta -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++17 -ffunction-sections -fdata-sections -fno-exceptions -DMMU_IRAM_SIZE=0x8000 -DMMU_ICACHE_SIZE=0x8000 -w -x c++ -E -CC -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10813 -DARDUINO_ESP8266_GENERIC -DARDUINO_ARCH_ESP8266 “-DARDUINO_BOARD=\”ESP8266_GENERIC\”” -DLED_BUILTIN=2 -DFLASHMODE_DOUT -DESP8266 “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\cores\\esp8266” “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\variants\\generic” “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\libraries\\ESP8266WiFi\\src” “C:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\libraries\\ESP8266WiFi\\src\\ESP8266WiFiSTA.cpp” -o nul -DARDUINO_LIB_DISCOVERY_PHASE

    “C:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\3.0.4-gcc10.3-1757bed/bin/xtensa-lx106-elf-g++” -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -D_GNU_SOURCE “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/include” “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/lwip2/include” “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/libc/xtensa-lx106-elf/include” “-IC:\\Users\\famid\\AppData\\Local\\Temp\\arduino_build_882802/core” -c -w -Werror=return-type -Os -g -free -fipa-pta -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++17 -ffunction-sections -fdata-sections -fno-exceptions -DMMU_IRAM_SIZE=0x8000 -DMMU_ICACHE_SIZE=0x8000 -w -x c++ -E -CC -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10813 -DARDUINO_ESP8266_GENERIC -DARDUINO_ARCH_ESP8266 “-DARDUINO_BOARD=\”ESP8266_GENERIC\”” -DLED_BUILTIN=2 -DFLASHMODE_DOUT -DESP8266 “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\cores\\esp8266” “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\variants\\generic” “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\libraries\\ESP8266WiFi\\src” “C:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\libraries\\ESP8266WiFi\\src\\ESP8266WiFiScan.cpp” -o nul -DARDUINO_LIB_DISCOVERY_PHASE

    “C:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\3.0.4-gcc10.3-1757bed/bin/xtensa-lx106-elf-g++” -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -D_GNU_SOURCE “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/include” “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/lwip2/include” “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/libc/xtensa-lx106-elf/include” “-IC:\\Users\\famid\\AppData\\Local\\Temp\\arduino_build_882802/core” -c -w -Werror=return-type -Os -g -free -fipa-pta -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++17 -ffunction-sections -fdata-sections -fno-exceptions -DMMU_IRAM_SIZE=0x8000 -DMMU_ICACHE_SIZE=0x8000 -w -x c++ -E -CC -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10813 -DARDUINO_ESP8266_GENERIC -DARDUINO_ARCH_ESP8266 “-DARDUINO_BOARD=\”ESP8266_GENERIC\”” -DLED_BUILTIN=2 -DFLASHMODE_DOUT -DESP8266 “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\cores\\esp8266” “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\variants\\generic” “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\libraries\\ESP8266WiFi\\src” “C:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\libraries\\ESP8266WiFi\\src\\WiFiClient.cpp” -o nul -DARDUINO_LIB_DISCOVERY_PHASE

    “C:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\3.0.4-gcc10.3-1757bed/bin/xtensa-lx106-elf-g++” -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -D_GNU_SOURCE “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/include” “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/lwip2/include” “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/libc/xtensa-lx106-elf/include” “-IC:\\Users\\famid\\AppData\\Local\\Temp\\arduino_build_882802/core” -c -w -Werror=return-type -Os -g -free -fipa-pta -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++17 -ffunction-sections -fdata-sections -fno-exceptions -DMMU_IRAM_SIZE=0x8000 -DMMU_ICACHE_SIZE=0x8000 -w -x c++ -E -CC -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10813 -DARDUINO_ESP8266_GENERIC -DARDUINO_ARCH_ESP8266 “-DARDUINO_BOARD=\”ESP8266_GENERIC\”” -DLED_BUILTIN=2 -DFLASHMODE_DOUT -DESP8266 “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\cores\\esp8266” “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\variants\\generic” “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\libraries\\ESP8266WiFi\\src” “C:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\libraries\\ESP8266WiFi\\src\\WiFiClientSecureBearSSL.cpp” -o nul -DARDUINO_LIB_DISCOVERY_PHASE

    “C:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\3.0.4-gcc10.3-1757bed/bin/xtensa-lx106-elf-g++” -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -D_GNU_SOURCE “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/include” “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/lwip2/include” “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/libc/xtensa-lx106-elf/include” “-IC:\\Users\\famid\\AppData\\Local\\Temp\\arduino_build_882802/core” -c -w -Werror=return-type -Os -g -free -fipa-pta -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++17 -ffunction-sections -fdata-sections -fno-exceptions -DMMU_IRAM_SIZE=0x8000 -DMMU_ICACHE_SIZE=0x8000 -w -x c++ -E -CC -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10813 -DARDUINO_ESP8266_GENERIC -DARDUINO_ARCH_ESP8266 “-DARDUINO_BOARD=\”ESP8266_GENERIC\”” -DLED_BUILTIN=2 -DFLASHMODE_DOUT -DESP8266 “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\cores\\esp8266” “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\variants\\generic” “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\libraries\\ESP8266WiFi\\src” “C:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\libraries\\ESP8266WiFi\\src\\WiFiServer.cpp” -o nul -DARDUINO_LIB_DISCOVERY_PHASE

    “C:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\3.0.4-gcc10.3-1757bed/bin/xtensa-lx106-elf-g++” -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -D_GNU_SOURCE “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/include” “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/lwip2/include” “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/libc/xtensa-lx106-elf/include” “-IC:\\Users\\famid\\AppData\\Local\\Temp\\arduino_build_882802/core” -c -w -Werror=return-type -Os -g -free -fipa-pta -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++17 -ffunction-sections -fdata-sections -fno-exceptions -DMMU_IRAM_SIZE=0x8000 -DMMU_ICACHE_SIZE=0x8000 -w -x c++ -E -CC -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10813 -DARDUINO_ESP8266_GENERIC -DARDUINO_ARCH_ESP8266 “-DARDUINO_BOARD=\”ESP8266_GENERIC\”” -DLED_BUILTIN=2 -DFLASHMODE_DOUT -DESP8266 “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\cores\\esp8266” “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\variants\\generic” “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\libraries\\ESP8266WiFi\\src” “C:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\libraries\\ESP8266WiFi\\src\\WiFiServerSecureBearSSL.cpp” -o nul -DARDUINO_LIB_DISCOVERY_PHASE

    “C:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\3.0.4-gcc10.3-1757bed/bin/xtensa-lx106-elf-g++” -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -D_GNU_SOURCE “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/include” “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/lwip2/include” “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/libc/xtensa-lx106-elf/include” “-IC:\\Users\\famid\\AppData\\Local\\Temp\\arduino_build_882802/core” -c -w -Werror=return-type -Os -g -free -fipa-pta -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++17 -ffunction-sections -fdata-sections -fno-exceptions -DMMU_IRAM_SIZE=0x8000 -DMMU_ICACHE_SIZE=0x8000 -w -x c++ -E -CC -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10813 -DARDUINO_ESP8266_GENERIC -DARDUINO_ARCH_ESP8266 “-DARDUINO_BOARD=\”ESP8266_GENERIC\”” -DLED_BUILTIN=2 -DFLASHMODE_DOUT -DESP8266 “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\cores\\esp8266” “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\variants\\generic” “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\libraries\\ESP8266WiFi\\src” “C:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\libraries\\ESP8266WiFi\\src\\WiFiUdp.cpp” -o nul -DARDUINO_LIB_DISCOVERY_PHASE

    “C:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\3.0.4-gcc10.3-1757bed/bin/xtensa-lx106-elf-g++” -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -D_GNU_SOURCE “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/include” “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/lwip2/include” “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/libc/xtensa-lx106-elf/include” “-IC:\\Users\\famid\\AppData\\Local\\Temp\\arduino_build_882802/core” -c -w -Werror=return-type -Os -g -free -fipa-pta -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++17 -ffunction-sections -fdata-sections -fno-exceptions -DMMU_IRAM_SIZE=0x8000 -DMMU_ICACHE_SIZE=0x8000 -w -x c++ -E -CC -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10813 -DARDUINO_ESP8266_GENERIC -DARDUINO_ARCH_ESP8266 “-DARDUINO_BOARD=\”ESP8266_GENERIC\”” -DLED_BUILTIN=2 -DFLASHMODE_DOUT -DESP8266 “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\cores\\esp8266” “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\variants\\generic” “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\libraries\\ESP8266WiFi\\src” “C:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\libraries\\ESP8266WiFi\\src\\enable_wifi_at_boot_time.cpp” -o nul -DARDUINO_LIB_DISCOVERY_PHASE

    Generating function prototypes…

    “C:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\3.0.4-gcc10.3-1757bed/bin/xtensa-lx106-elf-g++” -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -D_GNU_SOURCE “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/include” “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/lwip2/include” “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/libc/xtensa-lx106-elf/include” “-IC:\\Users\\famid\\AppData\\Local\\Temp\\arduino_build_882802/core” -c -w -Werror=return-type -Os -g -free -fipa-pta -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++17 -ffunction-sections -fdata-sections -fno-exceptions -DMMU_IRAM_SIZE=0x8000 -DMMU_ICACHE_SIZE=0x8000 -w -x c++ -E -CC -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10813 -DARDUINO_ESP8266_GENERIC -DARDUINO_ARCH_ESP8266 “-DARDUINO_BOARD=\”ESP8266_GENERIC\”” -DLED_BUILTIN=2 -DFLASHMODE_DOUT -DESP8266 “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\cores\\esp8266” “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\variants\\generic” “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\libraries\\ESP8266WiFi\\src” “C:\\Users\\famid\\AppData\\Local\\Temp\\arduino_build_882802\\sketch\\main.ino.cpp” -o “C:\\Users\\famid\\AppData\\Local\\Temp\\arduino_build_882802\\preproc\\ctags_target_for_gcc_minus_e.cpp” -DARDUINO_LIB_DISCOVERY_PHASE

    “C:\\Program Files\\Arduino\\tools-builder\\ctags\\5.8-arduino11/ctags” -u –language-force=c++ -f – –c++-kinds=svpf –fields=KSTtzns –line-directives “C:\\Users\\famid\\AppData\\Local\\Temp\\arduino_build_882802\\preproc\\ctags_target_for_gcc_minus_e.cpp”

    Compiling sketch…

    “C:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\python3\\3.7.2-post1/python3” -I “C:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/signing.py” –mode header –publickey “C:\\Users\\famid\\Desktop\\ESP8266 Project\\sinric pro\\main/public.key” –out “C:\\Users\\famid\\AppData\\Local\\Temp\\arduino_build_882802/core/Updater_Signing.h”

    “C:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\3.0.4-gcc10.3-1757bed/bin/xtensa-lx106-elf-g++” -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -D_GNU_SOURCE “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/include” “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/lwip2/include” “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/libc/xtensa-lx106-elf/include” “-IC:\\Users\\famid\\AppData\\Local\\Temp\\arduino_build_882802/core” -c -w -Werror=return-type -Os -g -free -fipa-pta -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++17 -MMD -ffunction-sections -fdata-sections -fno-exceptions -DMMU_IRAM_SIZE=0x8000 -DMMU_ICACHE_SIZE=0x8000 -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10813 -DARDUINO_ESP8266_GENERIC -DARDUINO_ARCH_ESP8266 “-DARDUINO_BOARD=\”ESP8266_GENERIC\”” -DLED_BUILTIN=2 -DFLASHMODE_DOUT -DESP8266 “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\cores\\esp8266” “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\variants\\generic” “-IC:\\Users\\famid\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\libraries\\ESP8266WiFi\\src” “C:\\Users\\famid\\AppData\\Local\\Temp\\arduino_build_882802\\sketch\\main.ino.cpp” -o “C:\\Users\\famid\\AppData\\Local\\Temp\\arduino_build_882802\\sketch\\main.ino.cpp.o”

    main:9:14: error: ‘D1’ was not declared in this scope; did you mean ‘y1’?

    9 | int relay1 = D1;

    | ^~

    | y1

    main:10:14: error: ‘D2’ was not declared in this scope

    10 | int relay2 = D2;

    | ^~

    main:11:14: error: ‘D3’ was not declared in this scope

    11 | int relay3 = D3;

    | ^~

    main:12:14: error: ‘D4’ was not declared in this scope

    12 | int relay4 = D4;

    | ^~

    Using library ESP8266WiFi at version 1.0 in folder: C:\Users\famid\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\ESP8266WiFi

    exit status 1

    ‘D1’ was not declared in this scope; did you mean ‘y1’?

  6. int relay1 = D1;
    int relay2 = D2;
    int relay3 = D3;
    int relay4 = D4;

    ‘D1’ was not declared in this scope; did you mean ‘y1’?

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button