Welcome! Sign in or Register to get your developer token.

Overview

Overview

iOS SDK

Installation Connecting Reading Stats Types

Android SDK

Installation Connecting Reading Stats Types

React Native

Demo App

Web API

Authenticating

Device Statistics

API Reference

Get Battery Level

void getBreathalyzerBatteryLevel() Request the current battery voltage and battery level of the BACtrack device. The API will call the following callbacks:

Get Firmware Version

boolean getFirmwareVersion() Request the firmware version from the BACtrack device. Expect a BACtrackFirmwareVersion() callback with the version number.

Get Serial Number

boolean getSerialNumber() Request the serial number of the BACtrack device. Expect a BACtrackSerial() callback.

Get Use Count

boolean getUseCount() Request the use count of the BACtrack device. This is how many tests the device has taken. Expect a BACtrackUseCount() callback.

Callback Reference

Get Battery Voltage

void BACtrackBatteryVoltage(float voltage) Called when the BACtrack responds with its current battery voltage in volts.

Get Battery Level

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.

Get Firmware Version

void BACtrackFirmwareVersion(String version) Called when the BACtrack responds with its firmware version. See getFirmwareVersion() for more details.

Get Serial Number

void BACtrackSerial(String serialHex) Called when the BACtrack device responds with its serial number as a string. See getSerialNumber() for more details.

Get Use Count

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.