This member of RFTerminal Object is supported on iOS, Windows Mobile, Windows CE, Palm, and DOS.
The LithiumBattery method returns the state of the RF device's lithium battery.
VB
nLithiumState = object.LithiumBattery ()
VC++
HRESULT hr = object->LithiumBattery(short *nLithiumState);
Return Value
nLithiumState |
The lithium battery state variable. This method will return a -1 if an error occurs. Use the RFGetLastError method to return the generated error code. The possible values are: LITHIUMBATGOOD The lithium battery is good. LITHIUMBATDEAD The lithium battery is dead. LITHIUMBATNONE The device does not have a lithium battery. |
Remarks
For network efficiency purposes, the settings within the RFTerminal object are initially only set when the object is first created. Therefore, to return the most current information you must first use the ReadTerminalInfo Method which will update the RFTerminal object with the latest device settings before making a call to any other methods.
Was this article useful?
The topic was:
Inaccurate
Incomplete
Not what I expected
Other