Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save iotguider/789fdf3d7f0334a0ccff5d87b4ec8cc0 to your computer and use it in GitHub Desktop.
Save iotguider/789fdf3d7f0334a0ccff5d87b4ec8cc0 to your computer and use it in GitHub Desktop.
Access Point Mode for Establishing WiFi Connection in ESP8266 WiFi Module
#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