Closed exocode closed 4 years ago
hi, @exocode The example will start smartconfig after reboot. log is : I (300) wifi: mode : sta (cc:50:e3:81:be:78) I (350) smartconfig: SC version: V2.8.0 I (5170) wifi: ic_enable_sniffer SC_STATUS_FIND_CHANNEL
In this state, it will not connect to the wireless network connection, but wait for the ESP_touch distribution network.
If you need it to save it's credentials,ou can modify the code to start smatrconfig with a command.
Ok I understand, thank you. I suggest for consistency extending the example with the permanent store of the credentials as it is in the WPS config example. Most use cases are using permanent storage.
Thank you for your suggestion.
@exocode Thanks for reporting. Feel free to reopen if you still have the issue. Thanks.
Was this implemented or not ? The example still does not save the wifi creds.
Was this implemented or not ? The example still does not save the wifi creds.
still does not save credentials
Environment
git describe --tags
to find it): // v3.2-dev-1148-g96cd3b75cxtensa-esp32-elf-gcc --version
to find it): // xtensa-esp32-elf-gcc (crosstool-NG crosstool-ng-1.22.0-80-g6c4433a) 5.2.0Problem Description
When use the SmartConfig example, assign a network and reboot the ESP32, the credentials are not saved.
Expected Behavior
When I reboot ESP32 the saved credentials should be recalled and ESP32 should connect automatically to latest working Wifi
Actual Behavior
When I reboot a before successfully connected ESP32, it keeps hanging in SC_STATUS_FIND_CHANNEL (waiting for new credentials)
Steps to reproduce
Code to reproduce this issue
Use your example code https://github.com/espressif/esp-idf/blob/master/examples/wifi/smart_config/main/smartconfig_main.c
Debug Logs
First boot
After reboot
Other items if possible