Closed Tsg333 closed 9 months ago
hi, @Tsg333 I can't run your code by just copying, and In your code I haven't seen the nvs init. so I write a simple example on base of the example/wifi/scan, and you can try this? I just add deepsleep and timer wake up in this example. deep_sleep_scan.txt
Answers checklist.
IDF version.
v5.0
Operating System used.
Windows
How did you build your project?
Command line with Make
If you are using Windows, please specify command line type.
PowerShell
Development Kit.
ESP32-C2 | Custom Board
Power Supply used.
USB
What is the expected behavior?
I'm using esp_deep_sleep_start() and esp_sleep_enable_timer_wakeup() to make the device enter deep-sleep.
When the device awakened from deep-sleep, it will use esp_wifi_scan_start() to scan APs.
What is the actual behavior?
When the device booted from POWERON, it can normally get the APs.
However, when it restarted from DSLEEP, it can't get any AP.
Steps to reproduce.
Debug Logs.
No response
More Information.
No response