WiFi Connection Manager using ESP-IDF framework?

vtrix_
Posts: 7
Joined: Fri Jun 23, 2017 12:31 pm

WiFi Connection Manager using ESP-IDF framework?

Postby vtrix_ » Fri Jun 23, 2017 12:36 pm

Is there any source code similar to the WiFi Manager https://github.com/tzapu/WiFiManager for esp32 using the IDF framework? I want esp32 to start as Access Point, connect to esp32 using any browser and sent the credentials that esp uses to connect to WiFi network. Thank you!

User avatar
kolban
Posts: 1683
Joined: Mon Nov 16, 2015 4:43 pm
Location: Texas, USA

Re: WiFi Connection Manager using ESP-IDF framework?

Postby kolban » Mon Jun 26, 2017 10:31 pm

Howdy,
Might this be something of use?

https://github.com/nkolban/esp32-snippe ... g/bootwifi
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32

vtrix_
Posts: 7
Joined: Fri Jun 23, 2017 12:31 pm

Re: WiFi Connection Manager using ESP-IDF framework?

Postby vtrix_ » Fri Jun 30, 2017 4:19 pm

Thank you Colban for your reply. How can I compile mongoose because there is no "mongoose.h" file in your repository.

vtrix_
Posts: 7
Joined: Fri Jun 23, 2017 12:31 pm

Re: WiFi Connection Manager using ESP-IDF framework?

Postby vtrix_ » Tue Jul 04, 2017 10:06 am

kolban wrote:Howdy,
Might this be something of use?

https://github.com/nkolban/esp32-snippe ... g/bootwifi
Hi Kolban, can you please explain to me why there is no "app_main()" in your source code?

User avatar
kolban
Posts: 1683
Joined: Mon Nov 16, 2015 4:43 pm
Location: Texas, USA

Re: WiFi Connection Manager using ESP-IDF framework?

Postby kolban » Tue Jul 04, 2017 3:05 pm

Howdy,
These fragments are meant to be "library code" meaning that they can be compiled and linked with your own application to increase/enhance the available functions. The inclusion of a "main()" function wouldn't thus make sense. That would make them applications in their own right.
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32

User avatar
kolban
Posts: 1683
Joined: Mon Nov 16, 2015 4:43 pm
Location: Texas, USA

Re: WiFi Connection Manager using ESP-IDF framework?

Postby kolban » Tue Jul 04, 2017 3:08 pm

The lack of "Mongoose.h" is deliberate. The thinking is that Mongoose is its own project/solution. Mongoose is a pre-req for this part of the code. Rather than even consider some kind of "bundling" of Mongoose in this code, the thought is that Mongoose becomes a "pre-req" for this code's operation. In addition, as Mongoose is enhanced and bug fixed, there won't be any form of using an older version by accident.

In addition, Mongoose is licensed code. Meaning that if one wants to use it in certain situations, one is required to pay the authors a license. I sure didn't want to confuse the story by including a version of Mongoose that may then have "leaked" into a production solution without the developers of the ESP32 solution explicitly working with the Mongoose owners to ensure appropriate licenses were paid.
Last edited by kolban on Thu Jul 06, 2017 4:19 pm, edited 1 time in total.
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32

vtrix_
Posts: 7
Joined: Fri Jun 23, 2017 12:31 pm

Re: WiFi Connection Manager using ESP-IDF framework?

Postby vtrix_ » Thu Jul 06, 2017 2:43 pm

kolban wrote:The lack of "Mongoose.h" is deliberate. The thinking is that Mongoose is its own project/solution. Mongoose is a pre-req for this part of the code. Rather than even consider some kind of "bundling" of Mongoose in this code, the thought is that Mongoose becomes a "pre-req" for this code's operation. In addition, as Mongoose is enhanced and bug fixed, there won't be any form of using a later version.

In addition, Mongoose is licensed code. Meaning that if one wants to use it in certain situations, one is required to pay the authors a license. I sure didn't want to confuse the story by including a version of Mongoose that may then have "leaked" into a production solution without the developers of the ESP32 solution explicitly working with the Mongoose owners to ensure appropriate licenses were paid.
Thank you for the clarification!

Dean Greenhough
Posts: 4
Joined: Wed Mar 28, 2018 9:44 pm

Re: WiFi Connection Manager using ESP-IDF framework?

Postby Dean Greenhough » Sat Apr 07, 2018 1:30 pm

Howdy Mr Kolban

Would you mind explaining how we use your snippets within our sketches i.e bootwifi

I am a novice and just migrating over to the ESP32, your work has been a real help and I thank you for all you do for the community

Many thanks

User avatar
kolban
Posts: 1683
Joined: Mon Nov 16, 2015 4:43 pm
Location: Texas, USA

Re: WiFi Connection Manager using ESP-IDF framework?

Postby kolban » Sun Apr 08, 2018 3:23 pm

Howdy Dean and welcome to the world of ESP32. The ESP32 is a rich and, by necessity, complex environment ... when programming directly. You didn't mention whether or not you have a background in software and electronics? The snippets that are found in my github repository were written as I experimented with functions so that I would have them for easy future reference. They were shared publicly in case they might be of value to others and so that others (should they choose) can themselves enhance and fix them.

Unfortunately time for all of us is limited. I have not spent a whole lot of time polishing them for novice consumption. My advice is either to stick in the Arduino world (ESP32 has an Arduino shaped environment on top of it). If you want to use the ESP32, then understand that there are a set of APIs called the ESP-IDF that can be studied here:

http://esp-idf.readthedocs.io/en/latest/

I also make available a book of notes that I have put together over the years. While they don't specifically address the snippets, they do give some additional background.

As your knowledge increases, if there are deeper mysteries that I can assist with, I'll try and help.
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32

Dean Greenhough
Posts: 4
Joined: Wed Mar 28, 2018 9:44 pm

Re: WiFi Connection Manager using ESP-IDF framework?

Postby Dean Greenhough » Mon Apr 09, 2018 6:20 pm

Howdy Mr Kolban

Thank you for your reply and comments....noted and yes I am working through your book.

My background is construction, I'm a qualified Domestic electrician, Gas Engineer and carpenter for my sins. I entered the world of the ESP8266 after a fellow Julian Ilett (youTube channel) basically pointed out that if you can switch and LED on/off, you can switch anything! Hmmm, well that caught my imagination. My day job means I'm fitting black boxes that do things and realised that I had no idea how they worked or importantly why they failed.

So began my journey....electronics and electrics can't be that dissimilar, can they? afterall they use Ohms Law! Big mistake on my part of course! I have basically taught myself programming through the Arduino IDE and lots and lots of trying every possible combination until it works. I have lots of real world experience and now I have acquired enough of a broad knowledge, decided 3 months ago (helped by the impressive Mr Andreas Spiess YouTuber's videos) to delve deeper into the ESP32 as I hope this will be a good bet going into the future. Currently building a water softener sensor with ePaper display, barebones esp32 for low power consumption and almost there. I hope to commercialise it.

So to answer your question, I don't have a background in either! Somehow I have clawed my way to a level of understanding, but realise there is lots of gaps in my knowledge missing. It is thanks to people like yourself that I am able to stand on the shoulders of giants, which gives me enough of a glimpse to carry on.

I do know this is a lonely and at times thankless task at times, but that just drives me on to find people with the answers.

Who is online

Users browsing this forum: MicroController and 125 guests