How to know battery status

M Matthieu Dierick 3 years 6 months ago
4 3 0

Hi Team, I'm looking for how to know the battery status via API .net. During charging, the battery state is unknown on WM6.5 devices. I'm looking for how to know when the device is charged. Thanks. Matt

Please Register or Login to post a reply

3 Replies

M Matthieu Dierick

Thanks guys for your help. My partner is testing your tips.

A Amoolya Srivalson

EMDK API  RCM_GetSmartBatteryStatus might be helpful.This api returns the  charge cycle count value  which gets updated when the battery charging state switches from charging to not charging.

Y Yanis Dalabiras

One method is to use the API GetSystemPowerStatusEx2 and look at BatteryAverageCurrent  This returns the amount of charge in/out of the battery When charged the amount of current should be very slight negative i.e. -2 - This indicates its charged.

CONTACT
Can’t find what you’re looking for?