Created
January 9, 2019 13:02
-
-
Save iotguider/789fdf3d7f0334a0ccff5d87b4ec8cc0 to your computer and use it in GitHub Desktop.
Access Point Mode for Establishing WiFi Connection in ESP8266 WiFi Module
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <ESP8266WiFi.h> | |
const char* ssid = "WiFi_SSID"; //Enter Wi-Fi SSID | |
const char* password = "WiFi_Password"; //Enter Wi-Fi Password | |
void setup() { | |
Serial.begin(115200); //Begin Serial at 115200 Baud | |
WiFi.softAP(ssid, password); //Start the AP Mode | |
Serial.print("Access Point started"); | |
Serial.print("IP address: "); | |
Serial.println(WiFi.softAPIP()); //Print the ESP8266 IP | |
} | |
void loop() { | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment