ESP32 Client-Server Wi-Fi Communication Between Two Boards (ESP8266 Compatible)
Вставка
- Опубліковано 11 лип 2024
- 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 - Наука та технологія
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/
How many clients can we connect in this process
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 ?
I'm trying to connect two esp8266 using server and client protocols and sending the data to thinkspeak server. Help me please 🥺
What can be the maximum distance?
Hi sir, i just want to know the max. range in which these two can communicate without any issue
Great example Rui, really useful I'd really like to see the same communication (print data) via Bluetooth for low power applications.
one of the best tutorial in esp32 in the youtube i saw, very well represented
faux it's not good pd
Perfect, just what I needed, thank you Mr Santos.
Thank you for your Camera Project you are doing incredible stuff
Many tips in this project, excellent ! Thanks a lot !
Excelente artigo ! Vou usar como ponto de partida em um projeto meu. Muito obrigado, Rui !
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!
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
Thanks, Great job always The Source code with all comments is very helpful
excelente video Rui. Obrigado!!!
video simple,, complite, informatife, and something new
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.
I'm glad it helped! It was just a nice coincidence :)
Great project! I was looking for something like this to create a simple remote control for my camera slider project 👍 Thank you
I'm glad it helped! Regards,
Rui
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
Very nice and simple to remake!
great. Master advice for e-money projects
Este tutorial está muito bom Rui, obrigado.
Obrigado!
Very nice! Thumbs up! 👍
Thanks for watching!
thanks for the video.; it helped me a lot. im just getting into these things :)
Great as always 👍👍👍☺
Thanks!
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?
Great video
Great Video Rui, just what is the maximum range between the two boards?
Muitp bom!obrigado pour partilhar.
Exelente Video
Nice
great porject gj
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?
good work.
can I also connect more than two clients? for example a server and 3 clients?
Thank you
Bro make more videos on esp32 and audrino ..i am happy i got new channel for this
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:-)
Thanks.
For the client any reason you choose ESP8266HTTPClient and not asynchroneous?
Are you aware that going to your website, makes high cpu usages?
Thank you for tutorial! how would you make a post request on the client code?
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
Fantastic tutorial! I was wondering, would it be possible to connect more than 2 devices together and make a sort of little network?
Of course, just use one as a Access point and other devices as Stations.
Thank you for sharing....but how the Max distance between the two boards
Can we get it to do two things at the same time like deauth and monitoring ?!
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)?
Thanks alot, can i do it with esp node mcu 32s and arduino mega using wifi module
Hello, do you believe it is possible to connect a Rasperry Pi to the "server" esp32? Thanks & great vid!
What about using ESP-Now as well? That is something I watched in another video doing something similar
Hi Rui Santos, how to add relay at client side and turn ON/OFF from server side ?
does it also work with an all in one esp32 module? (OLED soldered on board)????
very nice
Thanks for watching!
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.
very good tutorial thx, I've one question , how IP adress was made ? thanks
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?
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?
thanks u
Running this gives me a 1 or 2 sockets transmission per second. Is there a faster way to make 2 ESP8266 boards communicate?
What should be the range between 2 nordmcu for communicate
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!
Would this also work if the esp is mounted somewhere and then it sends data to my laptop via wifi using sockets?
Good day, I would like to ask, what if my input is CO2 sensor, where do I put my analog pin in the ESP32?
Hi, nice tutorial.
What is range of this comm, if its couple of meter isnt then better to use BT?
Thanks for sharing.
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
@@RuiSantosdotme Well that is respectable distance, thak you for your fast answer.
How fast can you make the GET requests? It will be awesome if we could make "real time" data acquisition
When I have an normal ESP8266 01s, do I have to upload the Code to the ESP or the Arduino?
What is the preferable and maximum distance between the two esp?
that's possible to streaming wiedo to other ESP32 by wifi? Or exist way, to plug other esp32 by wires?
Rui será que é possível fazer um server para dois clientes ? Muda alguma coisa no código ou segue esse caminho
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.
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...
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?
Abo get ! 👍🙋🏼♂️
Is possible a nodeMCU as server to two or more nodeMCU as client? Client will use to get status sensors and controll some relay.....
Can you do this but with an ESP32 CAM and ESP32 connected to a TFT display?
what is the max range you could get out of communication ?
Boas. Parabéns pelos videos de qualidade Rui.
Qual é o alcance de comunicação?
Obrigado
Boas, conseguiu um alcance de 50 metros entre 2x ESP32 num espaço aberto (sem obstáculos)
Rui Santos Parece-me bem.
Obrigado pela resposta
Excuse me, is there any way to change the lcd with ST7789 led?
is it possible to do this between esp32 cam and esp8266? if so, please help me how to do it. tnx for your help.
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?
Sir, can we establish communication between two different versions of esp8266 through HTTP??
Can 1 Esp32 be connected more than one esp32 for example, one esp32 connected to 6 esp32?
Can you help me on how to press one button on esp32 so that another esp32 light will turn on? Please.
How multiple Temperature received the receiver and show TFT display???
Can you still connect it to the internet using a gsm module?
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?
This is output from serial monitor on Arduino IDE. Click on Tool - Serial Monitor.
hello, does the code in upycraft have it?
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?
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?
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
hello, can this project work with internet connection
How much distance it transmits data to server
how can i instead of sending the sensor reading send a potentiometer's reading
Excuse me you can make that 8266 as server and client at the same time , thank you
@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
Can I send bme data to nextion display
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
Did you do it? I'm trying to do something similar
@@luisangelespinozafong2263 yep
@@JoshuaJapitan did u base your code on this video? Do you know the maximum range?
Is it possible to use micropython in one and Arduino in the other?
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.
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
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.
Thanks for asking, but I don't plan to create any tutorials on that exact subject at the moment....
How can I send control commands between two chip?
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
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
Sir rui Do you have any videos how?
You say keep the two boards "relatively close." About how far away can they be and still communicate? Thanks!
I suggested keeping them close to test to ensure that they establish a communication. However, with this exact project using ESP32 boards and in open space (no obstacles) I was able to get up to 50 meters (164 feet) reliable communication
@@RuiSantosdotme good to know. Thanks for the quick reply!
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.
master can would u make a tutorial about esp32cam telegram bot
I get question mark at client serial monitor