How to configure ESP8266 module as an Access point or station mode

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
uh this video about uh wi-fi mode of esp8266 module so basically we can configure this module in uh three modes uh first one is station mode station mode is you can configure your esp module and you can connect it to your home wi-fi over any access point and you can easily access the esp module via your network you can easily put some sensors or connect some sensors to a esp module and you can monitor it uh using your home wi-fi network and access it your wi-fi network so this kind of configuration called station uh mode configuration the second one is a soft access point it's mean you can configure your esp module as access point and you can connect it uh your mobile phone or your laptop using username and password and you can easily monitor some sensor values and you can do some uh control some iot devices uh using your in end user device such as your mobile phone and or your laptop so this kind of configuration called uh access point configuration uh let's rewrite a program for above configuration so hope you guys can see my screen uh so first i use uh esp8266 wi-fi library and this is my loop function and this is my uh setup function actually the setup function run once the microcontroller get powered but it execute only one time and the loop will be execute continuously until the power of uh right so then first i need to uh explain this line the this line is serial begin uh it's mean we need to monitor some serial prints so we need to initiate our serial monitor so we use serial begin to start our serial communication right this is why uh my first method uh i name it as access point uh this method do uh what is uh this method uh used for configure esp module as a wi-fi access point so this line is show the wi-fi mode is wi-fi ap its mean access point then you can define uh your ip address range for your internal network uh that access point uh publish and this update mask uh and uh and this line you can see wi-fi dot soft ap it means you can define uh a name for access point and the password for your access point and the wi-fi begin means you can up uh this access point uh once once the power come up your esp module so i will uncomment this line all right then everything ready for uh check our access point uh programming uh whether it's hit work or not so i connect my esp module to usb and you need to select your esp module and you need to select your com port also then compile your program and then compile then it successfully compiled so you can upload it your nodemc module actually it's uploading right uh it's successfully uploaded uh uh then press reset button for reset your mic controller and you can see here your wi-fi access point list uh there is a new access point called test ap uh actually uh it is a access point we define uh and you can connect it using uh this user name and password right actually it's all about how to configure your esp module last access point uh now then we move to next part how to configure your usb module uh as a station uh it's mean a usb module how to connect usb module to your home network or any user access point so i comment this line and actually this is the uh line of code i use for connect my esp module to wi-fi network so actually you can see here wi-fi begin so you need to enter your uh hospit or user home wi-fi network username and the password and i define a while loop for wi-fi status you can get uh whether it's connect or not so once it's successfully connected to your home wi-fi it will print uh your allocated ip address from your home network it means your home network home wi-fi or any kind of access point assign you uh assigned to uh esp module to dns dn dhcp ip so uh this line will fit your dhcp ib and it stayed as connected right so actual this line of code i used to connect to a wi-fi network so i uncomment this line and recompile and upload right right you can see here we it successfully connected to your home network it will print the ip address uh assigned from your home network uh in your esp now you can access your esp module via your home network or any access point network all right you can configure your usb module as access point and as a station mode it means you can connect your wi-fi or you can publish this as accent point uh and you can use the both configuration uh access point plus connect to the network and my last example is uh scan wi-fi network so this is my codeblock for scan wi-fi networks this code will scan your wi-fi networks and it will print the wi-fi ssids so i will run the code right you can see here uh it will bring the wi-fi access point uh in the range and it will scan the wi-fi wi-fi modules and click print here uh hope you guys could clear idea about how to configure your esp module as access point or connect to a esp modular network or you use the both configuration and connect your access point and connect your wi-fi so basically we are discussing about uh nodemcu wi-fi module modes so we discuss the station modes uh and we configure usb and connect to your home access home internal network and the we can figure out the access point uh and we publish a new access point we go test ap and we consume it using our induced devices and we configure the esp module as a station as uh station plus so soft access point uh and thank you for watching my videos
Info
Channel: Creative Mind
Views: 7,319
Rating: undefined out of 5
Keywords: esp8266, esp32, access point, station, configuration, arduino, wifi, WiFi modes, Station, Soft Access Point, Station + Soft Access Point
Id: 4nwl4FBBUAw
Channel Id: undefined
Length: 10min 12sec (612 seconds)
Published: Mon Jun 15 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.