WiFiManager with ESP32 - Stop Hard-coding WiFi Credentials!

  Переглядів 563,220

DroneBot Workshop

DroneBot Workshop

День тому

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

КОМЕНТАРІ: 344
@Dronebotworkshop
@Dronebotworkshop 3 місяці тому
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 Місяць тому
1:20
@srinjayshrinivasshankar3811
@srinjayshrinivasshankar3811 2 роки тому
These are seriously the most well-explained and detailed videos in youtube about electronics and programming.
@gepetotube
@gepetotube 2 роки тому
True 100%
@michaeldiamond2269
@michaeldiamond2269 2 роки тому
My goto when I want to understand...
@Alkatross
@Alkatross 2 роки тому
He makes really helpful slides and graphics. Trainer godmode unlocked.
@exdiinnovandoporti
@exdiinnovandoporti Рік тому
Link con tutorial para actualizar portal cautivo---------------------> ukposts.info/have/v-deo/ppJldayQmq9jqGw.html
@simonmasters3295
@simonmasters3295 5 місяців тому
"Our old friend the ESP32" 😂
@christopherleadholm6677
@christopherleadholm6677 2 роки тому
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!
@anthonycalia1317
@anthonycalia1317 2 роки тому
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.
@sidneydrouet1323
@sidneydrouet1323 11 місяців тому
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 👍
@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
@jamess.9930
@jamess.9930 2 роки тому
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 роки тому
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---------------------> ukposts.info/have/v-deo/ppJldayQmq9jqGw.html
@TanvirAhmed101
@TanvirAhmed101 8 місяців тому
Such a gentle voice to explain complex topic, Amazing
@KG4JYS
@KG4JYS 2 роки тому
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 Рік тому
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!
@MiniStockpot
@MiniStockpot 2 роки тому
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---------------------> ukposts.info/have/v-deo/ppJldayQmq9jqGw.html
@DigitalLandscape
@DigitalLandscape 2 роки тому
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
@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.
@EvileDik
@EvileDik 2 роки тому
Amazing work, as usual Bill!
@whitneydesignlabs8738
@whitneydesignlabs8738 2 роки тому
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.
@sajanvraj
@sajanvraj Рік тому
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 Рік тому
That's very nice of you to say Sajan, glad you enjoy my content!
@stevebrantley2637
@stevebrantley2637 Рік тому
Thanks for all your work. I've been following you for a while - your videos and topics are the best.
@Dronebotworkshop
@Dronebotworkshop Рік тому
And thank YOU, Steve, much appreciated!
@deitager8400
@deitager8400 2 місяці тому
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.
@MakerFabio
@MakerFabio Рік тому
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!
@ThumpinV
@ThumpinV Рік тому
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!
@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.
@andrewhollenbach7330
@andrewhollenbach7330 2 роки тому
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 😅
@ToniCorvera
@ToniCorvera Рік тому
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.
@Belquer
@Belquer Рік тому
THANK YOU SO MUCH! Your tutorials are always in depth, on point and accurate! THANK YOU!
@centrodoreforco-aulasderef7743
@centrodoreforco-aulasderef7743 Рік тому
Nobody explain better tech subjects over the youtube than this guy!
@henryrambeau2460
@henryrambeau2460 8 місяців тому
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.
@60pluscrazy
@60pluscrazy 2 роки тому
Your videos are as neat as your workbench. Well done 👌
@ed.puckett
@ed.puckett 2 роки тому
Thank you for another inspiring video! I wanted to mention that Arduino IDE versions before 1.8.19 have the log4j vulnerability.
@anonymous.youtuber
@anonymous.youtuber 2 роки тому
Very concise, very well explained, thank you so much for sharing 🙏🏻
@MrBubba256
@MrBubba256 2 роки тому
Well done and timely for some projects I've started. Thanks!
@wishicouldarduino8880
@wishicouldarduino8880 Рік тому
I'm glad you're here 😁👍I glossed right over this. awesome video!
@paulmillard1130
@paulmillard1130 2 роки тому
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.
@TypicalRiderPH
@TypicalRiderPH Рік тому
This is one of the best tutorial videos I have ever watched.
@re.liable
@re.liable 2 роки тому
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
@dannydheaton2765
@dannydheaton2765 8 місяців тому
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?
@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...
@dennisjohnson1893
@dennisjohnson1893 2 роки тому
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!
@edpenn9355
@edpenn9355 Рік тому
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---------------------> ukposts.info/have/v-deo/ppJldayQmq9jqGw.html
@alexxustube
@alexxustube 8 місяців тому
So helpful! Thanks, Bill! 👍👍👍
@HarishPillay
@HarishPillay 2 роки тому
Thanks for highlighting WifiManager. That was something that I've been looking for!
@timarcher52
@timarcher52 8 місяців тому
This was a great video, helped me with exactly what I needed. Thank you!
@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.
@teenflon
@teenflon 2 роки тому
Literally just answered a question I posted on your other video :) excellent material
@yigitmertsevindim1669
@yigitmertsevindim1669 5 місяців тому
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...
@kevintsilvers
@kevintsilvers 10 місяців тому
Thank you for clearly explaining things. I love your videos.
@henrybecker2842
@henrybecker2842 2 роки тому
This is an excellent tutorial. I learned a lot. Thank you very much.
@marksnyder1296
@marksnyder1296 2 роки тому
Good stuff! Thanks Bill! I can't wait to try this!
@BinuMadhav.NetWork
@BinuMadhav.NetWork 10 місяців тому
Great Article, well narated! Full of small tips which others hide! Hats off you Sir!!
@Leroys_Stuff
@Leroys_Stuff 2 роки тому
Thank you Bill as always informative video
@badvideocamera
@badvideocamera 6 місяців тому
Great info! Thanks a lot!
@vinaymama
@vinaymama 2 роки тому
Thank you sir. It was explained in a simple and clear manner. Lot of my doubts are cleared now
@catchulater7483
@catchulater7483 2 роки тому
One of your more fantastic videos, thank you.
@MalluTrollen2024
@MalluTrollen2024 Рік тому
I love the way you explain things, thanks a lot sir.
@SrikantLive
@SrikantLive Рік тому
What a brilliant explanation. Kudos
@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
@stevenmcneese8173
@stevenmcneese8173 Рік тому
One of your best videos! Thank you so much!
@TisforTech
@TisforTech 2 роки тому
Just what I was looking for, thanks!
@ytdemori
@ytdemori 2 роки тому
Very clear explanation! May ask you which is the software that you use to draw so awesome and clear schematics?
@mrma281
@mrma281 Рік тому
Very informative and well explained, 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---------------------> ukposts.info/have/v-deo/ppJldayQmq9jqGw.html
@taj-ulislam6902
@taj-ulislam6902 5 місяців тому
Exceptional video and presentation - best online video by a wide margin. Very useful information prepared with great care. Thanks. Keep it up. Truly remarkable!
@DesignBuildFixReview
@DesignBuildFixReview 2 роки тому
great info thanks for being so on point.
@muhammadbilal2000
@muhammadbilal2000 2 роки тому
Well explained Bill, thanks. Make a video on Arduino MKR WiFi 1010, too. That is a bit challenging.
@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.
@thespencerowen
@thespencerowen 2 роки тому
Wow, what a well done video. This saves me days of research
@gustavopoa
@gustavopoa Рік тому
Nice!! Perfect explanation! Thanks for that.
@curtkeisler7623
@curtkeisler7623 2 роки тому
Exactly what I was looking for.
@phamvu5066
@phamvu5066 Рік тому
Thank so much for your sharing!
@BlackShadow_86
@BlackShadow_86 2 роки тому
cool libraries! Thank you for the work!
@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.
@walthermatthau9537
@walthermatthau9537 6 місяців тому
Excellent explanations!
@lionahmmed9866
@lionahmmed9866 Рік тому
Thank you so much for the great lesson.
@mrcivster
@mrcivster 2 роки тому
Thank you so much for the very detailed video of WiFiManager. Please make a video of sketch update using wifi.
@jacobframe8769
@jacobframe8769 5 місяців тому
Fantastic, thank you for sharing.
@quangthango0o
@quangthango0o 2 роки тому
Amazing tutorial!
@fjs1111
@fjs1111 2 роки тому
Learned something, thank you!
@jean-paulzimmermann6366
@jean-paulzimmermann6366 5 місяців тому
Thanks a lot, this is very helpful and very well explained!
@hugbearsx4
@hugbearsx4 2 роки тому
Flawless. Thank you!
@jamescullins2709
@jamescullins2709 2 роки тому
That is awesome! When will you have the mic working? excellent doorbell cam.
@DJCam87
@DJCam87 Рік тому
This guy is the truth! Take it from someone who has been through it all, I'm talking all the Indian students videos, German amateur enthusiasts, and random channels (are we still talking about electronics?!?!?). On a serious note, if this guy does a video on it, then it will be top 5 videos that exist so save yourself the time an just subscribe.
@grhgorhsliaphs4166
@grhgorhsliaphs4166 2 роки тому
Amazing work 👏👏
@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?
@qdzung86
@qdzung86 Рік тому
This is the best instruction for wifimanager.
@MenezesDailton
@MenezesDailton Рік тому
Hello from Brazil... Great contribution... Thanks a lot...
@Savage.735
@Savage.735 2 роки тому
Man that was awesome love it nice 👍
@ykm_online
@ykm_online Рік тому
Excellent video. One additional info .WROOM-32 version supports only 1 band 2.4Ghz in wifi ( which is good for many routers ). For dual band support the newer chip C5 version supports wifi over both 2.4 and 5GHz band. ( as read by me )
@exdiinnovandoporti
@exdiinnovandoporti Рік тому
Link con tutorial para actualizar portal cautivo---------------------> ukposts.info/have/v-deo/ppJldayQmq9jqGw.html
@drdave611
@drdave611 2 роки тому
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---------------------> ukposts.info/have/v-deo/ppJldayQmq9jqGw.html
@robertobrenes5283
@robertobrenes5283 2 роки тому
Great video as always! Muchas gracias!
@nalinux
@nalinux 2 роки тому
I didn't know this exist. Thanks, this will be really useful.
@MrSidMan
@MrSidMan 2 роки тому
Dang. Where were you in 2015? Haha 😄 thanks for the awesomeness 👌 👏 👍
@MitzpatrickFitzsimmons
@MitzpatrickFitzsimmons 2 роки тому
Thisa is excellent.. thank you!
@ethzero
@ethzero Рік тому
Excellent stuff! Cheers.
@tincho6720
@tincho6720 Рік тому
Chapeau! super clear info!!! thanks
@ad7iradio519
@ad7iradio519 2 роки тому
This is another great video. Thank you! At 30:15 you show how to enter custom parameters, which is good stuff. Is there a way to enter custom parameters, or change the custom parameters, at later time, after the WiFi parameters have been entered and the WiFi has been configured? Either via WiFi or Bluetooth?
@bapisaha3990
@bapisaha3990 Рік тому
Incredible explanation by You :) Bdw, what is the name of your screen recorder ? Because there is no icon in your Ubuntu desktop , that's why I m curious about it :)
@vectorsigma9903
@vectorsigma9903 2 роки тому
Great video! Thank you.
@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.
@JLCPCB
@JLCPCB 2 роки тому
Very cool tutorial! 😇
@bkassem1
@bkassem1 7 місяців тому
hello , I really like your channel . am wondering if you have a video concerning update ESP32 using WiFiManager
@SaludContable
@SaludContable Рік тому
Excelent explanation, thanx
ESP32-CAM MicroSD Card - Saving images with the ESP32-Cam
36:01
DroneBot Workshop
Переглядів 127 тис.
Introduction to ESP32 - Getting Started
47:57
DroneBot Workshop
Переглядів 1,5 млн
😱СНЯЛ ФИКСИКОВ НА КАМЕРУ‼️
00:35
OMG DEN
Переглядів 588 тис.
Мама и Чебурашка 🤪#shorts
00:33
INNA SERG
Переглядів 1,3 млн
ESP-NOW - Peer to Peer ESP32 Network
43:02
DroneBot Workshop
Переглядів 324 тис.
I tried the Cheapest Arduino Alternative (that Nobody heard of)
13:31
GreatScott!
Переглядів 453 тис.
Try these 16 Brilliant ESP32 projects!!!
11:18
ToP Projects Compilation
Переглядів 503 тис.
ESP32 Guide 2024 | Choosing and Using an ESP32 Board
41:06
DroneBot Workshop
Переглядів 196 тис.
Getting Started with ESP32 - Step-By-Step Tutorial
19:50
Tomasz Tarnowski
Переглядів 293 тис.
Что такое Zigbee? С чего начать умный дом?
17:05
ESP32-CAM - Guide to making YOUR first DIY Security Camera
24:55
Max Imagination
Переглядів 352 тис.
Аквапарк захваченными акулами 🦈 #shorts
0:19
Талант От Природы 🤯
0:56
MovieLuvsky
Переглядів 13 млн
MINHA IRMÃ MALVADA CONTRA O GADGET DE TREM DE DOMINÓ 😡 #ferramenta
0:40
✅️🪂🫵 Mergulhando nas Nuvens: A Emoção de um Pouso Radical!
0:12
História paraquedismo
Переглядів 4,8 млн