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 a callback reporting the connected breathalyzer’s current battery voltage and level of the connected device. See BacTrackBatteryLevel.

Get Serial Number

-(void)getBreathalyzerSerialNumber Request a callback reporting the connected breathalyzer’s serial number

Delegate Reference

Get Battery Level

-(void)BacTrackBatteryLevel:(NSNumber *)number 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 Serial Number

-(void)BacTrackSerial:(NSString *)serial_hex Reports the connected BACtrack device’s serial number. See getBreathalyzerSerialNumber above for more information.

Get Use Count

-(void)BacTrackUseCount:(NSNumber *)count Reports how many tests the connected BACtrack device has taken. On a BACtrack Mobile series breathalyzer, BacTrackUseCount is repeatedly called throughout the blow test. On the C6 and C8, it is called immediately after the connection is established.