ESP32 Client-Server Wi-Fi Communication Between Two Boards (ESP8266 Compatible)

  Переглядів 231,104

Rui Santos

Rui Santos

День тому

ESP32 Schematics + Source Code ► RandomNerdTutorials.com/esp32...
ESP8266 NodeMCU Schematics + Source Code ► RandomNerdTutorials.com/esp82...
In this video you’ll learn how to setup an HTTP communication between two ESP32 boards to exchange data via Wi-Fi without the need to connect them to the internet. So, you don’t need a router.
Basically, you’ll learn how to send data from one board to the other using HTTP requests.
This project can be very useful if you need to setup a wireless communication between two boards or more and you don’t have a router nearby.
Like my page on Facebook:
/ randomnerdtutorials
Follow me on twitter:
/ ruisantosdotme
Subscribe for more projects like this!
bit.ly/subscribeRNT
#ESP32 #ESP8266 #Arduino

КОМЕНТАРІ: 187
@RuiSantosdotme
@RuiSantosdotme 4 роки тому
You can find the complete project details on my blog! - ESP32 Schematics + Source Code ► RandomNerdTutorials.com/esp32-client-server-wi-fi/ - ESP8266 NodeMCU Schematics + Source Code ► RandomNerdTutorials.com/esp8266-nodemcu-client-server-wi-fi/
@RSSSrinu
@RSSSrinu 4 роки тому
How many clients can we connect in this process
@boim9312
@boim9312 4 роки тому
Hello Mr Santos. I have an stack in ESP32 Camera board, when iam upload WiFi camera access in example software Arduino 1.8 then code error ............ Can you help me ?
@PritamSoni
@PritamSoni 4 роки тому
I'm trying to connect two esp8266 using server and client protocols and sending the data to thinkspeak server. Help me please 🥺
@md.arifulhaque8583
@md.arifulhaque8583 3 роки тому
What can be the maximum distance?
@saqibjaved1900
@saqibjaved1900 2 роки тому
Hi sir, i just want to know the max. range in which these two can communicate without any issue
@user-iw5de9ou6u
@user-iw5de9ou6u 4 роки тому
one of the best tutorial in esp32 in the youtube i saw, very well represented
@hakimyassaad9779
@hakimyassaad9779 Рік тому
faux it's not good pd
@kostashellas
@kostashellas 4 роки тому
Great example Rui, really useful I'd really like to see the same communication (print data) via Bluetooth for low power applications.
@tonysicily2687
@tonysicily2687 3 роки тому
Perfect, just what I needed, thank you Mr Santos.
@ATS3788
@ATS3788 4 роки тому
Thank you for your Camera Project you are doing incredible stuff
@hervemarie966
@hervemarie966 4 роки тому
Many tips in this project, excellent ! Thanks a lot !
@anibalvilelarj
@anibalvilelarj 4 роки тому
Excelente artigo ! Vou usar como ponto de partida em um projeto meu. Muito obrigado, Rui !
@FilmFactry
@FilmFactry 4 роки тому
THIS IS EXCELLENT!!! So many Tuts require a router network. I can figure it out, but it would be nice to see how you can "CONNECT" and use a browser to collect this data from say a laptop, or Android phone. Very helpful info here!! Great work!
@RuiSantosdotme
@RuiSantosdotme 4 роки тому
You would need to make your laptop/smartphone connect to the ESP Access Point, then open the ip address followed by /temperature (to see the temperature). You could also setup a web page in your board that would display all those readings at once
@sparkymarkm322
@sparkymarkm322 3 роки тому
Thanks for the great video! I have a question... I see the client requests data and the server replies with the three requested values, but is there a way to also enable the server to request data and the client replies with some values? I have a need to initiate requests from both sides.
@millicentolisenekwu5613
@millicentolisenekwu5613 4 роки тому
Hi Rui, i am not trying to flatter you by any means, your tutorials are THE BEST in there respective topic. About the topic at hand, lets assume that i live in a community without internet connectivity, can ESP32 Server such that you demonstrated act as an AP to control something like 8 channel relay?
@hariprast85
@hariprast85 4 роки тому
video simple,, complite, informatife, and something new
@trego9584
@trego9584 4 роки тому
Thanks, Great job always The Source code with all comments is very helpful
@DocMicha
@DocMicha 4 роки тому
Very nice and simple to remake!
@benoitmbayo7308
@benoitmbayo7308 4 роки тому
Great Video Rui, just what is the maximum range between the two boards?
@rgmtb
@rgmtb 4 роки тому
Great project! I was looking for something like this to create a simple remote control for my camera slider project 👍 Thank you
@RuiSantosdotme
@RuiSantosdotme 4 роки тому
I'm glad it helped! Regards, Rui
@Ed19601
@Ed19601 4 роки тому
Pretty neat. I see you make three separate calls in yr asynchronous website, for temp,humidity and pressure. That makes it simple and very clear, but ofcourse also possible to make it with just one call
@sarathkumar341
@sarathkumar341 4 роки тому
How do this guy know what I'm doing 😳 Everytime I struggled & finish a project he publish exactly same as a tutorial. Last week only I needed it hardly & finished it at last. Now you made an easier tutorial.
@RuiSantosdotme
@RuiSantosdotme 4 роки тому
I'm glad it helped! It was just a nice coincidence :)
@vino8275
@vino8275 4 роки тому
great. Master advice for e-money projects
@Hasan...
@Hasan... 3 роки тому
Thanks for the video Rui. Quick questions: 1) When ESP32 creates an AP, will the IP address be the same always? 2) how many other ESP's can I connect to the Master ESP AP ? 3) Will the Master ESP still be able to get connected to WiFi while it has it's own AP simultaneously?
@noealves8400
@noealves8400 4 роки тому
excelente video Rui. Obrigado!!!
@igeorge688
@igeorge688 4 роки тому
Hello Rui, excellent tutorial. I have a question. Do you have an example with let's say client has just one push button and server has an led. The same like in this tutorial, with no router. Press the button on client and led turn on on server. Even more. Each board has an push button and each board has a led. Same principle. One push button turn on led on the other board. I love to see something like that. Thank you
@gazzacroy
@gazzacroy 2 роки тому
thanks for the video.; it helped me a lot. im just getting into these things :)
@FilmFactry
@FilmFactry 4 роки тому
ESP32 question: I need to connect via I2C: BME280, BNO055 gyro, L53L0X TOF Time-Of-Flight, and optionally an OLED 128x64, I read I need to add pull up resistors. 1) would there be pull up resistors already on these modules? 2) would each sensor need 2 resistors for data and clock, or would you only add a set at the end of the "chain" like termination back in the SCSI days? Thanks:-)
@lorisloris7277
@lorisloris7277 4 роки тому
good work. can I also connect more than two clients? for example a server and 3 clients?
@4000phil
@4000phil Рік тому
Thanks. For the client any reason you choose ESP8266HTTPClient and not asynchroneous? Are you aware that going to your website, makes high cpu usages?
@sek295
@sek295 Рік тому
What's about changing the roles of server and client? Would be much more logical for me. So when connecting to multiple sensor stations you have the one with the display and multiple clients on different locations.. Or is it still the client with the display that ist permanently pulling from different servers (per definition)?
@RCMlll
@RCMlll 3 роки тому
Hello, do you believe it is possible to connect a Rasperry Pi to the "server" esp32? Thanks & great vid!
@felipedutra9852
@felipedutra9852 11 місяців тому
Thank you for tutorial! how would you make a post request on the client code?
@YigalBZ
@YigalBZ 3 роки тому
Hi. Two questions: 1) the IP needs to be get manually every boot? Since the client needs the IP of the server, can it be pre-set? 2) In this case the server sends data to the client. Can you show an example in which two clients send data to one server?
@allinclusive5762
@allinclusive5762 4 роки тому
Very nice! Thumbs up! 👍
@RuiSantosdotme
@RuiSantosdotme 4 роки тому
Thanks for watching!
@shakerileiwat4341
@shakerileiwat4341 4 роки тому
Great as always 👍👍👍☺
@RuiSantosdotme
@RuiSantosdotme 4 роки тому
Thanks!
@zacariasbenta3910
@zacariasbenta3910 4 роки тому
Este tutorial está muito bom Rui, obrigado.
@RuiSantosdotme
@RuiSantosdotme 4 роки тому
Obrigado!
@electronicforall909
@electronicforall909 3 роки тому
Thank you for sharing....but how the Max distance between the two boards
@mnageh-bo1mm
@mnageh-bo1mm 4 роки тому
Can we get it to do two things at the same time like deauth and monitoring ?!
@Drxxx
@Drxxx 4 роки тому
Great video
@bishely
@bishely 4 роки тому
I don't mean to be negative, but isn't this setup a bit back-to-front? What I mean is, wouldn't it make more sense to have the Client connecting to the Server's Access Point, but put the sensors and API on the Client module, and connect the display and issue GET requests from the Server? That way, it would be trivial to add extra Clients running the same code and simply modify the Server code to GET from additional IPs/URLs. I might've misunderstood the tutorial, but it seems to me that if you wanted to add additional ESP+sensor client modules to the setup as demonstrated, you'd either have to configure them to connect to the first sensor's access point and then add a bunch of extra endpoints to the server code, or else configure the client to somehow keep connecting to and disconnecting from different APs (I've no idea how you'd do that). Either way, it's extra code, when surely the aim in such projects would be to maximise reusable code and minimise rewrites. Or am I missing something here?
@chrisalexthomas
@chrisalexthomas Рік тому
What about using ESP-Now as well? That is something I watched in another video doing something similar
@youssefyasser1929
@youssefyasser1929 11 місяців тому
Thanks alot, can i do it with esp node mcu 32s and arduino mega using wifi module
@TimoziusVanKaukus
@TimoziusVanKaukus 4 роки тому
does it also work with an all in one esp32 module? (OLED soldered on board)????
@sangarmutusamy9801
@sangarmutusamy9801 3 роки тому
Hi Rui Santos, how to add relay at client side and turn ON/OFF from server side ?
@salaxer
@salaxer 4 роки тому
Exelente Video
@ChonGeeSan
@ChonGeeSan 4 роки тому
Running this gives me a 1 or 2 sockets transmission per second. Is there a faster way to make 2 ESP8266 boards communicate?
@3mariusx
@3mariusx 5 місяців тому
i've been trying to make the same project but with using MPU 6050 sensor but i keep fail. can you please do a tutorial for this sensor too? I fail to do the String line and using the MPU 6050 library from what i think it does not support String or i do not know how to do it. this is an amazing project! thank you soo much!
@saqibbatt1690
@saqibbatt1690 4 роки тому
Bro make more videos on esp32 and audrino ..i am happy i got new channel for this
@florent9555
@florent9555 3 роки тому
Would this also work if the esp is mounted somewhere and then it sends data to my laptop via wifi using sockets?
@stickylabhome7568
@stickylabhome7568 2 роки тому
that's possible to streaming wiedo to other ESP32 by wifi? Or exist way, to plug other esp32 by wires?
@sangarmutusamy9801
@sangarmutusamy9801 3 роки тому
Hi Rui Santos, can you pls make a video on how to send 12 sensor data serially from nodemcu to arduino uno and parse it?
@eulamieraz5297
@eulamieraz5297 2 роки тому
Good day, I would like to ask, what if my input is CO2 sensor, where do I put my analog pin in the ESP32?
@guilhermepaixao1102
@guilhermepaixao1102 4 роки тому
Muitp bom!obrigado pour partilhar.
@Lefachie
@Lefachie 3 роки тому
Thank you
@sonnyf5777
@sonnyf5777 3 роки тому
Is possible a nodeMCU as server to two or more nodeMCU as client? Client will use to get status sensors and controll some relay.....
@chihauccisoilconte4474
@chihauccisoilconte4474 3 роки тому
Fantastic tutorial! I was wondering, would it be possible to connect more than 2 devices together and make a sort of little network?
@felix-gena6595
@felix-gena6595 2 роки тому
Of course, just use one as a Access point and other devices as Stations.
@maharshigohil6886
@maharshigohil6886 4 роки тому
Can client send data to server as well simultaneously? I want to send data from server to client and at the same time want to send data from client to server. Is it possible?
@yannikcod8257
@yannikcod8257 2 роки тому
When I have an normal ESP8266 01s, do I have to upload the Code to the ESP or the Arduino?
@syncro66500
@syncro66500 4 роки тому
very good tutorial thx, I've one question , how IP adress was made ? thanks
@joseaugustodossantossilva1149
@joseaugustodossantossilva1149 3 роки тому
How fast can you make the GET requests? It will be awesome if we could make "real time" data acquisition
@muskuratajeevan6617
@muskuratajeevan6617 Рік тому
What should be the range between 2 nordmcu for communicate
@martinshoraji9070
@martinshoraji9070 2 роки тому
Can you do this but with an ESP32 CAM and ESP32 connected to a TFT display?
@elaminenour3548
@elaminenour3548 4 роки тому
great porject gj
@larsniklassonhede3798
@larsniklassonhede3798 3 роки тому
I have several 8266 clients speaking to a server. Now I need more I/Os. I bought a ESP32 for the server. But now I can not communicate between them. It is difficult to do that?
@saraha2647
@saraha2647 Рік тому
Sir, can we establish communication between two different versions of esp8266 through HTTP??
@muhammadfarhanjundiosama8686
@muhammadfarhanjundiosama8686 Рік тому
Excuse me, is there any way to change the lcd with ST7789 led?
@s-max3277
@s-max3277 Рік тому
@Rui Santos with asyncwebserver is possible this function,? 1 connecting by router 2 if server have data send direct to client? I have test your part code and need sugestion for my complete my project. Your code have problem for working with router installed to my hardware. And work only m2m without router. I have send two post to your website blog. Thanks
@craftapple9446
@craftapple9446 Рік тому
Rui será que é possível fazer um server para dois clientes ? Muda alguma coisa no código ou segue esse caminho
@muthukkumarrb1281
@muthukkumarrb1281 2 роки тому
What is the preferable and maximum distance between the two esp?
@gtechninja
@gtechninja 4 роки тому
is it possible to do this between esp32 cam and esp8266? if so, please help me how to do it. tnx for your help.
@antibulling2551
@antibulling2551 Рік тому
is'it pôssible to have a mqtt server on the esp32 access point and the esp32 client connect to mqtt server to publish and subscribe
@ChaitanyaVarmaD
@ChaitanyaVarmaD 3 роки тому
what is the max range you could get out of communication ?
@electric_mix
@electric_mix 4 роки тому
Nice
@jedandecko5585
@jedandecko5585 4 роки тому
Hi, nice tutorial. What is range of this comm, if its couple of meter isnt then better to use BT? Thanks for sharing.
@RuiSantosdotme
@RuiSantosdotme 4 роки тому
With this project using ESP32 boards and in open space (no obstacles) I was able to get up to 50 meters (164 feet) reliable communication
@jedandecko5585
@jedandecko5585 4 роки тому
@@RuiSantosdotme Well that is respectable distance, thak you for your fast answer.
@shashikantabiswal7911
@shashikantabiswal7911 Рік тому
How multiple Temperature received the receiver and show TFT display???
@reneeberty
@reneeberty 4 місяці тому
Hi there, great job! I have just started learning arduino and esp32, and I have a project I think which is way over my actuel grade! So if you are ok, I would like to hire you for my project! Let me know what you think!
@kushagra4379
@kushagra4379 4 роки тому
Can 1 Esp32 be connected more than one esp32 for example, one esp32 connected to 6 esp32?
@longngo2418
@longngo2418 4 роки тому
hi, Bro. I want to control the light by the client on the webserver. but i do not know to make id for the client to control. can you help me? Thanks bro.
@goodfriendza
@goodfriendza 3 роки тому
Can you help me on how to press one button on esp32 so that another esp32 light will turn on? Please.
@melbryant4269
@melbryant4269 4 роки тому
can someone tell me if it is possible to use a encryption algorithm or something and secure this communication? is it possible with esp32 ? pls reply me if you know how to do it?? pleaseeeee i need helppp
@JM_Tushe
@JM_Tushe 2 роки тому
Is it possible to use micropython in one and Arduino in the other?
@technomed6720
@technomed6720 3 роки тому
hello, can this project work with internet connection
@zeiadahmedmadbouly8866
@zeiadahmedmadbouly8866 10 місяців тому
how can i instead of sending the sensor reading send a potentiometer's reading
@luisurielsanchezlopez9019
@luisurielsanchezlopez9019 4 роки тому
hello, does the code in upycraft have it?
@user-tn8ps8ww1i
@user-tn8ps8ww1i Рік тому
How can I send control commands between two chip?
@yabesh6742
@yabesh6742 4 роки тому
How much distance it transmits data to server
@norelfarjun3554
@norelfarjun3554 3 роки тому
Hi, sorry if the question is stupid, I'm new to the field 1:47 A white window with the name of the port to which the board is connected What is the name of this window and how do I get to it?
@danielgago-sk
@danielgago-sk 3 роки тому
This is output from serial monitor on Arduino IDE. Click on Tool - Serial Monitor.
@trajanonerd
@trajanonerd 4 роки тому
Boas. Parabéns pelos videos de qualidade Rui. Qual é o alcance de comunicação? Obrigado
@RuiSantosdotme
@RuiSantosdotme 4 роки тому
Boas, conseguiu um alcance de 50 metros entre 2x ESP32 num espaço aberto (sem obstáculos)
@trajanonerd
@trajanonerd 4 роки тому
Rui Santos Parece-me bem. Obrigado pela resposta
@raeesjamadar199
@raeesjamadar199 4 роки тому
Can I send bme data to nextion display
@makerun6927
@makerun6927 4 роки тому
very nice
@RuiSantosdotme
@RuiSantosdotme 4 роки тому
Thanks for watching!
@joseantoniotorreslima3068
@joseantoniotorreslima3068 3 роки тому
Excuse me you can make that 8266 as server and client at the same time , thank you
@hariprast85
@hariprast85 4 роки тому
master can would u make a tutorial about esp32cam telegram bot
@JoshuaJapitan
@JoshuaJapitan 3 роки тому
Hello, could the time between sending of data right be reduced right? I am thinking of making a Wemos D1 Mini-based RC controller to control my Wemos D1 Mini RC car
@luisangelespinozafong2263
@luisangelespinozafong2263 3 роки тому
Did you do it? I'm trying to do something similar
@JoshuaJapitan
@JoshuaJapitan 3 роки тому
@@luisangelespinozafong2263 yep
@luisangelespinozafong2263
@luisangelespinozafong2263 3 роки тому
@@JoshuaJapitan did u base your code on this video? Do you know the maximum range?
@therealpepeu
@therealpepeu 2 роки тому
Is it possible to connect 10 clients to 1 server without any hiccups?
@theo_iss
@theo_iss 3 роки тому
Is it possible to do it for esp8266 ?
@menem0720
@menem0720 Рік тому
Somebody knows how to connect a router with this project? To alarge the connection. If you know please tell me
@abobija
@abobija 4 роки тому
Nice video! Great demonstration of ESP32 access point capabilities, and spin up http server on them as well. I love Esp32 and I'm making some videos on my channel about this and similar topics. You should check it out guys.
@surenbono6063
@surenbono6063 Рік тому
...How to send decoded gps Neo-6m (stratum1) data from AP to multiple esp client (stratum2) with FC_16 ledmatrix display in other area of the house?.. synching Hours: Minutes:Seconds ,date,..etc.. basically the internet (gps data) comes from the satelite...as an alternative to NTP
@AnshumanFauzdar
@AnshumanFauzdar 4 роки тому
Hey, this tutorial is great and very useful! Can you please make one tutorial on ESP-NOW, or if there is no difference between this tutorial and esp-now?
@jb9282
@jb9282 4 роки тому
Abo get ! 👍🙋🏼‍♂️
@shashikantabiswal7911
@shashikantabiswal7911 2 роки тому
How to Replace BME280 TO AMT1001 Temperature Sensor.and what code.
@clemensgruber6213
@clemensgruber6213 4 роки тому
Perhaps you may have a look at the proprietary so calls "802.11 LR" WiFi feature of the ESP32 that supports long range data transmission up to 1 km! "LR" stands for long range some joking and say it means low rate because it is slower than nomal Wifi. This (routerless) setup in the tutorial would be an excelent usecase for this properitary feature because is can not be mixed up with normal WiFi standards. See www.hackster.io/news/long-range-wifi-for-the-esp32-9429ab89f450 > The 802.11 LR mode is a patented custom mode that can achieve a 1 km line of sight range so long as both the station and the soft-AP are connected to an ESP32 device.
@RajaSingh-hs2tb
@RajaSingh-hs2tb Рік тому
How to send or receive digital data
@mkr32
@mkr32 2 роки тому
Hello Rui i am happy to subscribe your channel can you share video esp32 to esp32 led and servo motor control between two esp32 board (with out external router) thanks
ESP32-to-ESP32 Simplex Communication via ESP-NOW
6:31
Anas Kuzechie
Переглядів 46 тис.
Челсі VS Евертон - Огляд матчу
07:41
Setanta Sports Premier League
Переглядів 204 тис.
Как делали трек Меломан
00:44
Gazan
Переглядів 1,3 млн
Блоховирус !🦠 #симба #тигра #булли
00:57
Симбочка Пимпочка
Переглядів 7 млн
Help Herobrine Escape From Spike
00:28
Garri Creative
Переглядів 42 млн
ESP32 WiFi Range Testing - 10km using Directional Antenna
5:42
ESP-NOW - Peer to Peer ESP32 Network
43:02
DroneBot Workshop
Переглядів 321 тис.
ESP32 Access Point and Router connection explained
8:51
MoThunderz
Переглядів 40 тис.
ESP8266 + Arduino + database - Control Anything from Anywhere
13:51
Electronoobs
Переглядів 613 тис.
ESP32/ESP8266 Relay Module - Control AC Appliances (Web Server)
6:10
Rui Santos
Переглядів 247 тис.
ESP32 CAM Blynk Multiple Camera Surveillance
8:41
Viral Science - The home of Creativity
Переглядів 491 тис.
12 Channels ESPNOW Wireless Transmitter Receiver using ESP32 | DIY 👌
13:04
hash include electronics
Переглядів 44 тис.
Начали делать пол в пристройке// WD-40 своими руками
29:17
Деревенское счастье
Переглядів 77 тис.
Зачем нужна эта кнопка?
0:25
Construct PC
Переглядів 59 тис.
Это Самый МОЩНЫЙ Смартфон в Мире за 300$
13:46
Thebox - о технике и гаджетах
Переглядів 47 тис.
iPhone 16 SE - Бюджетний винищувач Android | Новини Тижня
21:29