Тёмный

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

Rui Santos
Подписаться 69 тыс.
Просмотров 239 тыс.
50% 1

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

Наука

Опубликовано:

 

6 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 192   
@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
@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.
@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
@ATS3788
@ATS3788 4 года назад
Thank you for your Camera Project you are doing incredible stuff
@tonysicily2687
@tonysicily2687 3 года назад
Perfect, just what I needed, thank you Mr Santos.
@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
@hervemarie966
@hervemarie966 4 года назад
Many tips in this project, excellent ! Thanks a lot !
@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 :)
@DocMicha
@DocMicha 4 года назад
Very nice and simple to remake!
@anibalvilelarj
@anibalvilelarj 4 года назад
Excelente artigo ! Vou usar como ponto de partida em um projeto meu. Muito obrigado, Rui !
@noealves8400
@noealves8400 4 года назад
excelente video Rui. Obrigado!!!
@hariprast85
@hariprast85 4 года назад
video simple,, complite, informatife, and something new
@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
@vino8275
@vino8275 4 года назад
great. Master advice for e-money projects
@trego9584
@trego9584 4 года назад
Thanks, Great job always The Source code with all comments is very helpful
@gazzacroy
@gazzacroy 3 года назад
thanks for the video.; it helped me a lot. im just getting into these things :)
@elaminenour3548
@elaminenour3548 4 года назад
great porject gj
@shakerileiwat4341
@shakerileiwat4341 4 года назад
Great as always 👍👍👍☺
@RuiSantosdotme
@RuiSantosdotme 4 года назад
Thanks!
@Drxxx
@Drxxx 4 года назад
Great video
@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?
@allinclusive5762
@allinclusive5762 4 года назад
Very nice! Thumbs up! 👍
@RuiSantosdotme
@RuiSantosdotme 4 года назад
Thanks for watching!
@lorisloris7277
@lorisloris7277 4 года назад
good work. can I also connect more than two clients? for example a server and 3 clients?
@felipedutra9852
@felipedutra9852 Год назад
Thank you for tutorial! how would you make a post request on the client code?
@mnageh-bo1mm
@mnageh-bo1mm 4 года назад
Can we get it to do two things at the same time like deauth and monitoring ?!
@benoitmbayo7308
@benoitmbayo7308 4 года назад
Great Video Rui, just what is the maximum range between the two boards?
@electronicforall909
@electronicforall909 4 года назад
Thank you for sharing....but how the Max distance between the two boards
@zacariasbenta3910
@zacariasbenta3910 4 года назад
Este tutorial está muito bom Rui, obrigado.
@RuiSantosdotme
@RuiSantosdotme 4 года назад
Obrigado!
@sangarmutusamy9801
@sangarmutusamy9801 4 года назад
Hi Rui Santos, how to add relay at client side and turn ON/OFF from server side ?
@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?
@salaxer
@salaxer 4 года назад
Exelente Video
@chrisalexthomas
@chrisalexthomas Год назад
What about using ESP-Now as well? That is something I watched in another video doing something similar
@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?
@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
@florre-stg
@florre-stg 4 года назад
does it also work with an all in one esp32 module? (OLED soldered on board)????
@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:-)
@youssefyasser1929
@youssefyasser1929 Год назад
Thanks alot, can i do it with esp node mcu 32s and arduino mega using wifi module
@guilhermepaixao1102
@guilhermepaixao1102 4 года назад
Muitp bom!obrigado pour partilhar.
@saqibbatt1690
@saqibbatt1690 4 года назад
Bro make more videos on esp32 and audrino ..i am happy i got new channel for this
@RCMlll
@RCMlll 4 года назад
Hello, do you believe it is possible to connect a Rasperry Pi to the "server" esp32? Thanks & great vid!
@electric_mix
@electric_mix 4 года назад
Nice
@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?
@florent9555
@florent9555 4 года назад
Would this also work if the esp is mounted somewhere and then it sends data to my laptop via wifi using sockets?
@syncro66500
@syncro66500 4 года назад
very good tutorial thx, I've one question , how IP adress was made ? thanks
@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?
@muthukkumarrb1281
@muthukkumarrb1281 2 года назад
What is the preferable and maximum distance between the two esp?
@muskuratajeevan6617
@muskuratajeevan6617 Год назад
What should be the range between 2 nordmcu for communicate
@joseaugustodossantossilva1149
@joseaugustodossantossilva1149 3 года назад
How fast can you make the GET requests? It will be awesome if we could make "real time" data acquisition
@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?
@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.
@craftapple9446
@craftapple9446 2 года назад
Rui será que é possível fazer um server para dois clientes ? Muda alguma coisa no código ou segue esse caminho
@sek295
@sek295 2 года назад
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)?
@ChaitanyaVarmaD
@ChaitanyaVarmaD 3 года назад
what is the max range you could get out of communication ?
@YigalBZ
@YigalBZ 4 года назад
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?
@yannikcod8257
@yannikcod8257 3 года назад
When I have an normal ESP8266 01s, do I have to upload the Code to the ESP or the Arduino?
@3mariusx
@3mariusx 9 месяцев назад
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!
@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?
@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.
@goodfriendza
@goodfriendza 4 года назад
Can you help me on how to press one button on esp32 so that another esp32 light will turn on? Please.
@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.
@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.....
@martinshoraji9070
@martinshoraji9070 2 года назад
Can you do this but with an ESP32 CAM and ESP32 connected to a TFT display?
@technomed6720
@technomed6720 4 года назад
hello, can this project work with internet connection
@raeesjamadar199
@raeesjamadar199 4 года назад
Can I send bme data to nextion display
@kushagra4379
@kushagra4379 4 года назад
Can 1 Esp32 be connected more than one esp32 for example, one esp32 connected to 6 esp32?
@yabesh6742
@yabesh6742 4 года назад
How much distance it transmits data to server
@muhammadfarhanjundiosama8686
Excuse me, is there any way to change the lcd with ST7789 led?
@sparkymarkm322
@sparkymarkm322 4 года назад
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.
@BlackRedBoy
@BlackRedBoy 2 месяца назад
thanks u
@zeiadahmedmadbouly8866
@zeiadahmedmadbouly8866 Год назад
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?
@barajr1349
@barajr1349 2 месяца назад
Great video, but I have a question...can ESP32 communicate with 2 methods at once? for example like ESP 1 - ESP 2 with ESP-NOW, then ESP 2 - PLC with wifi communication...
@saraha2647
@saraha2647 2 года назад
Sir, can we establish communication between two different versions of esp8266 through HTTP??
@joseantoniotorreslima3068
@joseantoniotorreslima3068 3 года назад
Excuse me you can make that 8266 as server and client at the same time , thank you
@CSanchsheesh
@CSanchsheesh 3 месяца назад
Can you still connect it to the internet using a gsm module?
@stickylabhome7568
@stickylabhome7568 3 года назад
that's possible to streaming wiedo to other ESP32 by wifi? Or exist way, to plug other esp32 by wires?
@shashikantabiswal7911
@shashikantabiswal7911 2 года назад
How multiple Temperature received the receiver and show TFT display???
@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.
@makerun6927
@makerun6927 4 года назад
very nice
@RuiSantosdotme
@RuiSantosdotme 4 года назад
Thanks for watching!
@user-tn8ps8ww1i
@user-tn8ps8ww1i Год назад
How can I send control commands between two chip?
@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?
@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
@raeesjamadar199
@raeesjamadar199 4 года назад
I get question mark at client serial monitor
@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?
@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
@hariprast85
@hariprast85 4 года назад
master can would u make a tutorial about esp32cam telegram bot
@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
@gab1861
@gab1861 4 года назад
I am getting some unnecessary text at my serial monitor, i tried modifying the code and remove the codes for the sensors cause I don't need them and I only need to try a simple getrequesr without using internet
@gab1861
@gab1861 4 года назад
Sir rui Do you have any videos how?
@RajaSingh-hs2tb
@RajaSingh-hs2tb 2 года назад
How to send or receive digital data
@JM_Tushe
@JM_Tushe 2 года назад
Is it possible to use micropython in one and Arduino in the other?
@theo_iss
@theo_iss 3 года назад
Is it possible to do it for esp8266 ?
@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
@JoshuaJapitan
@JoshuaJapitan 4 года назад
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?
@jb9282
@jb9282 4 года назад
Abo get ! 👍🙋🏼‍♂️
@sarathkumar341
@sarathkumar341 4 года назад
This time can you do my favor in advance? I want to fetch data from ubidots cloud with GET request & plot it in Google Maps.
@RuiSantosdotme
@RuiSantosdotme 4 года назад
Thanks for asking, but I don't plan to create any tutorials on that exact subject at the moment....
@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?
@raeesjamadar199
@raeesjamadar199 4 года назад
I have got error http_client.h no such file or directory
@norelfarjun3554
@norelfarjun3554 4 года назад
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.
@HPSVLOG-gl1jx
@HPSVLOG-gl1jx 4 года назад
Bhai plz make line following car using Wi-Fi module ESP 8266 and. Motor drive l298n 🙏🙏🙏🙏🙏
Далее
ESP-NOW - Peer to Peer ESP32 Network
43:02
Просмотров 350 тыс.
Иран и Израиль. Вот и всё
19:43
Просмотров 1,5 млн
ESP32-to-ESP32 Simplex Communication via ESP-NOW
6:31
Why The Windows Phone Failed
24:08
Просмотров 256 тыс.
ESP NOW: Espressif's Wireless-Communication Protocol
9:20
iPhone socket cleaning #Fixit
0:30
Просмотров 18 млн
Чем нельзя протирать экран?
0:44
Проверил, как вам?
0:58
Просмотров 378 тыс.