

To start ESP as Access point you have to use this simple command WiFi.softAP(ssid, password) //Start HOTspot removing password will disable security Third way is only access point, default is all AP and STA are enabled, to get only AP use this command. WiFi.mode(WIFI_AP_STA) //Both hotspot and client are enabled This way you can access ESP web page with two different IP address. In some application you may find that both AP and connection to WiFi router are useful for making configuration you use ESP8266 AP and for data sending to cloud use WiFi connectivity in that case use this command and both connections. WiFi.mode(WIFI_STA) //This line hides the viewing of ESP as wifi network You may find that ESP is also visible as hot spot in previous example you can hide its AP (Access point) using this command at the beginning of setup. In this tutorial we are making ESP as AP. There are two ways to make web server one is to connect to WiFi hot spot or make ESP as hot spot ( Access Point). ESP8266WebServer server(80) //Server on port 80 For port number 81 you have to type 192.168.2.2:81 in browser. Web server is on port 80, you can use other ports also, default HTTP port is 80, to open web page with different port number you have to enter port number after IP address. WiFiClient.h this file is required to send request to web browserĮSP8266WebServer.h it handles all HTTP protocols #include ĭefine your SSID and Password of your WiFi router, where the ESP connects //SSID and Password for ESP8266 We need these libraries to make web server.ĮSP8266WiFi.h is required for doing all WiFi related functionalities such as connection, AP, etc. Step 1: Creating web server on ESP8266ĮSP can acts as access point and it can connect to access point or both.įirst we make program to connect to WiFi hot spot (Access Point) Program to connect to Access point and Make web server Web Server Step by StepĪs we know that all web servers have a web page to be served. To implement web server on ESP, there are two ways to make your first web server first connect to your WiFi router or make ESP as access point.
#Hide my ip serial key 2016 septiembre how to#
We have seen how to connect to WiFi Router and make web server in previous post.Ī Web server is a program that uses HTTP (Hypertext Transfer Protocol) to serve the files that form Web pages to users, in response to their requests, which are forwarded by their computers’ HTTP clients. In this tutorial we are making ESP8266 as Access point and using it to make it web server.
