SlideShare a Scribd company logo
Internet ofThings
NodeMCU Connection to Internet
Eng. Elaf A.Saeed
The Contents
• Enabling technology for IOT.
• Connect ESP8266 to a local WI-FI Network (cont.)
Enabling technology for iot (cont.)
• Light-Fidelity (Li-Fi)
Enabling technology for iot
• Ethernet
Enabling technology for iot (cont.)
• Wi-Fi
Connect ESP8266 to a local WI-FI
Network
Connect ESP8266 to a local WI-FI
Network (cont.)
• The ESP8266 module can either be a web server (Access Point) or Wi-Fi
(Station).
• when used as a web server, the ESP8266 hosts a web application on a web
page that connected clients can access.
• As a Wi-Fi client, the ESP8266 connects to local or online servers and logs
data to them or reads from them.
Connect ESP8266 to a local WI-FI
Network (cont.)
Connect ESP8266 to a local WI-FI
Network (cont.)
• The function the is used in code:
1. WiFi.begin() ➔ Initializes the Wi-Fi library's network settings and provides the current status.
Syntax
✓ WiFi.begin();
✓ WiFi.begin(ssid);
✓ WiFi.begin(ssid, pass);
❑Parameters:
• ssid: the SSID (Service Set Identifier) is the name of the WiFi network you want to connect to.
• pass: WPA encrypted networks use a password in the form of a string for security.
Connect ESP8266 to a local WI-FI
Network (cont.)
• WiFi.status() ➔ Return the connection status.
Syntax
• WiFi.status();
Parameters
• none
Returns
• WL_NO_SSID_AVAIL: assigned when no SSID are available;
• WL_CONNECTED: assigned when connected to a Wi-Fi network;
• WL_CONNECT_FAILED: assigned when the connection fails for all the attempts;
Connect ESP8266 to a local WI-FI
Network (cont.)
• This program will connect your ESP to a WIFI network and print its IP
address on your Arduino serial monitor.
• You need to modify your ssid and password
• const char* ssid = "YOUR WIFI NETWORK NAME";
• const char* password = "YOUR WIFI PASSWARD";
• make sure that the Baud rate in the program and your serial monitor window
are the same
Connect ESP8266 to a local WI-FI
Network (cont.)
Connect ESP8266 to a local WI-FI
Network (cont.)
Thanks

More Related Content

What's hot (19)

PDF
IOT NodeMCU - IFTTT Templet to send SMS
Elaf A.Saeed
 
PDF
lesson1 - Getting Started with ESP8266
Elaf A.Saeed
 
PDF
NodeMCU with Blynk and Firebase
Eueung Mulyana
 
ODP
Deauthentication Attack with Node MCU & Esp8266
Akash Thakur
 
PDF
Node MCU Fun
David Bosschaert
 
PPTX
Build WiFi gadgets using esp8266
Baoshi Zhu
 
PDF
Adafruit Huzzah Esp8266 WiFi Board
Biagio Botticelli
 
PDF
Esp8266 basics
Eueung Mulyana
 
PPTX
Node mcu x raspberrypi2 x mqtt
承翰 蔡
 
PDF
Home Automation by ESP8266
Gleb Vinnikov
 
PDF
How to Install ESP8266 WiFi Web Server using Arduino IDE
Naoto MATSUMOTO
 
PPT
CCNA Icnd110 s04l07
computerlenguyen
 
PDF
IoT Home project by MADHAV
K.V. SAI MADHAV
 
PPTX
Remote temperature monitor (DHT11)
Parshwadeep Lahane
 
PDF
NodeMCU 0.9 Manual using Arduino IDE
Subhadra Sundar Chakraborty
 
PDF
Cassiopeia Ltd - ESP8266+Arduino workshop
tomtobback
 
PPTX
Remote tanklevelmonitor
Parshwadeep Lahane
 
PDF
Nicholaus ufoakses
HARRY CHAN PUTRA
 
PPT
CCNA Icnd110 s04l08
computerlenguyen
 
IOT NodeMCU - IFTTT Templet to send SMS
Elaf A.Saeed
 
lesson1 - Getting Started with ESP8266
Elaf A.Saeed
 
NodeMCU with Blynk and Firebase
Eueung Mulyana
 
Deauthentication Attack with Node MCU & Esp8266
Akash Thakur
 
Node MCU Fun
David Bosschaert
 
Build WiFi gadgets using esp8266
Baoshi Zhu
 
Adafruit Huzzah Esp8266 WiFi Board
Biagio Botticelli
 
Esp8266 basics
Eueung Mulyana
 
Node mcu x raspberrypi2 x mqtt
承翰 蔡
 
Home Automation by ESP8266
Gleb Vinnikov
 
How to Install ESP8266 WiFi Web Server using Arduino IDE
Naoto MATSUMOTO
 
CCNA Icnd110 s04l07
computerlenguyen
 
IoT Home project by MADHAV
K.V. SAI MADHAV
 
Remote temperature monitor (DHT11)
Parshwadeep Lahane
 
NodeMCU 0.9 Manual using Arduino IDE
Subhadra Sundar Chakraborty
 
Cassiopeia Ltd - ESP8266+Arduino workshop
tomtobback
 
Remote tanklevelmonitor
Parshwadeep Lahane
 
Nicholaus ufoakses
HARRY CHAN PUTRA
 
CCNA Icnd110 s04l08
computerlenguyen
 

Similar to IOT NodeMCU - NodeMCU Connection to Internet (20)

PPTX
Presentation1.pptx is a ppt slide show and
darkchocolate5556
 
PPTX
Wireless Penetration Testing
Mohammed Adam
 
PPTX
Networking_Essentials_version_3.0_-_Module_4.pptx
ryan622010
 
PPTX
Wifi- technology_moni
MD MONIRUZZAMAN
 
PDF
Wi-Fi Module
Mohsen Sarakbi
 
PPTX
Wireless lan electronics and communication engineering
eceb9198
 
PPTX
Wi fi security
Virendra Thakur
 
PDF
Gc itach wf2-ir
Domotica daVinci
 
PDF
Fudcon 2015...Wireless: From Basics to Internals
Kiran Divekar
 
PDF
Low Power Wireless Technologies and Standards for the Internet of Things
Duncan Purves
 
PDF
Embedded Systems: Lecture 8: Lab 1: Building a Raspberry Pi Based WiFi AP
Ahmed El-Arabawy
 
PDF
Low Power Wireless Sensor Network Technologies and Standards for the Internet...
Duncan Purves
 
PPT
Wifi vignan final
PREMKUMAR
 
PPT
Wi fi
kendre1234
 
PPTX
Home Automation with LinkSprite IO
Jingfeng Liu
 
PPTX
Open Source Home Automation with LinkSprite.IO
Jingfeng Liu
 
PDF
802 11 3
rphelps
 
PDF
Vigor ap810 datasheet_140103
marat1989
 
PDF
Databook 2018 ver2
DrayTek
 
PPTX
Getting Started with the NodeMCU- Access Point and Station (By Akshet Patel)
AkshetPatel
 
Presentation1.pptx is a ppt slide show and
darkchocolate5556
 
Wireless Penetration Testing
Mohammed Adam
 
Networking_Essentials_version_3.0_-_Module_4.pptx
ryan622010
 
Wifi- technology_moni
MD MONIRUZZAMAN
 
Wi-Fi Module
Mohsen Sarakbi
 
Wireless lan electronics and communication engineering
eceb9198
 
Wi fi security
Virendra Thakur
 
Gc itach wf2-ir
Domotica daVinci
 
Fudcon 2015...Wireless: From Basics to Internals
Kiran Divekar
 
Low Power Wireless Technologies and Standards for the Internet of Things
Duncan Purves
 
Embedded Systems: Lecture 8: Lab 1: Building a Raspberry Pi Based WiFi AP
Ahmed El-Arabawy
 
Low Power Wireless Sensor Network Technologies and Standards for the Internet...
Duncan Purves
 
Wifi vignan final
PREMKUMAR
 
Wi fi
kendre1234
 
Home Automation with LinkSprite IO
Jingfeng Liu
 
Open Source Home Automation with LinkSprite.IO
Jingfeng Liu
 
802 11 3
rphelps
 
Vigor ap810 datasheet_140103
marat1989
 
Databook 2018 ver2
DrayTek
 
Getting Started with the NodeMCU- Access Point and Station (By Akshet Patel)
AkshetPatel
 
Ad

More from Elaf A.Saeed (20)

PDF
Getting date and time from ntp server with esp8266 node mcu
Elaf A.Saeed
 
PDF
Lesson 8- NodeMCU with Servo Motor
Elaf A.Saeed
 
PDF
Lesson 7- NodeMCU with DC Motor
Elaf A.Saeed
 
PDF
Lesson 6 - NodeMCU with PWM Pin
Elaf A.Saeed
 
PDF
lesson4 - NodeMCU control led
Elaf A.Saeed
 
PDF
lesson2 - Nodemcu course - NodeMCU dev Board
Elaf A.Saeed
 
PDF
Embedded system course projects - Arduino Course
Elaf A.Saeed
 
PDF
Embedded system introduction - Arduino Course
Elaf A.Saeed
 
PDF
Pyton with rasperry pi
Elaf A.Saeed
 
PDF
Summary of MATLAB Functions-Part1
Elaf A.Saeed
 
PDF
MATLAB Basics-Part1
Elaf A.Saeed
 
PDF
Python basics_ part1
Elaf A.Saeed
 
PDF
How to be Healthy
Elaf A.Saeed
 
PDF
Lecture 6(simulation programs- برامج المحاكاة)
Elaf A.Saeed
 
PDF
Lecture 5(the steps of design embedded systems- خطوات تصميمي الانظمة المدمجة)
Elaf A.Saeed
 
PDF
Lecture 4(output devices- اجهزة الخراج)
Elaf A.Saeed
 
PDF
Lecture 3(input devices- اجهزة الادخال)
Elaf A.Saeed
 
PDF
Lecture 2 (microcontroller- المتحكم الدقيق)
Elaf A.Saeed
 
PDF
Lecture 1(مقدمة عن الانظمة المدمجة )
Elaf A.Saeed
 
PDF
Ch8 pid controller
Elaf A.Saeed
 
Getting date and time from ntp server with esp8266 node mcu
Elaf A.Saeed
 
Lesson 8- NodeMCU with Servo Motor
Elaf A.Saeed
 
Lesson 7- NodeMCU with DC Motor
Elaf A.Saeed
 
Lesson 6 - NodeMCU with PWM Pin
Elaf A.Saeed
 
lesson4 - NodeMCU control led
Elaf A.Saeed
 
lesson2 - Nodemcu course - NodeMCU dev Board
Elaf A.Saeed
 
Embedded system course projects - Arduino Course
Elaf A.Saeed
 
Embedded system introduction - Arduino Course
Elaf A.Saeed
 
Pyton with rasperry pi
Elaf A.Saeed
 
Summary of MATLAB Functions-Part1
Elaf A.Saeed
 
MATLAB Basics-Part1
Elaf A.Saeed
 
Python basics_ part1
Elaf A.Saeed
 
How to be Healthy
Elaf A.Saeed
 
Lecture 6(simulation programs- برامج المحاكاة)
Elaf A.Saeed
 
Lecture 5(the steps of design embedded systems- خطوات تصميمي الانظمة المدمجة)
Elaf A.Saeed
 
Lecture 4(output devices- اجهزة الخراج)
Elaf A.Saeed
 
Lecture 3(input devices- اجهزة الادخال)
Elaf A.Saeed
 
Lecture 2 (microcontroller- المتحكم الدقيق)
Elaf A.Saeed
 
Lecture 1(مقدمة عن الانظمة المدمجة )
Elaf A.Saeed
 
Ch8 pid controller
Elaf A.Saeed
 
Ad

Recently uploaded (20)

PPTX
grade 5 lesson matatag ENGLISH 5_Q1_PPT_WEEK4.pptx
SireQuinn
 
PPTX
A PPT on Alfred Lord Tennyson's Ulysses.
Beena E S
 
PDF
The-Ever-Evolving-World-of-Science (1).pdf/7TH CLASS CURIOSITY /1ST CHAPTER/B...
Sandeep Swamy
 
PPTX
How to Set Up Tags in Odoo 18 - Odoo Slides
Celine George
 
PPTX
SPINA BIFIDA: NURSING MANAGEMENT .pptx
PRADEEP ABOTHU
 
PPTX
PATIENT ASSIGNMENTS AND NURSING CARE RESPONSIBILITIES.pptx
PRADEEP ABOTHU
 
PDF
Dimensions of Societal Planning in Commonism
StefanMz
 
PDF
0725.WHITEPAPER-UNIQUEWAYSOFPROTOTYPINGANDUXNOW.pdf
Thomas GIRARD, MA, CDP
 
PPTX
STAFF DEVELOPMENT AND WELFARE: MANAGEMENT
PRADEEP ABOTHU
 
PPTX
How to Convert an Opportunity into a Quotation in Odoo 18 CRM
Celine George
 
PDF
LAW OF CONTRACT (5 YEAR LLB & UNITARY LLB )- MODULE - 1.& 2 - LEARN THROUGH P...
APARNA T SHAIL KUMAR
 
PDF
Knee Extensor Mechanism Injuries - Orthopedic Radiologic Imaging
Sean M. Fox
 
PDF
ARAL-Orientation_Morning-Session_Day-11.pdf
JoelVilloso1
 
PPTX
Cultivation practice of Litchi in Nepal.pptx
UmeshTimilsina1
 
PDF
Women's Health: Essential Tips for Every Stage.pdf
Iftikhar Ahmed
 
PPTX
Growth and development and milestones, factors
BHUVANESHWARI BADIGER
 
PDF
Isharyanti-2025-Cross Language Communication in Indonesian Language
Neny Isharyanti
 
PPTX
Stereochemistry-Optical Isomerism in organic compoundsptx
Tarannum Nadaf-Mansuri
 
PDF
Generative AI: it's STILL not a robot (CIJ Summer 2025)
Paul Bradshaw
 
PDF
Stokey: A Jewish Village by Rachel Kolsky
History of Stoke Newington
 
grade 5 lesson matatag ENGLISH 5_Q1_PPT_WEEK4.pptx
SireQuinn
 
A PPT on Alfred Lord Tennyson's Ulysses.
Beena E S
 
The-Ever-Evolving-World-of-Science (1).pdf/7TH CLASS CURIOSITY /1ST CHAPTER/B...
Sandeep Swamy
 
How to Set Up Tags in Odoo 18 - Odoo Slides
Celine George
 
SPINA BIFIDA: NURSING MANAGEMENT .pptx
PRADEEP ABOTHU
 
PATIENT ASSIGNMENTS AND NURSING CARE RESPONSIBILITIES.pptx
PRADEEP ABOTHU
 
Dimensions of Societal Planning in Commonism
StefanMz
 
0725.WHITEPAPER-UNIQUEWAYSOFPROTOTYPINGANDUXNOW.pdf
Thomas GIRARD, MA, CDP
 
STAFF DEVELOPMENT AND WELFARE: MANAGEMENT
PRADEEP ABOTHU
 
How to Convert an Opportunity into a Quotation in Odoo 18 CRM
Celine George
 
LAW OF CONTRACT (5 YEAR LLB & UNITARY LLB )- MODULE - 1.& 2 - LEARN THROUGH P...
APARNA T SHAIL KUMAR
 
Knee Extensor Mechanism Injuries - Orthopedic Radiologic Imaging
Sean M. Fox
 
ARAL-Orientation_Morning-Session_Day-11.pdf
JoelVilloso1
 
Cultivation practice of Litchi in Nepal.pptx
UmeshTimilsina1
 
Women's Health: Essential Tips for Every Stage.pdf
Iftikhar Ahmed
 
Growth and development and milestones, factors
BHUVANESHWARI BADIGER
 
Isharyanti-2025-Cross Language Communication in Indonesian Language
Neny Isharyanti
 
Stereochemistry-Optical Isomerism in organic compoundsptx
Tarannum Nadaf-Mansuri
 
Generative AI: it's STILL not a robot (CIJ Summer 2025)
Paul Bradshaw
 
Stokey: A Jewish Village by Rachel Kolsky
History of Stoke Newington
 

IOT NodeMCU - NodeMCU Connection to Internet

  • 1. Internet ofThings NodeMCU Connection to Internet Eng. Elaf A.Saeed
  • 2. The Contents • Enabling technology for IOT. • Connect ESP8266 to a local WI-FI Network (cont.)
  • 3. Enabling technology for iot (cont.) • Light-Fidelity (Li-Fi)
  • 4. Enabling technology for iot • Ethernet
  • 5. Enabling technology for iot (cont.) • Wi-Fi
  • 6. Connect ESP8266 to a local WI-FI Network
  • 7. Connect ESP8266 to a local WI-FI Network (cont.) • The ESP8266 module can either be a web server (Access Point) or Wi-Fi (Station). • when used as a web server, the ESP8266 hosts a web application on a web page that connected clients can access. • As a Wi-Fi client, the ESP8266 connects to local or online servers and logs data to them or reads from them.
  • 8. Connect ESP8266 to a local WI-FI Network (cont.)
  • 9. Connect ESP8266 to a local WI-FI Network (cont.) • The function the is used in code: 1. WiFi.begin() ➔ Initializes the Wi-Fi library's network settings and provides the current status. Syntax ✓ WiFi.begin(); ✓ WiFi.begin(ssid); ✓ WiFi.begin(ssid, pass); ❑Parameters: • ssid: the SSID (Service Set Identifier) is the name of the WiFi network you want to connect to. • pass: WPA encrypted networks use a password in the form of a string for security.
  • 10. Connect ESP8266 to a local WI-FI Network (cont.) • WiFi.status() ➔ Return the connection status. Syntax • WiFi.status(); Parameters • none Returns • WL_NO_SSID_AVAIL: assigned when no SSID are available; • WL_CONNECTED: assigned when connected to a Wi-Fi network; • WL_CONNECT_FAILED: assigned when the connection fails for all the attempts;
  • 11. Connect ESP8266 to a local WI-FI Network (cont.) • This program will connect your ESP to a WIFI network and print its IP address on your Arduino serial monitor. • You need to modify your ssid and password • const char* ssid = "YOUR WIFI NETWORK NAME"; • const char* password = "YOUR WIFI PASSWARD"; • make sure that the Baud rate in the program and your serial monitor window are the same
  • 12. Connect ESP8266 to a local WI-FI Network (cont.)
  • 13. Connect ESP8266 to a local WI-FI Network (cont.)