For my current project I am using wifimulti as shown in the Arduino IDE examples. With the exception that I moved it to void setupwifi() and call it from the setup().
I am using webserver to serve up a page that I enter parameters. For 8 of those parameters, I’d like to enter the SSID and PW for use by the esp to connect to WiFi in wifimulti.
In order to achieve this, I want the esp to be in softap mode first. Then, once credentials are entered, I want the softap-STA mode to start (so both modes are always on).
Wifimulti seems to run in softap-sta mode once connected to WiFi. Can I start the softap before moving to softap-sta?
Yes. I am reinventing the wifimanager wheel, for the most part. The two main differences I am trying to achieve is to always have the “admin page” (the captive portal in wifimanager) available. And, I want to have multiple WiFi networks to choose from as in Wifimulti.
Any suggestions would be greatly appreciated. I’m thinking I need to first start the softap in setup() then invoke the wifimulti as part of handling the server webpage?? But, if I do this I want the esp to go right back into softap-sta mode if it has been configured and the loses power. On power up, I want it to be in softap-sta mode. Maybe by using if statements to examine the char where I am storing SSID for wifimulti?
Thank you.