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
How to know battery status |
How to know battery statusHi 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 |
Subscribe to email updates
Monthly updates from our Zebra development team, straight to your inbox.
3 Replies
Thanks guys for your help. My partner is testing your tips.
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.
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.