ESP8266 Arduino-Core Interface – WiFi

Arduino Core Library : ESP8266WiFi.h

  • https://github.com/esp8266/Arduino/tree/master/libraries/ESP8266WiFi

 

 

 


Scan the WiFi Networks

Arduino Code

  • https://github.com/esp8266/Arduino/blob/master/libraries/ESP8266WiFi/examples/WiFiScan/WiFiScan.ino

 

Output


Set ESP8266 as a Access Point

Arduino Code

Result

  • You Can see the ArunEworld  access point in WiFi network Area.

 


Connect Access Point to ESP8266

  • In this code We Used ESP8266WiFi.h Library function.
  • Begin the WiFi using WiFi.begin(ssid, password);  function

Arduino Code

Result

 


Set Static IP to ESP8266

  • In this code We Used ESP8266WiFi.h Library function.
  • Set Static IP Address using IPAddress  Class

Arduino Code

Output

 


ESP8266 as Simple Web server

Arduino Code

  • https://github.com/esp8266/Arduino/blob/master/libraries/ESP8266WiFi/examples/WiFiAccessPoint/WiFiAccessPoint.ino

Result:

  • When Serial Monitors starts You can see this bleow

  • You just connect your mobile or system to ArunEworld  WiFi Network and type the following ip address 192.168.4.1  from your system or mobile . You can see the words like You are connected

 


 

Leave a Reply

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