SlideShare a Scribd company logo
Access Point and
Station
Session: 3
What is an Access Point and Station ?
When you set the ESP8266 as an access point you create its own Wi-Fi
network and nearby Wi-Fi devices (stations) can connect to it (like your
smartphone or your computer).
When the NodeMCU is in Station mode, it can connect itself to any Hotspot
or Wi-Fi network router.
Getting Started with the NodeMCU- Access Point and Station (By Akshet Patel)
Some Important Commands:
Library: A library is a reusable chunk of code that you may want to include in your programs. These
may include message templates, pre-written code and subroutines, values or type specifications.
1. #include <ESP8266WiFi.h>
No wifi related commands will work without this library.
2. WiFi.begin("WiFiName", "WiFiPassword"); //Command to connect to a WiFi Network
3. WiFi.status(); //To check if it is connected to a Network or not.
WiFi.status() values can be:
WL_CONNECTED - connected
WL_IDLE_STATUS - trying to connect
WL_CONNECT_FAILED - connection failed
4. WiFi.localIP: returns the IP address of the connected network.
5. WiFi.scanNetworks(): Scans for available WiFi networks and returns the discovered number.
6. WiFi.softAP(“network name”, “network password”): Creates its own network and generates its own
IP Address.
7. WiFi.softAPIP(): Returns the IP address generated by the nodeMCU behaving as an access point.
8. WiFiClient: Creates a client that can connect to to a specified internet IP address.
9. server.available(): Gets a client that is connected to the server and has data available for reading.
Client and Server:
Example:
NodeMCU as Station Code:
NodeMCU as Access Point Code:
NodeMCU as Server:
Coming up in the next session! HTML?

More Related Content

PPT
Building IoT with Arduino Day One
PPTX
Getting Started with the NodeMCU- NodeMCU Programming (By Akshet Patel)
PPTX
Getting Started with the NodeMCU- Getting started with Internet of Things (Io...
PDF
IOT: Home Automation using Android Application
PPTX
IOT Based Home Automation using Raspberry Pi-3
PPTX
Electronics Microcontrollers for IoT applications
PDF
The State of Arduino and IoT
PPTX
Internet of Things (IoT) Based Smart Security & Home Automation System.
Building IoT with Arduino Day One
Getting Started with the NodeMCU- NodeMCU Programming (By Akshet Patel)
Getting Started with the NodeMCU- Getting started with Internet of Things (Io...
IOT: Home Automation using Android Application
IOT Based Home Automation using Raspberry Pi-3
Electronics Microcontrollers for IoT applications
The State of Arduino and IoT
Internet of Things (IoT) Based Smart Security & Home Automation System.

What's hot (20)

PPTX
Iot based home automation
PPTX
Introduction to Smart Devices
PDF
Week2 fundamental of IoT
DOC
smart automation system
PPTX
Eckovation IoT internship Report PowerPoint presentation
PPTX
Introduction to IoT Network
PPTX
Applications of various latest coprocessors
PPTX
IOT PPT
PDF
1. Introduction to Embedded Systems & IoT
PPTX
Home automation using internet of things
PPTX
Arduino and IoT (Internet of Things)
PPTX
Internet of things for the “smart home”
PPTX
Bluetooth controlled home appliances
PDF
SMART INTELLIGENT SECURITY SYSTEM FOR WOMEN
PPTX
Home Automation System using iot
PPTX
Google Voice Assistance Based Smart Home Automation
PPTX
Attendance System using ESP8266(Wi-Fi) with MySQL
PDF
Lecture 1 - Introduction to IoT
PPTX
Home automation based iot
PDF
IoT Based home automation system using Arduino board
Iot based home automation
Introduction to Smart Devices
Week2 fundamental of IoT
smart automation system
Eckovation IoT internship Report PowerPoint presentation
Introduction to IoT Network
Applications of various latest coprocessors
IOT PPT
1. Introduction to Embedded Systems & IoT
Home automation using internet of things
Arduino and IoT (Internet of Things)
Internet of things for the “smart home”
Bluetooth controlled home appliances
SMART INTELLIGENT SECURITY SYSTEM FOR WOMEN
Home Automation System using iot
Google Voice Assistance Based Smart Home Automation
Attendance System using ESP8266(Wi-Fi) with MySQL
Lecture 1 - Introduction to IoT
Home automation based iot
IoT Based home automation system using Arduino board
Ad

Similar to Getting Started with the NodeMCU- Access Point and Station (By Akshet Patel) (20)

PDF
WiFi SoC ESP8266
PPTX
New Microsoft PowerPoint Presentation.pptx
PDF
IOT NodeMCU - NodeMCU Connection to Internet
PPT
WIRELESS COMMUNICATIONAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
PDF
Athens IoT Meetup #3 - Introduction to ESP8266 (Pavlos Isaris)
PDF
Ijecet 06 08_002
PPTX
Presentation1.pptx is a ppt slide show and
PPT
WCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC...
PPTX
Esp8266 - Intro for dummies
PDF
Practical Introduction to Internet of Things (IoT)
PDF
Esp8266 v12
PDF
IoT simple with the ESP8266 - presented at the July 2015 Austin IoT Hardware ...
DOCX
Chapter 2.doc
PPTX
Introduction to Node MCU as a brain of Internet of Things
PPTX
Remote tanklevelmonitor
PDF
NodeMCU 0.9 Manual using Arduino IDE
PPTX
Introduction to Things board (An Open Source IoT Cloud Platform)
ODP
Deauthentication Attack with Node MCU & Esp8266
PPT
RGZFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
PDF
WIFI ESP01 interfacing with Arduino UNO with Sensor DHT11
WiFi SoC ESP8266
New Microsoft PowerPoint Presentation.pptx
IOT NodeMCU - NodeMCU Connection to Internet
WIRELESS COMMUNICATIONAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Athens IoT Meetup #3 - Introduction to ESP8266 (Pavlos Isaris)
Ijecet 06 08_002
Presentation1.pptx is a ppt slide show and
WCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC...
Esp8266 - Intro for dummies
Practical Introduction to Internet of Things (IoT)
Esp8266 v12
IoT simple with the ESP8266 - presented at the July 2015 Austin IoT Hardware ...
Chapter 2.doc
Introduction to Node MCU as a brain of Internet of Things
Remote tanklevelmonitor
NodeMCU 0.9 Manual using Arduino IDE
Introduction to Things board (An Open Source IoT Cloud Platform)
Deauthentication Attack with Node MCU & Esp8266
RGZFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
WIFI ESP01 interfacing with Arduino UNO with Sensor DHT11
Ad

Recently uploaded (20)

PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Review of recent advances in non-invasive hemoglobin estimation
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Approach and Philosophy of On baking technology
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
Empathic Computing: Creating Shared Understanding
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Encapsulation theory and applications.pdf
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
 
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
NewMind AI Weekly Chronicles - August'25 Week I
Chapter 3 Spatial Domain Image Processing.pdf
Review of recent advances in non-invasive hemoglobin estimation
Digital-Transformation-Roadmap-for-Companies.pptx
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
MIND Revenue Release Quarter 2 2025 Press Release
Approach and Philosophy of On baking technology
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Empathic Computing: Creating Shared Understanding
20250228 LYD VKU AI Blended-Learning.pptx
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Encapsulation theory and applications.pdf
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
 
Per capita expenditure prediction using model stacking based on satellite ima...
Building Integrated photovoltaic BIPV_UPV.pdf
Encapsulation_ Review paper, used for researhc scholars
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
NewMind AI Weekly Chronicles - August'25 Week I

Getting Started with the NodeMCU- Access Point and Station (By Akshet Patel)

  • 2. What is an Access Point and Station ? When you set the ESP8266 as an access point you create its own Wi-Fi network and nearby Wi-Fi devices (stations) can connect to it (like your smartphone or your computer). When the NodeMCU is in Station mode, it can connect itself to any Hotspot or Wi-Fi network router.
  • 4. Some Important Commands: Library: A library is a reusable chunk of code that you may want to include in your programs. These may include message templates, pre-written code and subroutines, values or type specifications. 1. #include <ESP8266WiFi.h> No wifi related commands will work without this library. 2. WiFi.begin("WiFiName", "WiFiPassword"); //Command to connect to a WiFi Network 3. WiFi.status(); //To check if it is connected to a Network or not. WiFi.status() values can be: WL_CONNECTED - connected WL_IDLE_STATUS - trying to connect WL_CONNECT_FAILED - connection failed 4. WiFi.localIP: returns the IP address of the connected network.
  • 5. 5. WiFi.scanNetworks(): Scans for available WiFi networks and returns the discovered number. 6. WiFi.softAP(“network name”, “network password”): Creates its own network and generates its own IP Address. 7. WiFi.softAPIP(): Returns the IP address generated by the nodeMCU behaving as an access point. 8. WiFiClient: Creates a client that can connect to to a specified internet IP address. 9. server.available(): Gets a client that is connected to the server and has data available for reading.
  • 9. NodeMCU as Access Point Code:
  • 10. NodeMCU as Server: Coming up in the next session! HTML?