If you are asking a question, please follow this template:
My goal is: Developing the firmware of ESP32
My actions are: I did install mongoose os first.
The result I see is: none
My expectation & question is: [describe your expectation and your question]
I’m using ESP32-WROOM-32D.
First, I’m trying to set the WiFi(First Step) on the web ui.
I found the sample code in the github but could not build.
So I’m looking for the sample code that can set WiFi on the web ui.
If turn on the device,
user must able to connect to ESP32 and set the WiFi using web ui.(AP mode)
and also want that user can select ssid.
and then, after saving, automatically connecting to the WiFi.(STA mode)
AND when user want to change WiFi Setting,
a) user press the button
b) if then, user must able to set the WiFi again.
Please let me know the sample code.
following is the picture to work.
Don’t be sorry for being a beginner, just read the docs until you become a master.
When you say “connect”… D’you mean you need the Wi-Fi Access Point password ? It is what you set, and if you don’t set, it is the default, docs here
Libraries do have docs too, d’you mean this library ?
‘Mongoose’ with capital ‘M’, as you see in the SSID (the “name” of the network you are connecting to)
now I’m using yellow pin for reset button. so, how do I change the configration sample?
once I set “14” like following, but not working.
- ["provision", "o", {title: "Provision library settings"}]
- ["provision.btn", "o", {title: "Reset button settings"}]
- ["provision.btn.pin", "i", 14, {title: "Reset button GPIO pin"}]
- ["provision.btn.pull_up", "b", false, {title: "True if button is pulled up when inactive"}]
- ["provision.btn.hold_ms", "i", 0, {title: "Hold interval in milliseconds. -1 to disable, 0 to reset if held on boot, > 0 to reset if held at runtime for this long."}]
- ["provision.btn.inhibit_after_s", "i", 0, {title: "Disable reset button once uptime reaches this value in seconds. 0 to keep reset button always enabled."}]
- ["provision.led.pin", "i", -1, {title: "LED GPIO pin. If >= 0, LED blinking will indicate current state."}]
- ["provision.led.active_high", "b", true, {title: "True if LED is on when output is high (1)"}]
- ["provision.stable_state", "i", 3, {title: "A stable state, beyond which reset will not happen. Se to 0 to disable reset."}]
- ["provision.timeout", "i", -1, {title: "Maximum time since boot allowed to reach stable state"}]
- ["provision.max_state", "i", 0, {title: "Maximum state reached so far"}]