connect
Function used to connect to the selected Bluetooth LE peripheral.
The peripheral must support Memfault Diagnostic Service.
Chunks upload will start immediately after establishing the connection.
This method allows using mock central manager, which is useful for testing purposes.
Calling this method with an already connected peripheral will throw an exception.
Parameters
Peripheral to which the manager should connect.
CentralManager to use to connect to the peripheral.
Throws
if the manager is already connected to a peripheral.
Function used to connect to the selected Bluetooth LE peripheral.
The peripheral must support Memfault Diagnostic Service.
Chunks upload will start immediately after establishing the connection.
Parameters
Android Context need to initialize the chunks database.
BluetoothDevice to which the manager should connect.
Throws
if the manager is already connected to a peripheral.