Env:esp32-c2
Idf version:5.2.1
Description:
my device was working with [auto light sleep mode] + [WiFi Maximum modem power saving mode]. The debug print is "wifi:pm start, type: 2" when device is connected to AP, and it shows like "wifi:pm stop, total sleep time: lu us / lu us" when device is disconnected from AP.
Problem:
I wanna "lu us / lu us" to display the real time such as 156445 us / 2178948 us(I see that some post uploaders print like this). How to deal with it? Is it because WiFi hasn't actually entered power saving mode?
[ESP32-C2][Help]Why WiFi PM sleep time count does not show actually time
-
- Posts: 9764
- Joined: Thu Nov 26, 2015 4:08 am
Re: [ESP32-C2][Help]Why WiFi PM sleep time count does not show actually time
Might be that in menuconfig, you should disable Component config → Newlib → Enable 'nano' formatting options for printf/scanf family.
Re: [ESP32-C2][Help]Why WiFi PM sleep time count does not show actually time
Thanks! Problem solved!
Who is online
Users browsing this forum: Baidu [Spider] and 135 guests