SLBluetoothService

class SLBluetoothService(androidContext: Context, scanningDelay: Long = 6000, sensorLog: SLSensorLog)

Bluetooth scanner service for SlamSDk

The bluetooth service will always scan for ble-devices (or as often as it can based on android restrictions)

Callbacks could be added instead of reading mostRecentBleDevices, this is used for the survey cps service

Constructors

Link copied to clipboard
constructor(androidContext: Context, scanningDelay: Long = 6000, sensorLog: SLSensorLog)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard

Timestamp of when last successful scan was completed

Functions

Link copied to clipboard
fun start()
Link copied to clipboard
fun stop()
Link copied to clipboard
fun toggleBle(enabled: Boolean)