Package-level declarations

This package contains bluetooth related classes.

Android apps that use this library need to declare and request the following permissions:

<uses-permission android:name="android.permission.BLUETOOTH" android:maxSdkVersion="30" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" android:maxSdkVersion="30" />

<uses-permission android:name="android.permission.BLUETOOTH_CONNECT" android:usesPermissionFlags="neverForLocation"/>
<uses-permission android:name="android.permission.BLUETOOTH_SCAN" android:usesPermissionFlags="neverForLocation"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>

On iOS you have to extend the information property list in the Info.plist.

NSBluetoothPeripheralUsageDescription
NSBluetoothAlwaysUsageDescription

Types

Link copied to clipboard
data class BluetoothInfo(val probeType: ProbeType, val serialNo: String)

Bluetooth information of a testo bluetooth device.