Skip to main content

This API is used to manage all information about the Autel battery.

class  AutelBattery

method setLowBatteryNotifyThreshold

void setLowBatteryNotifyThreshold(float lowValue, CallbackWithNoParam
callback);

Description: Sets the low battery warning threshold of the battery module.

Input parameter: lowValue (low battery warning threshold, which ranges from 0.25 to 0.50), callback (callback when setting the low battery warning threshold).

Output parameter: none.

Relevant parameter none.

method getLowBatteryNotifyThreshold

void getLowBatteryNotifyThreshold(CallbackWithOneParam<Float> callback);

Description: Obtains the low battery warning threshold of the battery module.

Input parameter: none.

Output parameter: callback (callback when obtaining the low battery warning threshold).

Relevant parameter none.

method setCriticalBatteryNotifyThreshold

void setCriticalBatteryNotifyThreshold(float criticalValue,
CallbackWithNoParam callback);

Description: Sets the threshold for sending a critically low battery warning.

Input parameter: criticalValue (threshold for sending a critically low battery warning, which ranges from 0.1 to 0.25) callback (callback when setting the threshold for sending a critically low battery warning.)

Output parameter: none.

Relevant parameter none.

method getCriticalBatteryNotifyThreshold

void getCriticalBatteryNotifyThreshold(CallbackWithOneParam<Float>
callback);

Description: Obtains the threshold for sending a critically low battery warning.

Input parameter: callback (callback when obtaining the threshold for sending a critically low battery warning.)

Output parameter: none.

Relevant parameter none.

method setDischargeDay

void setDischargeDay(int day, CallbackWithNoParam callback);

Description: Sets the number of days in which the battery will discharge. The battery self-discharge occurs once the battery is idle for a very long time.

Input parameter: day (the number of days in which the battery will discharge and the value ranges from 1 to 10), callback (callback when setting the number of days in which the battery will discharge)

Output parameter: none.

Relevant parameter none.

method getDischargeDay

void getDischargeDay(CallbackWithOneParam<Integer> callback);

Description: Obtains the number of days in which the battery will discharge. The battery self-discharge occurs once the battery is idle for a very long time.

Input parameter: callback (callback when obtaining the number of days in which the battery will discharge)

Output parameter: none.

Relevant parameter none.

method getDischargeCount

void getDischargeCount(CallbackWithOneParam<Integer> callback)

Description: Obtains the number of charging times.

Input parameter: callback (callback when obtaining the number of charging times)

Output parameter: none.

Relevant parameter none.

method getSerialNumber

void getSerialNumber(CallbackWithOneParam<String> callback);

Description: Obtains the serial number of the battery.

Input parameter: @param callback (callback when obtaining the serial number of the battery)

Output parameter: none.

Relevant parameter none.

method getVersion

void getVersion(CallbackWithOneParam<String> callback);

Description: Obtains the battery version.

Input parameter: param callback (callback when obtaining the battery version)

Output parameter: none.

Relevant parameter none.

method getParameterSupportManager

BatteryParameterRangeManager getParameterSupportManager();

Description: Obtains the BatteryParameterRangeManager. For details, see BatteryParameterRangeManager.

Input parameter: none.

Output parameter: BatteryParameterRangeManager.

Relevant parameter none.

method getFullChargeCapacity

void getFullChargeCapacity(CallbackWithOneParam<Integer> callback);

Description: Obtains the capacity of the fully charged battery.

Input parameter: @param Callback (callback when obtaining the capacity of the fully charged battery)

Output parameter: BatteryParameterRangeManager.

Relevant parameter none.