您好!
最近测试深度睡眠,发现一个现象:
system_deep_sleep()在普通任务中调用一切正常,如果放在FreeRTOS的定时器回调中,则是在SoftAP或者SoftAP+Station模式下可以正常休眠,如果是在Station模式下,则调用无法返回而且整个程序运行异常(但不会自动复位),无法正常休眠!
这个是SDK异常还是我使用方法或者代码有问题?
另:wifi_station_disconnect()在什么情况下会返回false?
SDK使用RTOS1.4
深度睡眠是否还有其他前置条件?
Re: 深度睡眠是否还有其他前置条件?
Postby ESP_Greg » Tue Oct 11, 2016 7:09 pm
您好,在回调里面直接调用system_deep_sleep是不好的,因为deep sleep会关掉wifi和MCU等,如果有其他任务正在执行,会造成问题。
Who is online
Users browsing this forum: No registered users and 3 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.