getLatestBatteryPercentage

abstract fun getLatestBatteryPercentage(deviceId: String): Int

Retrieves the latest battery percentage of a specific Opticon BLE scanner.

Use this method to obtain the most recent battery percentage of the scanner specified by the deviceId. The percentage is returned as an integer, typically ranging from 0 to 100.

Return

An integer representing the latest battery percentage.

Parameters

deviceId

The identifier of the target scanner.