# Error Compiling for Generic ESP8266 Module

**URL:** <https://forum.arduino.cc/t/error-compiling-for-generic-esp8266-module/924757>\
**Category:** Programming\
**Created:** [November 13, 2021, 7:22pm UTC](https://forum.arduino.cc/t/error-compiling-for-generic-esp8266-module/924757 "2021-11-13T19:22:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![heidryxgreene](https://avatars.discourse-cdn.com/v4/letter/h/838e76/32.png) [@heidryxgreene](https://forum.arduino.cc/u/heidryxgreene)\
**Post date:** [November 13, 2021, 7:22pm UTC](https://forum.arduino.cc/t/error-compiling-for-generic-esp8266-module/924757/1 "2021-11-13T19:22:07Z")

</div>

I get this "exit status 1  
Error compiling for board Generic ESP8266 Module." error no matter what youtube video i follow.

#include \<ESP8266WiFi.h\>  
#include \<ESP8266WiFiAP.h\>  
#include \<ESP8266WiFiGeneric.h\>  
#include \<ESP8266WiFiGratuitous.h\>  
#include \<ESP8266WiFiMulti.h\>  
#include \<ESP8266WiFiScan.h\>  
#include \<ESP8266WiFiSTA.h\>  
#include \<ESP8266WiFiType.h\>  
#include \<WiFiClient.h\>  
#include \<WiFiClientSecure.h\>  
#include \<WiFiClientSecureBearSSL.h\>  
#include \<WiFiServer.h\>  
#include \<WiFiServerSecure.h\>  
#include \<WiFiServerSecureBearSSL.h\>  
#include \<WiFiUdp.h\>

#include \<Firebase.h\>  
#include \<FirebaseArduino.h\>  
#include \<FirebaseCloudMessaging.h\>  
#include \<FirebaseError.h\>  
#include \<FirebaseHttpClient.h\>  
#include \<FirebaseObject.h\>

#include \<LiquidCrystal\_I2C.h\>  
#include\<UltraDistSensor.h\>  
LiquidCrystal\_I2C lcd(0x27, 16, 2);

//Ultrasonic Pins  
int trigPin = 13; // TRIG pin  
int echoPin = 12; // ECHO pin

float duration\_us, distance\_cm;

//Earthquake perimeters  
const int x = A0;  
const int y = A1;  
const int z = A2;

int xsample=0;  
int ysample=0;  
int zsample=0;

#define samples 50  
int maxVal = 20;  
int minVal = -20;

String H = "HIGH";  
String M = "MOD ";  
String L = "LOW ";

//Firebase  
#define FIREBASE\_HOST "[cloud-based-multialarm-default-rtdb.firebaseio.com](http://cloud-based-multialarm-default-rtdb.firebaseio.com)"  
#define FIREBASE\_AUTH "sqJSyzl1QWPGTt3ujv0mE3gdGrZS6bnt6sPiy7ft"

//ESP8266  
#define WIFI\_SSID "**"  
 #define WIFI\_PASSWORD "**\*"

void setup() {

Serial.begin(9600);

WiFi.begin(WIFI\_SSID, WIFI\_PASSWORD);  
Serial.print("Attempting Connection");  
while(WiFi.status() !=WL\_CONNECTED)  
{Serial.print("...");  
delay(500);}

```
Serial.println();
Serial.print("Connected Successfully");
Serial.print(WiFi.localIP());

```

---

<div class="post-metadata">

**Author:** ![groundFungus](https://avatars.discourse-cdn.com/v4/letter/g/73ab20/32.png) [@groundFungus](https://forum.arduino.cc/u/groundFungus)\
**Post date:** [November 13, 2021, 7:38pm UTC](https://forum.arduino.cc/t/error-compiling-for-generic-esp8266-module/924757/2 "2021-11-13T19:38:39Z")

</div>

Code is incomplete. Post the whole code.

Code is improperly posted. [Read the forum guidelines](https://forum.arduino.cc/t/how-to-get-the-best-out-of-this-forum/679966) to see how to properly post code and some hints on how to get the most from this forum.  
**Use the IDE autoformat tool** (ctrl-t or Tools, Auto format) before posting code in code tags.

Please include the entire error message. It is easy to do. There is a button (lower right of the IDE window) called " **copy error message**". Copy the error and paste into a post in code tags. Paraphrasing the error message leaves out important information.

---

<div class="post-metadata">

**Author:** ![heidryxgreene](https://avatars.discourse-cdn.com/v4/letter/h/838e76/32.png) [@heidryxgreene](https://forum.arduino.cc/u/heidryxgreene)\
**Post date:** [November 13, 2021, 7:43pm UTC](https://forum.arduino.cc/t/error-compiling-for-generic-esp8266-module/924757/4 "2021-11-13T19:43:33Z")

</div>

so long , sorry

---

<div class="post-metadata">

**Author:** ![groundFungus](https://avatars.discourse-cdn.com/v4/letter/g/73ab20/32.png) [@groundFungus](https://forum.arduino.cc/u/groundFungus)\
**Post date:** [November 13, 2021, 7:56pm UTC](https://forum.arduino.cc/t/error-compiling-for-generic-esp8266-module/924757/5 "2021-11-13T19:56:36Z")

</div>

Seems that you ignored the part about code tags and autoformat. If you are in a hurry, ignoring the rules will not speed things up.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [May 13, 2022, 5:02pm UTC](https://forum.arduino.cc/t/error-compiling-for-generic-esp8266-module/924757/7 "2022-05-13T17:02:30Z")

</div>

Closed on May 13, 2022, 5:02pm UTC

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
