ESP8266 To ESP8266 Data Transfer Using Web Client/Server | Arduino IDE (Mac OSX and Windows)

  Переглядів 97,973

datasith

datasith

День тому

• The first 500 people to sign up via my link will get two FREE months of Skillshare Premium: skl.sh/acrobotic
==========
• Your support helps me post videos more frequently:
/ acrobotic
www.paypal.me/acrobotic
buymeacoff.ee/acrobotic
BTC: 1ZpLvgETofMuzCaKoq5XJZKSwe5UNkwLM
==========
• Find me on:
/ acrobotic
/ acrobotic
/ acrobotic
==========
• My shops:
acrobotic.com/shop
amazon.com/shops/acrobotic
==========
• Description:
Often times we need to report data collected from sensors to a 'central' location for long-term storage, analysis, and/or visualization. Typically, we use cloud services such as Thingspeak, myDevices Cayenne, or Ubidots for this purpose. However, it is possible to dedicate an ESP8266 to carry out these tasks.
In this video, we configure an ESP8266 as a WiFi Access Point so that client devices can connect to it. In addition, we set up a web server with a couple of access routes, so that the clients can send data to it using URL parameters ( • ESP8266 Control NeoPix... ). This is the simplest way to collect data from multiple devices and send them to a 'central' location even in the absence of an internet connection!
We also configure a client device to use the low-power (deep sleep) mode between data measurements, and wire it so that the ESP8266 resets itself to perform the measurements continuously!
==========
• Project parts:
ACROBOTIC Development Board for ESP8266:
acrobotic.com/products/acr-00018
amzn.to/2dAZ1mW (affiliate)
ACROBOTIC WeMos D1 Mini V2 Development Board for ESP8266:
acrobotic.com/products/acr-00017
amzn.to/2D3KiA6 (affiliate)
==========
• Project code:
Firmware for the Arduino IDE:
github.com/acrobotic/Ai_Tips_...
==========
• Tutorials:
Detailed guide for getting started with the ESP8266 Development Board:
learn.acrobotic.com/tutorials/...
• ESP8266 Web Server Ste...
Detailed guide for getting started with the WeMos ESP8266 Development Board:
learn.acrobotic.com/tutorials...
• Getting Started | ESP8...
==========
• Sponsor:
This video was sponsored by Skillshare.
==========
• Music:
Epidemic Sound (epidemicsound.com). Standard UKposts License.
==========
#ESP8266 #Arduino #Tutorial

КОМЕНТАРІ: 170
@glauciogv5225
@glauciogv5225 7 місяців тому
Sehr gut !
@bgable7707
@bgable7707 3 роки тому
Thank you, I like the pace of your video's. They move at a good speed, and you are VERY inclusive with your explanations of the steps you take which makes yours examples easy to reproduce!!!
@datasith
@datasith 3 роки тому
Hey, thanks so much for the kind comment! You summarize what I attempt to do, and I'm not sure I'm always successful, but I certainly try. I'm glad that sometimes it actually works for people!
@abdullahjhatial2614
@abdullahjhatial2614 7 місяців тому
how we can send sheet type data ? or having two columns and 5 rows?
@hutlazzz
@hutlazzz 4 роки тому
Incredible,thanks alot !
@datasith
@datasith 4 роки тому
No problem! Thanks for watching!
@bobpaydar3210
@bobpaydar3210 3 роки тому
Wonderful tutorial ❤👍
@RanjeetSingh-jx2qx
@RanjeetSingh-jx2qx 2 роки тому
Very excellent explained ❤️👍🏻
@paulgibby6932
@paulgibby6932 5 років тому
Thanks! That was cool. I like the music too. I am not clear on "who" initiates getting the temperature value. Wouldn't it make sense to have the server poll for a new value only when it receives an "update" request?
@datasith
@datasith 5 років тому
Hey, Paul. Thanks, I'm glad you liked it. In this case, I set it up so that the measurements occur periodically. The interval it's determined by the amount of time for which the client goes to sleep. In the example, every two seconds, but could be made longer depending on the application. Your polling proposal is great, but it'd be slightly harder to coordinate with the waking up of the client.
@mohhad491
@mohhad491 3 роки тому
Really useful . thanks
@makerun6927
@makerun6927 4 роки тому
good presentation in wonderful manner
@datasith
@datasith 4 роки тому
Thanks so much for the kind words!
@6LilSaint5
@6LilSaint5 4 роки тому
you helped me so much, thank you!!!!!!!!!
@datasith
@datasith 4 роки тому
I'm glad, thanks for letting me know!
@mcomulu
@mcomulu 3 роки тому
Hey thank you for the usefull tutorial at first. Do you have any expirience with fixed ip at esp32?
@javierdestefanis2750
@javierdestefanis2750 4 роки тому
Thank you for this video! I have a question, can be the same arduino the server and the client? I meant, if you just need to push temperature changes to a local server, just create a server and publish the temperature there, right?
@datasith
@datasith 4 роки тому
I'm glad you liked it! Yes, you can run the server and the client on the same board. HTH!
@gauravmg
@gauravmg 2 роки тому
Thank you for posting this!. Can I connect multiple clients (sensors) to the same server?
@MrBobWareham
@MrBobWareham 3 роки тому
I am new to this so thank you for your video but can you make a video on a simple setup like front door PIR sensor sender with three receivers showing detection of movement with output to a led indicator as I think this would be easier to follow with a better understanding of the communication thanks and love the channel keep it up Bob in the UK
@datasith
@datasith 3 роки тому
Heya, Bob. Thanks for checking out the video. You're right, this example is somewhat abstract. I wanted to keep it out of any application so people could modify it to their needs. That's not to say that I couldn't make other ones where I do apply it to certain applications for illustrative purposes. I like your idea, and hope to get it into video soon. Thanks again!
@kevinroach9380
@kevinroach9380 5 років тому
Great video and exactly what I am looking for. Only problem is 2 things, wasn't able to open github link & was not able to sign up on the learning site. Signed up but doesn't recognize me when I try to log in.
@datasith
@datasith 5 років тому
Thanks so much, I'm glad you liked it. Sorry for that, I had a typo. I've now fixed it in the description-I'll save you a click: github.com/acrobotic/Ai_Tips_ESP8266/tree/master/simple_server_client What learning site? learn.acrobotic.com?
@alexanderruiz4567
@alexanderruiz4567 4 роки тому
Hi, friend, excellent tutorial, however I got some questions about the ip adresses you define, how do you define them?, I mean, is it a random group of ip addresses the ones we can use or they have to be chosen according to some factors?
@datasith
@datasith 4 роки тому
Thank you, I'm glad you liked it! The IP addresses that I defined are random-ish. I'm using the group of addresses typically used for local networks (192.168.X.X). I could use any IP possible, for example 8.8.8.8 (Google's servers) but the clients would get confused between the 'real IP' and the local one so you'd need to do additional steps. HTH!
@ingusestons6480
@ingusestons6480 4 роки тому
Like from Latvia!
@datasith
@datasith 4 роки тому
Hah, that's awesome! Hope you're doing well in Latvia!
@sebastianbarrio6448
@sebastianbarrio6448 5 років тому
I’ve been watching your videos recently, and I have a question, can I use an esp8266 connected to an arduino instead of the development board? And if so, how should it be connected?
@datasith
@datasith 5 років тому
Yes, I will be posting a video about how to do this in a couple of days. Thanks for watching!
@juliocesargonzalezdiaz8385
@juliocesargonzalezdiaz8385 3 роки тому
Gran trabajo , muchas gracias esta muy util, tengo una pregunta como pasar del client al server variables como usuario y password via post de forma segura o encriptada? esto es posible
@tomgaither2460
@tomgaither2460 5 років тому
Thanks for the excellent introduction to the ESP8266. I am having a bit of a problem setting the server IP address, using the command "Serial.println (WiFi.LocalIP() );" , results in "IP Address: IP unset)" being printed on the serial monitor. Secondly the name listed on the computers network page is "ESP-24F8D6" instead of the "ESP8266-SSID" used within the code. Everything in the code looks identical to that illustrated in your video. Everything else appears to work as I can see when the second ESP8266 logs in and out as a client. Just unable to set the Servers IP Address.
@devtn5543
@devtn5543 4 роки тому
how to fix IP unset . Help me ....
@datasith
@datasith 4 роки тому
Hey, Tom. Maybe your own WiFi network is running on subnet 11 and causing problems? Try switching the 11 to something else (between 1 and 250) on the following lines: IPAddress ip(192,168,11,4); IPAddress gateway(192,168,11,1); HTH!
@the1spyderryder
@the1spyderryder 3 роки тому
Can't the ESP8266 be configured for bidirectional communication to send and receive data? to receive commands (data) and transmit data? Who doesnt anyone use the 8266 in native mode as in using the AT command set to set it up?
@paulelliott2459
@paulelliott2459 2 роки тому
Can this be modified to go through a router... My range is too short for esp to esp direct... I cannot find an example anywhere for passing data from esp to esp over my home router.... Thank you Paul
@maharshigohil6886
@maharshigohil6886 4 роки тому
Excellent Video. Sir, I was wondering if it is possible to communicate between two esp32 simultaneously? Like Full duplex communication?
@datasith
@datasith 4 роки тому
Yes, you can use websockets on both the ESP32 and ESP8266.
@soumikmukherjee9468
@soumikmukherjee9468 5 років тому
Thanks for the video. Really appreciate your efforts. Just one question from my side. How could we automatically refresh browser page every time the sensor data is send without manually clicking the refresh button?
@datasith
@datasith 5 років тому
Thanks, I'm glad you like it! You can serve a webpage that contains JavaScript so that it refreshes automatically-I've done a few videos on the topic. Somewhat easier would be to use websockets as shown in this video: ukposts.info/have/v-deo/in-WiGOesI-Lx6s.html
@tin2001
@tin2001 5 років тому
You can also send a HTTP refresh header, or use the meta http-equiv refresh tag in the HTML. Works in most browsers.
@luisbangueses
@luisbangueses Рік тому
I like your Tshirt!
@ahmedragab5054
@ahmedragab5054 3 роки тому
can you tell me how to make Nodemcu run code(boot) from SPI flash?? in detail, I make Arduino code, converted it to a binary file, stored it to SPI flash and I want to run this code. I pressed flash and reset pins and release reset but doesn`t work.
@prasunbiswas8025
@prasunbiswas8025 3 роки тому
thank you for this nice explanation! but again after deep sleep mode it is not updating! what can be the reason?
@0raibi
@0raibi 3 роки тому
How good is this method for applications where near real-time response or feedback is a must?
@matthewfelgate
@matthewfelgate 4 роки тому
Thanks. How would I read the value from the Server from the 2nd ESP?
@datasith
@datasith 4 роки тому
Heya, Matthew. You're welcome. You can make include data as part of a request in a web client. So that'd be one way. You can also have a server and client running in one chip. Lastly, you might want to check out a similar video I just published doing data transmission with websockets: ukposts.info/have/v-deo/rHeDabCohW9-k3k.html HTH!
@gareven
@gareven 4 роки тому
Very useful sharing (y)
@datasith
@datasith 4 роки тому
thank you!
@samsulbahridapurwebsite
@samsulbahridapurwebsite Рік тому
can this applicated to RFID sensor in client to play dfplayer at connected in esp8266 server to play mp3 file?
@mrinmoydas3193
@mrinmoydas3193 3 роки тому
Sir, Can we do this with esp8266 01 module. For both server & client.
@laura.gautschi7602
@laura.gautschi7602 3 роки тому
Hello i have a problem. I cant enter the IP Adress in my Browser.... nothing happens. Where do i have to type in the IP to get this 0.0 in the beginning? Thank you
@nawrasezaldeenalakabani3485
@nawrasezaldeenalakabani3485 4 роки тому
Thank you very much for your video I want to ask you why the value of the sensor is not sent from the client to the server, note that the sensor displays the value on the Serial Monitor correctly knowing that I have applied all your instructions by letter
@datasith
@datasith 4 роки тому
Hmm, that's strange. Can you try it with the code I've linked in the description of the video?
@Pete_p
@Pete_p 3 роки тому
Hi there, nice video but i cant update the webserver. Any ideas?
@PlayingCode
@PlayingCode 3 роки тому
I want to connect both of the esp with my home wifi network so that they have a long range.. can you please tell me what code should I change
@abdfathan4654
@abdfathan4654 4 роки тому
sir I get an error on my "ip unset" even though I have entered my SSID pass and IP address correctly and my internet is connected , can u tell me whats wrong with this
@lehuy4900
@lehuy4900 4 роки тому
I have the same error same yours. Did you find a fix?
@datasith
@datasith 4 роки тому
Re-flash your code into the ESP8266. If the error persists you could do something like: if( !WiFi.localIP().isSet() || !WiFi.isConnected() ){ Serial.println( F("Handeling WiFi Reconnect Manually.") ); WiFi.reconnect(); } I've never seen this on any of my projects, so I had to read about it online and it doesn't seem to have a better solution. Sorry about that.
@joapfel2243
@joapfel2243 4 роки тому
Try to print WiFi.softAPIP() instead of WiFi.localIP()
@teogg_
@teogg_ 4 роки тому
thank you @@joapfel2243, I solved it with your comment
@codingspace1143
@codingspace1143 4 роки тому
Nice video many thanks brother :)...But I have question what if I have more than one esp8266 as client can work with more than one client to speak with one as a server?
@datasith
@datasith 4 роки тому
Yup, more than one client can speak to a server. You'll need to do a bit of fool-proofing if you want to be sure that the server receives every message (i.e., what happens when there's concurrency?). HTH!
@muhammadluthfiesaryono8774
@muhammadluthfiesaryono8774 Рік тому
sir, i want to asking some questions. How do we what ip, gateway and subnet in client and server board? sorry for my bad english
@stiaf1
@stiaf1 4 роки тому
Hello Makerbro, I have two ESP8266 wifi modules (programmed through FTDI) that are connected to controller boards. But I dont have a NodeMCU board. Does the "server.ino" sketch still work then?
@datasith
@datasith 4 роки тому
yes boss, this works with any two boards that have an ESP8266 on them or the chips themselves. with minor modifications, it will work with two ESP32 as well!
@andresvega8955
@andresvega8955 4 роки тому
Excellent video! I have a question: If I only need to send a variable like distance between two esp8266 through serial port (not http), how can I do that? Greetings from Colombia!
@datasith
@datasith 4 роки тому
Hey, Andres. I'm glad you liked the video! Here's an example for sending data through serial: ukposts.info/have/v-deo/bl2DjKd9ipWG1Yk.html - it should work between two ESP8266 boards as well. Greetings from... Pasadena! - I miss South America so much! :)
@kevinroach9380
@kevinroach9380 5 років тому
What is the typical Wifi range for this setup? Also if I wanted to add a sd card to store weather reading does the server need to be refreshed to save the values every 1/2 an hour etc. to the sd card?
@tin2001
@tin2001 5 років тому
Range is highly dependent on the 2.4GHz congestion in your local area. For storing weather data, you'd want to have either the storage node scheduled to poll the sensor nodes, or the sensor nodes scheduled to push their data back (and then have the storage node save the data to the SD card in its handler for the web request).
@kevinroach9380
@kevinroach9380 5 років тому
@@tin2001 what is the best communications between two esp8266's in client and server operation. As far as low power and best range?
@datasith
@datasith 4 роки тому
Have you considered LORA?
@ferdi6548
@ferdi6548 2 роки тому
Thank u soo much and also can we actually still send http request through internet and have this too
@mohammadrezazavvarsabegh6663
@mohammadrezazavvarsabegh6663 3 роки тому
Thank you. How can I send and receive data between 2 ESP modules in different locations directly? (for example, one in the UK another one in AUS)
@shathyaduobiene4626
@shathyaduobiene4626 3 роки тому
I am looking solution for the same. Have you find the solution?
@mohammadrezazavvarsabegh6663
@mohammadrezazavvarsabegh6663 3 роки тому
@@shathyaduobiene4626 Hi Yes, I have found this tutorial. www.instructables.com/id/Control-ESP8266-Over-the-Internet-from-Anywhere/
@subashgps2277
@subashgps2277 4 роки тому
Sir.. Is it possible to send sensor data from one esp8266 to another esp8266 without using the web page... Example like the sensor value of one esp8266 will be send to another esp8266 and it can be view through serial monitor of the receiving esp8266.. Can you please explain sir??
@datasith
@datasith 4 роки тому
yes you can. the webpage isn't needed, it's just a way to receive/display the data. but, using the ESP8266 WebClient class you can receive the data over HTTP/websockets and then display it in the serial monitor. thanks for watching!
@karacaveli4811
@karacaveli4811 4 роки тому
Hello sir I would ask you something I would do something like this but not exactly the same I want to connect a nodemcu on my router which is going to send a website with a local ip ´´which I plan to make public’’ and when I’m going to click a button on the website that is sent by the FIRST nodemcu the SECOND nodemcu wil get a data and do a task like turning a led on hope you will answer :)
@datasith
@datasith 4 роки тому
Hey, awesome project. You can do it in different ways, the simplest in my opinion is to serve the website from the board that's running the server code. When the user clicks the button on that website, then it can make that available for (or send it to) the client board. hth!
@karacaveli4811
@karacaveli4811 4 роки тому
Thank you I will try it
@HaiTHaMKoBeIssI
@HaiTHaMKoBeIssI 5 років тому
what is the font name you are using in IDE, super easy explanation and easy to understand, thanks for the video..
@datasith
@datasith 5 років тому
Hey, thanks for the kind comment, I'm glad you found it useful. It's the default font, but I went onto the IDE preferences menu and increased the size to 16pt.
@dbryars
@dbryars 5 років тому
Nice video. Really like you're presentation style. Only problem was GitHub link returned 404 error when I tried it.
@datasith
@datasith 5 років тому
Thanks so much, I'm glad you liked it. Sorry for that, I had a typo. I've now fixed it in the description-I'll save you a click: github.com/acrobotic/Ai_Tips_ESP8266/tree/master/simple_server_client
@hg3823
@hg3823 4 роки тому
Thanks, I would like to send (serial) data which is generated automatically sentences from one device to the pc or mobil devices (only receive) by wifi instead of serial cable. I tired with esp 8266 connected to the out of device then connected to esp8266 by wifi with my tablet but not received anything.How can I do it? Any advice, which wifi card use for that? I have no experiance.
@datasith
@datasith 4 роки тому
You can run a web server on the PC (harder to do on mobile) to receive the data. The ESP8266 can then send the data to the IP address of the PC.
@hta1543
@hta1543 3 роки тому
Hi, I configured the esp8266 wifi module as an access point, then docklight scripting V2.2 connected esp866 with 192.168.4.1:1025 port and send data periodically 0.5 second to server. But server read data and it breaks off in a few seconds. How can I prevent the server from going down.
@datasith
@datasith 3 роки тому
usually when thinks "break off" is due to the way you're communicating the data. if you're "polling" continuously in the loop function you can disrupt other functionality including the wi-fi connectivity. it's better to either use asynchronous communication or a second core if you're using the ESP32, for example.
@kevinroach9380
@kevinroach9380 5 років тому
Anybody else have any trouble getting this to work? Everything was going good and tested good on the server untill I added the client. I don;'t get any readable info on the serail monitor for the Wemos. The baurate is set correct and I get just garbage and no temp readings. Tried some simple code for the TMP36 and reads fine on the serial monitor. Not sure what is going on with the client.
@datasith
@datasith 5 років тому
Can you comment out the code below the line: "Serial.print("IP Address (AP): "); Serial.println(WiFi.localIP());" That way you can know what the problem is. Double-check your WiFi credentials as well. Thanks for watching my vids!
@kurniawanastari660
@kurniawanastari660 Рік тому
not update temperature with DHT11, why mr? help me pls
@shekhar2345678
@shekhar2345678 3 роки тому
code initially worked on my NodeMCU but stopped working after some time. when i restart module it shows on my serial monitor(without quotes) "IP Address: (IP unset)". stuck with this situation. please help
@datasith
@datasith 3 роки тому
are you using a static ip?
@tonystark5609
@tonystark5609 3 роки тому
How long the esp8266 send the data to other esp8266 wirelessly?
@DustinjBailey
@DustinjBailey 4 роки тому
Can you connect more than 2 boards together like this? Like a master and multiple slave situation?
@datasith
@datasith 4 роки тому
Yup. You'd need to get a little fancier with the code to deal with concurrent messages and other problems that arise as you increase the number of clients. However, for the most part, the same setup/code works as is.
@elaminenour3548
@elaminenour3548 4 роки тому
thank you so much how can send two value or more from cline to AP ?? what we should to add in code ??
@datasith
@datasith 4 роки тому
The client.print() function allows you to send data to any server. Use the parameters of the AP in this function to send data to it. HTH!
@elaminenour3548
@elaminenour3548 4 роки тому
@@datasith thank you so much - but from where can i get syntax to programing esp8266 . - there is any web site of esp8266 syntax ? :)
@msmadaram
@msmadaram 4 роки тому
have you ever work on android broker such as moquette or something like that ? when we have one esp8266 and we want to connet to it with 20 mobile phone what happen? each esp8266 or esp 12e can just have 8 TCP/ UDP connection what's your idea if we have 20 mobile phones and simultaneous they want to connect to one esp publisher? if we run an android broker on one of mobile phones and other connect to it we can connect to esp by one TCP/UDP from broker to esp, is it true? have you ever work on android broker such as moquette or something like that ? and we don't have any cloud server on the net!!!!!
@datasith
@datasith 4 роки тому
No I haven't worked with moquette or anything similar yet, sorry about that.
@iced_lemon869
@iced_lemon869 4 роки тому
hey, my server cannot connect to the internet and the IP is unset for me, i have followed you instructions till 5:11. Btw I am using a generic ESR8266 board. May anyone kindly tell me what the problem could possibly be?
@datasith
@datasith 4 роки тому
Can you try first a one of the simple WiFi examples in the Arduino IDE to make sure your ESP8266 board is working properly?
@GodzillazzZ
@GodzillazzZ 5 років тому
thx u
@datasith
@datasith 5 років тому
Thanks for watching.
@alexanderruiz4567
@alexanderruiz4567 4 роки тому
Hello my friend good tutorial, I am writing you from Colombia and I was wondering if you have a code for doing this same task you show in the video but detecting the power that emits the server through a wifi network and locating the position of one of the clients with the power. Thanks so much and I will be so thankful if you help me.
@datasith
@datasith 4 роки тому
sorry, i don't have the code you are asking for. best of luck with your project!
@JaviUTube
@JaviUTube 3 роки тому
I’m getting a “IP Address: (IP unset)” message in the serial monitor. Cant find why on the code. Any ideas?
@cmnd9796
@cmnd9796 3 роки тому
Hi, I also recenly faced this issue. ESP won't connect on the first attemp. So I start my connection like this : WiFi.begin(ssid, password); while(WiFi.status() != WL_CONNECTED) { Serial.print("."); delay(500); }
@tonysicily2687
@tonysicily2687 4 роки тому
Is it possible to do this with 2 esp-01’s or does one always have to be a NodeMCU version?
@datasith
@datasith 4 роки тому
yes, this works with any two boards that have an ESP8266 on them. with minor modifications it will work with two ESP32 as well!
@tonysicily2687
@tonysicily2687 4 роки тому
ACROBOTIC Thank you very much for the confirmation. I have ordered the boards and am looking forward to doing this tutorial.
@MrDenisJoshua
@MrDenisJoshua 5 років тому
Thanks for the great video :-) It's possible to make this sort of web update in order to have something like web debug messages when I run NodeMcu with no USB connection please ? ...maybe can be a new video lesson idea :-) Thanks again
@CrazyGuyOfficial
@CrazyGuyOfficial 5 років тому
you want to see the debug messages on the webpage ?
@MrDenisJoshua
@MrDenisJoshua 5 років тому
@@CrazyGuyOfficial Yes... some sort of print on the webpage Every time that i push F5 i see some messages from the NodeMCU linked via WiFi Thanks a lot
@datasith
@datasith 5 років тому
Check out my video on Websockets, it's a better way to send messages between the page and the ESP8266 in real-time. Maybe that's what you're looking for? ukposts.info/have/v-deo/in-WiGOesI-Lx6s.html
@harshivthakkar5734
@harshivthakkar5734 2 роки тому
I'm getting an error of ip unset ? Sir can u help
@andrejcupac7359
@andrejcupac7359 4 роки тому
Amazing video once again. I need some help. Can you tell me how i could have one esp8266 in my home and another one anywhere around the world and talk to each other. Thank you.
@datasith
@datasith 4 роки тому
ukposts.info/have/v-deo/pKSWe4epkGuK1mg.html
@mkelectronicsofficial
@mkelectronicsofficial 4 роки тому
What should I do for accessing my esp8266 from anywhere in the world without third party like blynk or thingspeak..
@datasith
@datasith 4 роки тому
here's a video on how to do it: ukposts.info/have/v-deo/pKSWe4epkGuK1mg.html
@omarsmith9674
@omarsmith9674 4 роки тому
Sir if i have 2 client and 1 server how can i make the difference between the data sent from client 1 and client 2?
@datasith
@datasith 4 роки тому
You can do it in many ways, the easiest would be to include the client number as part of the data itself. HTH!
@omarsmith9674
@omarsmith9674 4 роки тому
@@datasith thank you sir it's really helped me. is this wifi client and server communication use 802.11 protocol?
@ariefunited07
@ariefunited07 4 роки тому
i try to add another client but it ended with the blank data comes to the server, is it possible i add another client with the same code? thanks before
@datasith
@datasith 4 роки тому
I haven't tried adding a second client, but it is possible. As a way to troubleshoot the problem, try each client separately (with the different code), and then try them both at the same time. HTH!
@ariefunited07
@ariefunited07 4 роки тому
What code do i have to change? Because i tried it to add another client and it works but they cant work simultaneously Thanks before
@datasith
@datasith 4 роки тому
@@ariefunited07 sorry, as you can imagine, with almost 16,000 subscribers I can't go into specifics. Best of luck to you!
@keremcetin4685
@keremcetin4685 3 роки тому
hi how can i send video files with esp to esp
@InTech-
@InTech- 4 роки тому
Hi Sir Can a Nodemcu work as both server and client at a time?
@datasith
@datasith 4 роки тому
Yes, you can combine both sketches into a single device. Thanks for watching!
@SRai123456
@SRai123456 4 роки тому
esptool.FatalError: Failed to connect to ESP8266: Invalid head of packet (0xF0) esptool.FatalError: Failed to connect to ESP8266: Invalid head of packet (0xF0) Hi, how do i solve this?? I using ESP8266-01 thank you for the help
@datasith
@datasith 4 роки тому
your computer isn't communicating with the esp-01. make sure that you can upload code to the esp-01 before trying the code in this video. thanks for watching!
@13cineva
@13cineva 3 роки тому
Very useful! Can I connect one of the ESPs to arduino Uno (server) to add more functionalities and after that to send the infos to the Client? Thank you!
@shivarajmoger8970
@shivarajmoger8970 3 роки тому
i have two esp32 can i do one of the esp32 act as client it send the real time data into other esp as server in https. can u share the code please
@fpolik
@fpolik 4 роки тому
Hello, Can I print on Server to serial monitor, client`s IP address? If it is possible, how? Thank you.
@datasith
@datasith 4 роки тому
Yup, in the client, get the IP address, put it in a string, and send it as data to the server. Replace the data that we are sending in this video with a string containing the IP address. HTH!
@gtechninja
@gtechninja 4 роки тому
sir !!! is it possible to do this between esp8266 and esp32 cam?
@datasith
@datasith 4 роки тому
I would think so, see my latest video for transmitting data between two ESP32 boards: ukposts.info/have/v-deo/rHeDabCohW9-k3k.html You can adapt the "Client" code to run on an ESP8266. HTH!
@RoustamManookian
@RoustamManookian 4 роки тому
Hi Can you please recond a tutorial on how to connect WIFI without hard coding credentials (SSID, Password) ?? I am using ESP32 board
@datasith
@datasith 4 роки тому
i'll add it to my list, thanks for watching!
@prajanjikukuh1568
@prajanjikukuh1568 5 років тому
can you explain me how to send back the data from server to client?
@datasith
@datasith 5 років тому
Copy the client code into the server, and viceversa.
@JenishJain6
@JenishJain6 4 роки тому
@@datasith that means if the client wants to receive some data from the server, the client also has to declare server.begin() and act as a server itself?
@datasith
@datasith 4 роки тому
@@JenishJain6 that's correct, Jenish. server.begin() will allow the client to listen to incoming requests! You could also get rid of the client side, and just use server.begin() for listening, and send the data using server.send(). I'm just mentioning options, your original approach should work well too!
@JenishJain6
@JenishJain6 4 роки тому
@@datasith also making one of the esp as a web server with this code, some of the times a problem occurs i.e. its IP is unset sometimes thus i am not able to connect to the webpage hosted on esp. I have tried using a static IP for it but thought the problem persists. is their any solution to it.
@williamsaxton8923
@williamsaxton8923 4 роки тому
it works for me but i do not need to enter the password in order to connect to it, am i missing something to impliment a password.
@datasith
@datasith 4 роки тому
Yeah, this is just sending requests over HTTP which the server is expecting. You'd need to add some form of authentication on top of that. HTH!
@raybright5805
@raybright5805 5 років тому
Excellent tutorial but is there a link to the code?
@datasith
@datasith 5 років тому
Yup, sorry I had a typo in the link included in the video description: github.com/acrobotic/Ai_Tips_ESP8266/tree/master/simple_server_client
@iamid4
@iamid4 4 роки тому
How to porting to ESP32?
@datasith
@datasith 4 роки тому
watch my last video
@iamid4
@iamid4 3 роки тому
@@datasith Thanks a lot. But I love this very example. I want to know how to just change ESP8266 to ESP32.
@SachinthaPasindu
@SachinthaPasindu 4 роки тому
Can we Encrypt transferring data ? Need encryption tutorial toooooo.
@datasith
@datasith 4 роки тому
You can use HTTPS as well, although the encryption isn't the most secure. If you pursue it, your life will be a lot easier using the ESP32 (better TLS support).
@SachinthaPasindu
@SachinthaPasindu 4 роки тому
@@datasith Can you do a tutorial for that please ? or if you have done please link me to that :) SSL between 2 Nodemcus , as server and Client.
@b17_igedeparadiptadharmasa7
@b17_igedeparadiptadharmasa7 2 роки тому
how to know the ip address?
@gab1861
@gab1861 4 роки тому
Is this possible to use on esp32?
@datasith
@datasith 4 роки тому
Yes, it is! The same code should work with minor modifications. See this video for an example on how the code changes between the ESP8266 and ESP32: ukposts.info/have/v-deo/aYeirYN9bYCU1Kc.html
@matiasliberti130
@matiasliberti130 2 роки тому
muy lindo el videito, muchas gracias tankyu!!!!!
@yogalakshmiss1389
@yogalakshmiss1389 4 роки тому
Where to i get a code?
@datasith
@datasith 4 роки тому
Link is in the description.
@abdurmannan1634
@abdurmannan1634 4 роки тому
I dont like your video. But i like Argentina.
@datasith
@datasith 4 роки тому
don't overwork those braincells, buddy
@girishradhakrishnan2699
@girishradhakrishnan2699 5 років тому
Better solution use NRF24L01 module, this is designed for point to point communication.
@datasith
@datasith 5 років тому
No need to flex, your suggestion isn't better in context. This is an ESP8266 application, not a "best practices for point-to-point communication."
@tin2001
@tin2001 5 років тому
This project example can be easily expanded to having dozens of "client" nodes, and could even be expanded to running over a larger LAN or even the internet (security aspects would need examining before doing that). A short range point to point radio module can't.
@holgerpohl1591
@holgerpohl1591 Рік тому
Thumbs down because of music while speaking!
@robertschemmel50
@robertschemmel50 5 років тому
The tutorial is very good at explaining the HOW, and very weak in explaining the WHY. This is doing without understanding, or 'parroting'. Learning is understanding WHY things are done.
@datasith
@datasith 5 років тому
Robert Schemmel wowzers, the entitlement is strong in this one ☝🏽 Sincerely, -The parrot
BRAWLER MUTATIONS WILL BREAK THE GAME! - Brawl Talk
09:34
Brawl Stars
Переглядів 24 млн
ВИРУСНЫЕ ВИДЕО / Мусорка 😂
00:34
Светлый Voiceover
Переглядів 6 млн
12 Useful & Interesting ESP32 Projects for Beginners!
9:41
ToP Projects Compilation
Переглядів 562 тис.
WiFiManager with ESP32 - Stop Hard-coding WiFi Credentials!
54:58
DroneBot Workshop
Переглядів 562 тис.
ESP32: Webserver, Websockets and JSON (WiFi Part 2) - Arduino
35:17
MoThunderz
Переглядів 71 тис.
Control Anything With IOT Easy Internet of Things with ESP32 and Arduino
17:56
#223 ESP-NOW simple demo - easy IOT data transfer on ESP32 or ESP8266
21:32
Нужен ли робот пылесос?
0:54
Катя и Лайфхаки
Переглядів 718 тис.
Распаковка айфона под водой!💦(🎥: @saken_kagarov on IG)
0:20
Взрывная История
Переглядів 9 млн
How to get a message from a developer? #standoff #system #scam
0:53
Standoff 2 Live
Переглядів 504 тис.