get Latest Battery Percentage
Retrieves the latest cached 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. If no battery percentage has been received yet, or the device ID is unknown, this method returns null.
Return
An integer representing the latest battery percentage, or null if no battery percentage is available.
Parameters
device Id
The identifier of the target scanner.