you can set the battery type:

        SysBatteryKind batt_type;
        
        batt_type = ...;
        SysBatteryInfo(TRUE, NULL, NULL, NULL, &batt_type, NULL, NULL);


(see SystemMgr.h)
typedef enum {
        sysBatteryKindAlkaline=0,
        sysBatteryKindNiCad,
        sysBatteryKindLiIon,
        sysBatteryKindRechAlk,
        sysBatteryKindNiMH,
        sysBatteryKindLiIon1400,
        sysBatteryKindLast=0xFF   // insert new battery types BEFORE this one
        } SysBatteryKind;

so that Palm updates it's default warning levels to each kind of
battery.


-----Original Message-----
From: Petra Bergler [mailto:[EMAIL PROTECTED]]
Sent: segunda-feira, 21 de Janeiro de 2002 16:11
To: Palm Developer Forum
Subject: SysBatteryInfo


Hi !

Does anybody have experiences with the SysBatteryInfo function ?
My application communicates via RS232 to a little machine and collects
data
from it. Because of the RS232 communication the battery state might
rapidly
fall and the user needs to know how long he can go on. I found the
SysBatteryInfo function but I have a few questions on it:
- does the function recognize the differences between normal batteries
and
rechargable batteries ?
- what about old rechargable batteries ? do they still give the right
values
to the function ?
- what about palms with internal lithium-ion-batteries ?
- what about the memory effect ?

=> are the returned function values correct - every time ?

Thanks for any help !
_____
PE|RA





-- 
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to