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

แชร์
ฝัง

ความคิดเห็น • 189

  • @RuiSantosdotme
    @RuiSantosdotme  4 ปีที่แล้ว +9

    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 ปีที่แล้ว +1

      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 ปีที่แล้ว +6

    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

  • @user-iw5de9ou6u
    @user-iw5de9ou6u 4 ปีที่แล้ว +6

    one of the best tutorial in esp32 in the youtube i saw, very well represented

  • @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 !

  • @hariprast85
    @hariprast85 4 ปีที่แล้ว +1

    video simple,, complite, informatife, and something new

  • @FilmFactry
    @FilmFactry 4 ปีที่แล้ว +1

    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 ปีที่แล้ว +1

      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

  • @trego9584
    @trego9584 4 ปีที่แล้ว

    Thanks, Great job always The Source code with all comments is very helpful

  • @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

  • @sparkymarkm322
    @sparkymarkm322 3 ปีที่แล้ว +2

    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.

  • @DocMicha
    @DocMicha 4 ปีที่แล้ว

    Very nice and simple to remake!

  • @vino8275
    @vino8275 4 ปีที่แล้ว

    great. Master advice for e-money projects

  • @noealves8400
    @noealves8400 4 ปีที่แล้ว

    excelente video Rui. Obrigado!!!

  • @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

  • @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 :)

  • @benoitmbayo7308
    @benoitmbayo7308 4 ปีที่แล้ว +2

    Great Video Rui, just what is the maximum range between the two boards?

  • @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?

  • @lorisloris7277
    @lorisloris7277 4 ปีที่แล้ว

    good work.
    can I also connect more than two clients? for example a server and 3 clients?

  • @gazzacroy
    @gazzacroy 2 ปีที่แล้ว

    thanks for the video.; it helped me a lot. im just getting into these things :)

  • @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?

  • @zacariasbenta3910
    @zacariasbenta3910 4 ปีที่แล้ว +1

    Este tutorial está muito bom Rui, obrigado.

  • @FilmFactry
    @FilmFactry 4 ปีที่แล้ว +1

    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:-)

  • @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

  • @electronicforall909
    @electronicforall909 4 ปีที่แล้ว

    Thank you for sharing....but how the Max distance between the two boards

  • @felipedutra9852
    @felipedutra9852 ปีที่แล้ว

    Thank you for tutorial! how would you make a post request on the client code?

  • @RCMlll
    @RCMlll 3 ปีที่แล้ว

    Hello, do you believe it is possible to connect a Rasperry Pi to the "server" esp32? Thanks & great vid!

  • @electric_mix
    @electric_mix 4 ปีที่แล้ว +1

    Nice

  • @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)?

  • @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?

  • @saqibbatt1690
    @saqibbatt1690 4 ปีที่แล้ว

    Bro make more videos on esp32 and audrino ..i am happy i got new channel for this

  • @shakerileiwat4341
    @shakerileiwat4341 4 ปีที่แล้ว

    Great as always 👍👍👍☺

  • @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.

  • @Drxxx
    @Drxxx 4 ปีที่แล้ว

    Great video

  • @guilhermepaixao1102
    @guilhermepaixao1102 4 ปีที่แล้ว

    Muitp bom!obrigado pour partilhar.

  • @elaminenour3548
    @elaminenour3548 4 ปีที่แล้ว

    great porject gj

  • @youssefyasser1929
    @youssefyasser1929 ปีที่แล้ว

    Thanks alot, can i do it with esp node mcu 32s and arduino mega using wifi module

  • @mnageh-bo1mm
    @mnageh-bo1mm 4 ปีที่แล้ว

    Can we get it to do two things at the same time like deauth and monitoring ?!

  • @chrisalexthomas
    @chrisalexthomas ปีที่แล้ว

    What about using ESP-Now as well? That is something I watched in another video doing something similar

  • @allinclusive5762
    @allinclusive5762 4 ปีที่แล้ว +1

    Very nice! Thumbs up! 👍

  • @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 ?

  • @stickylabhome7568
    @stickylabhome7568 2 ปีที่แล้ว

    that's possible to streaming wiedo to other ESP32 by wifi? Or exist way, to plug other esp32 by wires?

  • @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 6 หลายเดือนก่อน

    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!

  • @salaxer
    @salaxer 4 ปีที่แล้ว

    Exelente Video

  • @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?

  • @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?

  • @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.

  • @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?

  • @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?

  • @barajr1349
    @barajr1349 วันที่ผ่านมา

    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...

  • @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.....

  • @craftapple9446
    @craftapple9446 ปีที่แล้ว

    Rui será que é possível fazer um server para dois clientes ? Muda alguma coisa no código ou segue esse caminho

  • @Lefachie
    @Lefachie 3 ปีที่แล้ว

    Thank you

  • @muskuratajeevan6617
    @muskuratajeevan6617 ปีที่แล้ว

    What should be the range between 2 nordmcu for communicate

  • @syncro66500
    @syncro66500 4 ปีที่แล้ว

    very good tutorial thx, I've one question , how IP adress was made ? thanks

  • @yannikcod8257
    @yannikcod8257 2 ปีที่แล้ว

    When I have an normal ESP8266 01s, do I have to upload the Code to the ESP or the Arduino?

  • @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?

  • @martinshoraji9070
    @martinshoraji9070 2 ปีที่แล้ว

    Can you do this but with an ESP32 CAM and ESP32 connected to a TFT display?

  • @muhammadfarhanjundiosama8686
    @muhammadfarhanjundiosama8686 ปีที่แล้ว

    Excuse me, is there any way to change the lcd with ST7789 led?

  • @joseaugustodossantossilva1149
    @joseaugustodossantossilva1149 3 ปีที่แล้ว

    How fast can you make the GET requests? It will be awesome if we could make "real time" data acquisition

  • @muthukkumarrb1281
    @muthukkumarrb1281 2 ปีที่แล้ว

    What is the preferable and maximum distance between the two esp?

  • @trajanonerd
    @trajanonerd 4 ปีที่แล้ว

    Boas. Parabéns pelos videos de qualidade Rui.
    Qual é o alcance de comunicação?
    Obrigado

    • @RuiSantosdotme
      @RuiSantosdotme  4 ปีที่แล้ว +1

      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

  • @saraha2647
    @saraha2647 ปีที่แล้ว

    Sir, can we establish communication between two different versions of esp8266 through HTTP??

  • @ChaitanyaVarmaD
    @ChaitanyaVarmaD 3 ปีที่แล้ว

    what is the max range you could get out of communication ?

  • @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?

  • @shashikantabiswal7911
    @shashikantabiswal7911 ปีที่แล้ว

    How multiple Temperature received the receiver and show TFT display???

  • @technomed6720
    @technomed6720 3 ปีที่แล้ว

    hello, can this project work with internet connection

  • @CSanchsheesh
    @CSanchsheesh 27 วันที่ผ่านมา

    Can you still connect it to the internet using a gsm module?

  • @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

  • @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.

  • @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?

  • @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

  • @kushagra4379
    @kushagra4379 4 ปีที่แล้ว

    Can 1 Esp32 be connected more than one esp32 for example, one esp32 connected to 6 esp32?

  • @AnshumanFauzdar
    @AnshumanFauzdar 4 ปีที่แล้ว +1

    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?

  • @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

  • @luisurielsanchezlopez9019
    @luisurielsanchezlopez9019 4 ปีที่แล้ว

    hello, does the code in upycraft have it?

  • @JM_Tushe
    @JM_Tushe 2 ปีที่แล้ว

    Is it possible to use micropython in one and Arduino in the other?

  • @user-tn8ps8ww1i
    @user-tn8ps8ww1i ปีที่แล้ว

    How can I send control commands between two chip?

  • @zeiadahmedmadbouly8866
    @zeiadahmedmadbouly8866 11 หลายเดือนก่อน

    how can i instead of sending the sensor reading send a potentiometer's reading

  • @goodfriendza
    @goodfriendza 3 ปีที่แล้ว

    Can you help me on how to press one button on esp32 so that another esp32 light will turn on? Please.

  • @makerun6927
    @makerun6927 4 ปีที่แล้ว

    very nice

  • @raeesjamadar199
    @raeesjamadar199 4 ปีที่แล้ว

    Can I send bme data to nextion display

  • @yabesh6742
    @yabesh6742 4 ปีที่แล้ว

    How much distance it transmits data to server

  • @reneeberty
    @reneeberty 5 หลายเดือนก่อน

    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!

  • @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.

  • @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.

  • @joseantoniotorreslima3068
    @joseantoniotorreslima3068 3 ปีที่แล้ว

    Excuse me you can make that 8266 as server and client at the same time , thank you

  • @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

  • @jb9282
    @jb9282 4 ปีที่แล้ว

    Abo get ! 👍🙋🏼‍♂️

  • @hariprast85
    @hariprast85 4 ปีที่แล้ว

    master can would u make a tutorial about esp32cam telegram bot

  • @theo_iss
    @theo_iss 3 ปีที่แล้ว

    Is it possible to do it for esp8266 ?

  • @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

  • @RajaSingh-hs2tb
    @RajaSingh-hs2tb ปีที่แล้ว

    How to send or receive digital data

  • @therealpepeu
    @therealpepeu 2 ปีที่แล้ว

    Is it possible to connect 10 clients to 1 server without any hiccups?

  • @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....

  • @scientificsound
    @scientificsound 4 ปีที่แล้ว

    You say keep the two boards "relatively close." About how far away can they be and still communicate? Thanks!

    • @RuiSantosdotme
      @RuiSantosdotme  4 ปีที่แล้ว +1

      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

    • @scientificsound
      @scientificsound 4 ปีที่แล้ว

      @@RuiSantosdotme good to know. Thanks for the quick reply!

  • @shashikantabiswal7911
    @shashikantabiswal7911 2 ปีที่แล้ว

    How to Replace BME280 TO AMT1001 Temperature Sensor.and what code.