MainBattery Method

This member of RFTerminal Object is supported on iOS, Windows Mobile, Windows CE, Palm, and DOS.

The MainBattery method returns the state of the RF device's main battery.

VB

nBatState = object.MainBattery ()

VC++

HRESULT hr = object->MainBattery(short *nBatState);

Return Value

nBatState

The main battery state variable (MAINBATGOOD or MAINBATLOW). This method will return a -1 if an error occurs. Use the RFGetLastError method to return the generated error code.

The possible values are:

MAINBATGOOD - The main battery is good.

MAINBATLOW - The main battery is low.

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

Privacy and Legal