Send multiple values to NodeMCU without Internet or WIFI.

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello friends welcome to embedded gate in this video i am going to show you how to operate node mcu in access point mode at the end of this video you will see i am sending 8 values from mobile app to esp8266 and these eight values i will show you in serial terminal we know that there are two modes in node mcu first one is station mode and second one is access point mode if you don't know what is the station mode and access point mode simply we can describe as in station mode nodemcu work as a wi-fi and in access point mode nodemcu work as a hotspot let's start with the project i have already write a code and make a app in mit app inventor i will explain all this thing one by one first i am going to start with the esp8266 code open arduino ide this is this is our code okay i will explain this code line by line first one is header file this is header file for esp8266 this is wi-fi password and this is wi-fi id when you upload your code your esp8266 well as a hotspot you can easily connect to the network using this ssid and password i have declared eight variables here of float type you will see there are zero value in each variable i am going to receive eight values from mobile app and put those 8 values in these 8 variables next one is server our server port is 80 next 8 to 10 10 lines i have defined here html code this html code will accept 8 values and store these 8 values in these 8 variables next variables are used to accepting strings serially in void setup i have declared one serial port this line is used to operate node mcu in access point mode we have to pass password and ssid now next is void loop i have declared variables to accept the input from the server if the server data is available then i am going to read available string and put those string in this variable this variable is string type we already declared this string variable at top okay next i have printing this string serially and next code is to take values from the string and assign to the variables same variables i am going to shown on serial serially this is the html code i am going to run continuously you can download this code from the video description once the code is ready attach your node mcu to the com port from tools select your nodemcu board i have already selected and then select com port and upload the code code is uploaded now next part is to create mobile app to create a mobile app open your google browser now go to the mit app inventor i have already created create app here what i have done i have take eight values first is flow range then unit selection scale factor linearization zero scaling communication reset and factory set to create this field what i have done go to the layout i will show you the one field how i create this field you have to do copy paste for the rest of the seventh field take a horizontal layout place here okay select horizontal layout and select width to fill parent and press ok next go to the user interface select label place label here and select text box and press text box next to the label now select label one more time and change the width to fill parent and press ok now give any name to your label suppose i will change this level text to embedded this message will appear here now select text box and change width to fill parent press okay and remove this end part from here this is the one field you have to create like this eight field one after one i am going to delete this field from here when you place all the eight fields after that you have to place one switch here okay you can press switch using this button parameter you can simply add button like this and you can simply change size from here and make this fill parent you will see button will appear here okay i am going to remove this button button also after creating this page now go to the connectivity and select web and place here have already selected web one here now our app is ready we have to make block block diagrams for making the block diagrams select blocks you will see i have already created the connection block diagram to create connection block diagram first select the button you can select button from here now we have to set web1.url this block you will find in web this is the block set web1 dot url now we have to type this string from text select this block this is the that join box now you will see there are many string i have attached here okay to expand this string box click here on this setting symbol and you can attach as many as string you want like this okay now next go to the text take a string okay now in this string we have to write this http colon double slash 192.168.4.1 slash this is the home address of esp8266 next go to the text box one and select this text box one dot text parameter okay after that one more time take a string empty string and add comma next one more time copy duplicate this text text box one dot text block and place one after one change here to text box too you have to make changes like this you have to make same arrangement what i have done here at the end of this block we have to call wave1.gate you will get this block from web one this is the block and your app is ready i will edit this block you have to make same log as for the mine now next i am going to download this app to download this app go to the build select android apk i am going to download dot apk file and save this file on desktop you will see the apk file here now move this file from your desktop to your mobile and install this app in your mobile after installing the app open serial terminal and now now save the data from mobile app and you will see the whole data years let's see the output first move your dot apk file from your laptop to mobile then install the app you will see the app in mobile next connect your nodemcu to power supply and open wi-fi you will see ss flow there now enter the password password is one two three four five six seven eight nine and connect after connecting to wi-fi open app now i am going to assign any value to each variable suppose i am going to assign flow range 1 unit selection 2 scale factor 3 generalization 4 0 scaling 5 communication 6 reset 7 factory reset 8 and press enter switch after pressing the enter you are going to say same data on serial terminal this is the output now suppose i am changing unit selection value from 2 to 23 and press enter you will see the updated result on serial terminal thank you for watching this video if you like this video please like share and subscribe
Info
Channel: Embedded Gate
Views: 5,594
Rating: undefined out of 5
Keywords: EmbeddedGate, EG, #EmbeddedGate, NodeMCU as a Access Point, Send multiple values to NodeMCU without Internet or WIFI., bluetooth mode in nodemcu, Access point mode
Id: ICdAEmD-qYI
Channel Id: undefined
Length: 13min 18sec (798 seconds)
Published: Tue Feb 01 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.