void getBreathalyzerBatteryLevel()
Request the current battery voltage and battery level of the
BACtrack device. The API will call the following callbacks:
void BACtrackBatteryVoltage(float voltage)
void BACtrackBatteryLevel(int level)
boolean getFirmwareVersion()
Request the firmware version from the BACtrack device. Expect a
BACtrackFirmwareVersion() callback with the version number.
boolean getSerialNumber()
Request the serial number of the BACtrack device. Expect a
BACtrackSerial() callback.
boolean getUseCount()
Request the use count of the BACtrack device. This is how many tests the
device has taken. Expect a BACtrackUseCount() callback.
void BACtrackBatteryVoltage(float voltage)
Called when the BACtrack responds with its current
battery voltage in volts.
void BACtrackBatteryLevel(int level)
The BacTrackBatteryLevel is an integer from 0 through 4:
0: Low (needs to be charged). Estimated 0-10%. 1: Medium. Estimated 0-40% 2: High. Estimated 40%-70% 3: Full. Estimated 70-100% 4: Full. Estimated 100%
Do not expect value 4 to be hit. See getBreathalyzerBatteryLevel above for more information.
void BACtrackFirmwareVersion(String version)
Called when the BACtrack responds with its firmware
version. See getFirmwareVersion() for more details.
void BACtrackSerial(String serialHex)
Called when the BACtrack device responds with its serial
number as a string. See getSerialNumber() for more details.
void BACtrackUseCount(int useCount)
Called when the BACtrack responds with the use count. See
getUseCount() for more details.
Note that UseCount will only return a valid result after a BAC test has been
taken.