MemfaultDiagnosticsService
constructor(centralManager: CentralManager, peripheral: Peripheral, scope: CoroutineScope)
Creates a new instance of MemfaultDiagnosticsService with the given CentralManager and Peripheral.
This constructor can be user with a 'native' or 'mock' CentralManager.
Parameters
centralManager
The central manager to use for connection.
peripheral
The peripheral to connect to.
scope
The coroutine scope.
Creates a new instance of MemfaultDiagnosticsService with the given Context and BluetoothDevice.
This constructor is for legacy applications that use the Android Bluetooth API.
Parameters
context
The application context.
bluetoothDevice
The Bluetooth device to connect to.
scope
The coroutine scope.