[ESP32-C2][Help]Why WiFi PM sleep time count does not show actually time

Dennie
Posts: 6
Joined: Fri Aug 30, 2024 2:22 am

[ESP32-C2][Help]Why WiFi PM sleep time count does not show actually time

Postby Dennie » Mon Oct 14, 2024 2:32 am

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?
:shock:

ESP_Sprite
Posts: 9757
Joined: Thu Nov 26, 2015 4:08 am

Re: [ESP32-C2][Help]Why WiFi PM sleep time count does not show actually time

Postby ESP_Sprite » Mon Oct 14, 2024 3:11 am

Might be that in menuconfig, you should disable Component config → Newlib → Enable 'nano' formatting options for printf/scanf family.

Dennie
Posts: 6
Joined: Fri Aug 30, 2024 2:22 am

Re: [ESP32-C2][Help]Why WiFi PM sleep time count does not show actually time

Postby Dennie » Mon Oct 14, 2024 3:45 am

Thanks! Problem solved! :lol:

Who is online

Users browsing this forum: No registered users and 88 guests