WiFiManager with ESP32 - Stop Hard-coding WiFi Credentials!

แชร์
ฝัง
  • เผยแพร่เมื่อ 10 พ.ค. 2024
  • Stop hard-coding your WiFi connection information in your ESP32 Sketches - use WiFi Manager instead!
    Article with code samples: dronebotworkshop.com/wifimanager
    More articles and tutorials: dronebotworkshop.com
    Join the conversation on the forum: forum.dronebotworkshop.com
    Subscribe to the newsletter and stay in touch: dronebotworkshop.com/subscribe/
    The ESP32 is an amazing microcontroller. It’s a powerful 32-bit processor with multiple I/O ports. 12-bit A/D converters and a variety of interfaces. But the one thing that makes it stand out above the crowd is its built-in WiFi and Bluetooth capabilities.
    When we experiment with the ESP32 WiFi we generally just hard-code our WiFi login information directly in our sketches. Some people use an external file, but it is just another way to accomplish the same thing.
    In both cases, our code is compiled and loaded onto our ESP32, so the ESP32 is locked into using that WiFi SSID and password. If you want to change these parameters to use your device on another WiFi network, then you need to change your code and recompile.
    This isn’t a great arrangement, especially if you want to move your creation to another network, share it with a friend or even create a commercial product.
    Enter WiFiManager. This great library lets you avoid hard-coding your WiFi parameters. Instead, you use a web-based interface to configure your SSID and password, so you can use your ESP32 project anywhere.
    You can also add additional parameters of your own, making WiFiManager an ideal solution for both private and commercial designs.
    Today I’ll show you how to use WiFiManager with the ESP32 (it can also be used with the ESP8266).
    Here is the Table of Contents for today's video:
    00:00 - Introduction
    03:09 - WiFiManager
    11:45 - WiFiManager Installation
    13:29 - Using WiFiManager
    18:05 - WiFiManager On-Demand
    23:59 - Modifying Sketches to use WiFiManager
    30:07 - Adding Custom Parameters
    36:42 - JSON & SPIFFS
    39:40 - Saving Parameter Data
    53:04 - Conclusion
    You’ll find WiFiManager is easy to use, and that you can quickly adapt your existing sketches to eliminate the hard-coded SSID and password. Give it a try and let me know what you think.
    Hope you enjoy the video!
    Bill
  • แนวปฏิบัติและการใช้ชีวิต

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

  • @Dronebotworkshop
    @Dronebotworkshop  3 หลายเดือนก่อน +4

    Hi everyone - It's come to my attention that there has been someone masquerading as myself, responding to some comments here with a link to a Telegram chat to win a prize from me. THIS IS A SCAM, I am not holding a contest, nor do I have a Telegram account. PLEASE DO NOT RESPOND TO THESE MESSAGES!!
    It's happening on a lot of my videos, I'm taking steps to remove them manually, but as I have 162 videos, it will take some time. If you do run across a suspicious comment, I would appreciate you letting me know at info@dronebotworkshop.com.
    Thanks!
    Bill (The real one!)

    • @arireka3927
      @arireka3927 2 หลายเดือนก่อน

      1:20

  • @srinjayshrinivasshankar3811
    @srinjayshrinivasshankar3811 2 ปีที่แล้ว +214

    These are seriously the most well-explained and detailed videos in youtube about electronics and programming.

    • @gepetotube
      @gepetotube 2 ปีที่แล้ว +5

      True 100%

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

      My goto when I want to understand...

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

      He makes really helpful slides and graphics. Trainer godmode unlocked.

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

      Link con tutorial para actualizar portal cautivo---------------------> th-cam.com/video/nb4AvYcy2G8/w-d-xo.html

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

      "Our old friend the ESP32" 😂

  • @anthonycalia1317
    @anthonycalia1317 2 ปีที่แล้ว +24

    You have a wonderful talent for being able to simplify complex topics and present them in a way most people can comprehend. Nice work as ususal.

  • @christopherleadholm6677
    @christopherleadholm6677 2 ปีที่แล้ว +7

    Nice addition to your videos! I see you've been churning them out quite frequently, lately. Good work! I have been going back through some of your older videos, the one for the HC-SR501 PIR sensor, specifically, just yesterday!
    Great stuff! Excellent work in the Workshop!

  • @sidneydrouet1323
    @sidneydrouet1323 11 หลายเดือนก่อน +2

    Hi Bill, I'm a big fan of your videos, not only for the clear, organized, detailed and rich graphic information, but for your generosity in sharing your knowledge.... Big thanks 👍

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

    I like your ESP32 based videos a lot. I recently did a project where I needed far more performance than Arduino could provide. I tried Seeduino XAIO, Artemis, and esp32. Settled on the ESP32 and I'm going to continue using them for projects in place of Arduino. Thank you!

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

    Thank you so much, Bill! The tutorial is concise and clear, you are a wonderful teacher! This is exactly what I've been looking for! Thank you again!

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

    Such a gentle voice to explain complex topic, Amazing

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

    You are really good. You touched all the possible points needed when provisioning Wi-Fi and parameters instead of hardcoding. Many thanks, will use this on my IOT chicken coop!

  • @MiniStockpot
    @MiniStockpot 2 ปีที่แล้ว +7

    Your videos are just outstanding - you don't leave anything unexplained and take the normal approach where people assume a certain level of knowledge (and where you do that you're most always link to a video you've already made showing how that bit works!) which can really easily alienate beginners. Your instructions are so clear that I can actually watch your videos on two-and-a-half times speed and still follow them easily - thanks for making such wonderful videos and keep up the good work!! 😃

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

      Link con tutorial para actualizar portal cautivo---------------------> th-cam.com/video/nb4AvYcy2G8/w-d-xo.html

  • @jamess.9930
    @jamess.9930 2 ปีที่แล้ว +28

    I literally found this knowledgeable gentleman's channel a few days ago. This channel is perfect for everyone with a beginner/basic sense of electronics. Very well spoken and highly recommend this.

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

      I'm the kind of person who's intersted in everything i like knowledge makes me feel invincible
      And you seem to have an interest in electronic do you think it will be of good use !?

    • @jamess.9930
      @jamess.9930 2 ปีที่แล้ว

      @@haniDopeman yes I do

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

      @@jamess.9930 forgive me I was thinking out loud to write such a low tier question.

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

      Link con tutorial para actualizar portal cautivo---------------------> th-cam.com/video/nb4AvYcy2G8/w-d-xo.html

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

    I've been watching your videos for a while, and I've learned a lot from them.
    Your personality is also nice to see and hear.
    The intro makes me laugh every time, nice to be able to follow your videos and learn something from them.
    thank you

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

    Another great video, Bill. Thanks. I had my ESP on my network in no time. I think using this library will be kind of a game changer to make the ESP much more useful in network applications. Might have to incorporate it into my 6wd robot with a small LCD display to report the same info the sample sketches show on the serial port.

  • @EvileDik
    @EvileDik 2 ปีที่แล้ว +8

    Amazing work, as usual Bill!

  • @DigitalLandscape
    @DigitalLandscape 2 ปีที่แล้ว +7

    I'm working working with the WifiManager for years on my ESP8266 projects, but because of your workshop video, I've learned some stuff again. So thanks a lot for that. Regarding the ESP32, there is a smaller version available, I'm using for my projects. It's the WEMOS D1 mini ESP32. It is small but powerfull.
    Greetings from the rhine-main-region, germany
    Alex

  • @henryrambeau2460
    @henryrambeau2460 9 หลายเดือนก่อน

    Thank you very much for teaching me a lot. I appreciate it every time you come out and you and you shop and show everybody how to do this especially somebody like me that doesn’t know what he’s doing. I know a little bit about computers but this is new to me. Thank you very much.

  • @sajanvraj
    @sajanvraj ปีที่แล้ว +18

    Thanks a lot for your detailed videos which cover fundamentals all the way to advanced concepts for each topic. I am in awe of the efforts you put in for such high quality content! You are the BEST in this training space!

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

      That's very nice of you to say Sajan, glad you enjoy my content!

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

    Thank you for making this. I'm trying to learn code and there's a lot of choices in tutorials, but not many in native clearly spoken English. Your shop is an American Dream it looks to be. Most of the video was exactly what I needed so I'll be back for more. Where I got lost and your explanations sped up was when it came to the JSON and SPIFFS file and config setup and saving. However, I learned much of what I needed for a basic temp sensor I'm building several of. I've used the WifiManager when I got into all of this building many WLED controllers, but it was all prebuilt and finally I hit the button in my life where it was time to get down to understaniding and compiling my own code for projects I build for work and for fun. I'm going to see what else you have to offer on here and wondered if you use any other platforms to..... well basically show off your skills with a almost complete workshop like yours. Thanks again and hope to read a reply soon as this video is 1.5 years old now. So....What's new?

  • @anonymous.youtuber
    @anonymous.youtuber 2 ปีที่แล้ว +8

    Very concise, very well explained, thank you so much for sharing 🙏🏻

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

    Hi, I finished coding a ESP-32 One Wire Reader and realized the WiFi credentials were hard coded. This was the exact video I was looking for. Excellent job in explaining the uses of WiFi Manager.

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

    Marvellous full of clarity like all your videos. Helps me greatly as I'm getting on a bit and it helps remind me how to do this stuff. you're a real star ThankYou.

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

    Thanks! Love your videos. Very much appreciate the work that you put into these videos. They are FANTASTIC! I love that you take the time to explain the “why” details.

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

      Thank you so much, that is very kind of you!

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

    Excellent rundown, you covered all the basics (and a bit more) so that I can get going 😊
    Was hoping to learn some about the OTA update feature but I guess that would have made the video too long.

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

    Absolutely love your videos. They've helped me on numerous occasions. Very thorough and well made. Thank you for all you do.

  • @timarcher52
    @timarcher52 9 หลายเดือนก่อน

    This was a great video, helped me with exactly what I needed. Thank you!

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

    THANK YOU SO MUCH! Your tutorials are always in depth, on point and accurate! THANK YOU!

  • @alexxustube
    @alexxustube 9 หลายเดือนก่อน

    So helpful! Thanks, Bill! 👍👍👍

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

    Thanks for all your work. I've been following you for a while - your videos and topics are the best.

  • @ed.puckett
    @ed.puckett 2 ปีที่แล้ว +3

    Thank you for another inspiring video! I wanted to mention that Arduino IDE versions before 1.8.19 have the log4j vulnerability.

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

    Well done and timely for some projects I've started. Thanks!

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

    Many thanks for the basics. It very helps in many projects. Especially for the step from arduino to ESP with all the possibilities of WLAN, BT and all the others. The presentation and the kind of explaining the topics is very clear , not too fast and very understandable. In many other YT-Videos you lost time with unnecessary doings like showing the wiring (one wire after anaother) of a circuit and missing absolutly important background knowledge. Keep it forward.

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

    I'm glad you're here 😁👍I glossed right over this. awesome video!

  • @centrodoreforco-aulasderef7743
    @centrodoreforco-aulasderef7743 ปีที่แล้ว +1

    Nobody explain better tech subjects over the youtube than this guy!

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

    Thanks for highlighting WifiManager. That was something that I've been looking for!

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

    This is an excellent tutorial. I learned a lot. Thank you very much.

  • @60pluscrazy
    @60pluscrazy 2 ปีที่แล้ว

    Your videos are as neat as your workbench. Well done 👌

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

    Good stuff! Thanks Bill! I can't wait to try this!

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

    Thanks for this useful info 👍
    This setup approach make sense as people have been asked to program there router for over a decade now.

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

    Great info! Thanks a lot!

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

    Literally just answered a question I posted on your other video :) excellent material

  • @BinuMadhav.NetWork
    @BinuMadhav.NetWork 11 หลายเดือนก่อน +1

    Great Article, well narated! Full of small tips which others hide! Hats off you Sir!!

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

    Thank you for clearly explaining things.
    I love your videos.

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

    Great video! I was having a hard time understanding how it works, but I get it now. Thanks for the detailed explanation. A real quality tutorial. I'm going to have to go back and check out your other stuff. Thank you so much.

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

      Link con tutorial para actualizar portal cautivo---------------------> th-cam.com/video/nb4AvYcy2G8/w-d-xo.html

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

    This is one of the best tutorial videos I have ever watched.

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

    Thank you sir. It was explained in a simple and clear manner.
    Lot of my doubts are cleared now

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

    Thank you Bill as always informative video

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

    I love the way you explain things, thanks a lot sir.

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

    This channel is the best channel to understand everything about what you are looking for in detail so why I really like that channel for this. Thanks a lot for precious explanations. Kind regards...

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

    I'm always a day late and a dollar short. Where was this video last week when I was building my WIFI status monitor out in my garage. Well, at least I know how to solve a few problems that I had. Thanks for the great video!

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

    One of your best videos! Thank you so much!

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

    Just what I was looking for, thanks!

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

    One of your more fantastic videos, thank you.

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

    It's like you're psychic and basing your video ideas off my thoughts. Last week when I was quickly programming an esp32 I thought to myself, "I really shouldn't hardcode this sh*t". Bam, 1 week later you make me a guide.

    • @LDBuggy2
      @LDBuggy2 2 หลายเดือนก่อน

      Just experienced the psychic moment at 38:00 😅

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

    I tried the sample with wifimanager on my project and to my surprise everything works i got the connection to my wifi and now i don't have to wait too long to connect my ESP32 with my project, This is the most educational video i found on the esp32, Keep sending more videos like that i learn a lot drom it
    Keep the good work
    Thanks a lot!
    Even after a year of publishing...

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

    Exactly what I was looking for.

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

    What a brilliant explanation. Kudos

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

    Thank so much for your sharing!

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

    Very informative and well explained, thank you.

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

    Nice!! Perfect explanation!
    Thanks for that.

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

    As usual, such a great video. Thank you. I will sign up for the newsletter as we as buy some swag. Thank you, again.

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

    Flawless. Thank you!

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

    Fantastic, thank you for sharing.

  • @re.liable
    @re.liable 2 ปีที่แล้ว +8

    Just discovered about ESP32 and ESP8266 lately. They're such amazing devices. I don't think I'll be seeing Arduino Nanos again anytime soon lmao

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

    Thank you so much for the great lesson.

  • @taj-ulislam6902
    @taj-ulislam6902 6 หลายเดือนก่อน

    Exceptional video and presentation - best online video by a wide margin. Very useful information prepared with great care. Thanks. Keep it up. Truly remarkable!

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

    This is the best instruction for wifimanager.

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

    Great video as always! Muchas gracias!

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

    Wow, what a well done video. This saves me days of research

  • @ytdemori
    @ytdemori 2 ปีที่แล้ว +9

    Very clear explanation! May ask you which is the software that you use to draw so awesome and clear schematics?

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

    I am desperate integrating the code for the switch to reset the credentials into the webcam code. An explanation similar to your example with WiFi manager would be great. This works great

  • @jean-paulzimmermann6366
    @jean-paulzimmermann6366 6 หลายเดือนก่อน

    Thanks a lot, this is very helpful and very well explained!

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

    great info thanks for being so on point.

  • @muhammadbilal2000
    @muhammadbilal2000 2 ปีที่แล้ว +5

    Well explained Bill, thanks. Make a video on Arduino MKR WiFi 1010, too. That is a bit challenging.

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

    I didn't know this exist.
    Thanks, this will be really useful.

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

    cool libraries! Thank you for the work!

  • @drdave611
    @drdave611 2 ปีที่แล้ว +5

    The timeliness of this information could not be better! I've been developing sensor uses (VOC, CO2, particulates, T, P, %RH, etc.) using the 8266 for a couple of years. I'm ready to begin deploying to other locations with other WiFi networks and have been struggling with how to find a way to do this. I knew it must exist, but was not aware of WiFiManager.
    This video makes it seem very feasible now... THANKS!!

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

      Link con tutorial para actualizar portal cautivo---------------------> th-cam.com/video/nb4AvYcy2G8/w-d-xo.html

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

    Excellent explanations!

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

    Hello from Brazil... Great contribution... Thanks a lot...

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

    Learned something, thank you!

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

    With the Raspberry Pi Zero 2 W's being next to impossible to get for a project I am doing, these modules could meet my need. A wireless module on a board like this. Incredible.

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

      Link con tutorial para actualizar portal cautivo---------------------> th-cam.com/video/nb4AvYcy2G8/w-d-xo.html

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

    Amazing tutorial!

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

    Hi. Great videos. I have just recently found your channel. Eventhough I have been in electronics, computers/microcontrollers, and ham radio for years, I like your channel and your ability to explain each step very well it reminds me of writing in assembler.
    Will all of this work on the android ArduinoDroid development app?

  • @Savage.735
    @Savage.735 2 ปีที่แล้ว +2

    Man that was awesome love it nice 👍

  • @rhandynastor4866
    @rhandynastor4866 7 วันที่ผ่านมา

    very informative as always.

  • @ahmetsaidoguz1434
    @ahmetsaidoguz1434 3 วันที่ผ่านมา

    It was extremely useful tutorial.Thanks a lot🔌💻

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

    thank you i really need this info and information really thank you :D

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

    Chapeau! super clear info!!! thanks

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

    Thank you so much for the very detailed video of WiFiManager. Please make a video of sketch update using wifi.

  • @Mr.izukuMidoriya
    @Mr.izukuMidoriya ปีที่แล้ว

    Thanks a lot thanks I needed it I was making a school project

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

    Thank you so much! I was looking for something like this, and didn't know how to do it.
    Be sure to use an eight digit password if you decide to customize the sketch or it won't work.

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

    You are an absolute crack!!
    Thank you very much!!

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

    Excellent stuff! Cheers.

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

    Amazing work 👏👏

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

    Thisa is excellent.. thank you!

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

    Perfect! 👏👏👏

  • @SamirMishra6174
    @SamirMishra6174 9 หลายเดือนก่อน

    You are Guru Dev 🙏

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

    the thing i was looking for! :)

  • @VictorBorah-Invincible
    @VictorBorah-Invincible ปีที่แล้ว

    Wow, that was an excellent tutorial Thanks for the tutorial!

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

      Thank you, much appreciated! Glad you enjoyed the tutorial.

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

    Brilliant !

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

    Excelent explanation, thanx