WebSockets Explained: Real-Time Communication with ESP8266

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 เม.ย. 2024
  • In this tutorial, we explore the power of WebSockets and their application in real-time data communication. Learn how to overcome the inefficiency of traditional polling with this innovative technology, introduced in 2008. We'll dive into a hands-on example using a Wemos D1 Mini (ESP8266 microcontroller), build a real-time data monitoring setup, and understand how WebSockets work both on the server and client-side. Whether you're looking to improve web page updates or want to understand how to push data immediately from the server to the browser, this video will guide you through it. We also delve into various WebSocket libraries, events, and their flexibility in handling different data formats. Watch now and take the first step towards a more efficient and responsive web experience.
    Shopping for the featured ESP8266 board?
    ==================================
    ■ geni.us/wemos1min (Amazon)
    ■ s.click.aliexpress.com/e/_Af36zD (AliExpress)
    CODE
    ==================================
    Sample code file - gitlab.com/MrDIYca/code-sampl...
    Music: www.bensound.com
  • วิทยาศาสตร์และเทคโนโลยี

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

  • @javierCi
    @javierCi 2 ปีที่แล้ว +1

    Great explanation and code to show newby people how to communicate to every element in a webpage

  • @PalestinianMan
    @PalestinianMan 5 หลายเดือนก่อน +1

    That worked fantastically. Thank you

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

    Fantastic video and code example. This made my day, thank you for sharing your knowledge. Everything worked on the first compile and upload and it was something I was trying to understand on the 8266.

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

      Glad it helped!

  • @kharumonsongrit6177
    @kharumonsongrit6177 7 หลายเดือนก่อน

    Thank you so much for clip and information

  • @josezambrano3105
    @josezambrano3105 2 ปีที่แล้ว +1

    Really good, one of the best lesson I have seen. Really greatfull

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

      Glad to hear that!

  • @ruenjou
    @ruenjou 11 วันที่ผ่านมา

    Yes it works. Thanks.

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

    thank you so much ❤👏👏👏

  • @sumukha-infotech
    @sumukha-infotech ปีที่แล้ว +1

    Thank you so much the video , hooe same concept works for Esp32 board too

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

    Good explanation.

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

    can you explain how did you connect potentiometer to wemos d1 mini?

  • @md.mainuddin8211
    @md.mainuddin8211 9 หลายเดือนก่อน

    Thanks, man ❤

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

    Good job

  • @prateekmahajan1929
    @prateekmahajan1929 2 ปีที่แล้ว +1

    Awesome

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

    Your video content that information what I'm looking for, however I would like to ask about a detail. I hope my theory is right and please correct me if I'm wrong. Well, I'd like to apply esp8266 boards as WebSockets clients (temperatute and humidity sensor) and I gonna have a simple linux server what is at certain time ask the clients about update. Because the clients would be consuming as low power as possible in this case the client-server connection isn't constant it's only builtd up the connection if the server ask the client. In other words, is it working the WebSockets in this situation?

  • @nitsanbh
    @nitsanbh 7 หลายเดือนก่อน +1

    I had no idea Arduino was powerful enough to serve http requests

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

    Thank you - beautifully clean video and GREAT Clarity.
    ( Have you looked into the newer ESPASyncWebServer ? ) - I have been trying to get this to work - as it has advantages over the ESP8266WebServer )
    Thanks again ....

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

      I haven't but it looks great

  • @jorgeholguin2009
    @jorgeholguin2009 8 หลายเดือนก่อน +1

    Great video thanks.
    I only have a ESP32.
    Will the posted code work with it?

    • @bichop4314
      @bichop4314 7 หลายเดือนก่อน

      the same concept but you should change the server library to esp32

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

    great!

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

    Can you do it with NodeJs and mongoDB? so the connection is global...thanks...

  • @HedroomMax
    @HedroomMax 3 หลายเดือนก่อน

    Great and yet simple video, thanks!
    Where is your accent form? Sounds german :)

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

    liked, subscribed

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

    Do you have any NODE JS code for web application ?

  • @mrafayshams3089
    @mrafayshams3089 2 ปีที่แล้ว +1

    Great Video! How can we run this over the internet rather than local ip address?

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

      You would need a router that supports port forwarding and port remapping, then you would be able to use your public ip address rather than the local ip.

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

    thank you

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

      You're welcome

  • @themisk.3843
    @themisk.3843 2 ปีที่แล้ว

    do you have any tutorial for mqtt over websocket? thanks in advance

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

      No, sorry.

  • @devilvortex1
    @devilvortex1 6 หลายเดือนก่อน

    someone know the font name in sharing source code?

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

    can it be said as iot project?

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

      Everything is IoT nowadays :)

  • @alexrossouw7702
    @alexrossouw7702 2 ปีที่แล้ว +1

    I'd go get drunk that Bar di Re Arduino and chat about projects all night long

  • @TuanNguyen-pj2lv
    @TuanNguyen-pj2lv ปีที่แล้ว

    where can i contact for you ,i have some problem and could you help me pls>>>?/...

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

    With micropython, pls