You are on page 1of 1

//---------------------------------------------------------------------------------

---
// Libraries Needed For This Project
//---------------------------------------------------------------------------------
---
#include <EEPROM.h> // To Be Able To Store & Read Data Between Power Off
#include <ESP8266WiFi.h> // The Basic Function Of The ESP NOD MCU
//---------------------------------------------------------------------------------
---
// Defining I/O Pins
//---------------------------------------------------------------------------------
---
#define LED0 2 // WIFI Module LED
#define LED1 D0 // Indicate Connectivity With Client #1
#define BUTTON D1 // Connectivity ReInitiate Button
//---------------------------------------------------------------------------------
---
// BUTTON Variables
//---------------------------------------------------------------------------------
---
int ButtonState;
int LastButtonState = LOW;
int LastDebounceTime = 0;
int DebounceDelay = 50;
const String ClientType = "Cliente 01";
//---------------------------------------------------------------------------------
---
// LED Delay Variables
//---------------------------------------------------------------------------------
---
int LEDState = LOW;
unsigned long CurrMillis = 0;
unsigned long PrevMillis = 0;
unsigned long Interval = 1000;
//---------------------------------------------------------------------------------
---
// WIFI Authentication Variables
//---------------------------------------------------------------------------------
---
/* This Client Is Going To Connect To A WIFI Server Access Point
* So You Have To Specify Server WIFI SSID & Password In The Code Not Here
* Please See The Function Below Name (WiFi.Begin)
* If WIFI dont need Any password Then WiFi.begin("SSIDNAME")
* If WIFI needs a Password Then WiFi.begin("SSIDNAME", "PASSWORD")
*/
char* ESPssid; // Wifi Name
char* ESPpassword; // Wifi Password
//---------------------------------------------------------------------------------
---
// WIFI Module Role & Port
//---------------------------------------------------------------------------------
---
/* This WIFI Module Code Works As A Client
* That Will Connect To A Server WIFI Modul With (IP ADDress 192.168.4.1)
*/

You might also like