McuMgrBleTransport

constructor(@NonNull context: Context, @NonNull device: BluetoothDevice)

Construct a McuMgrBleTransport object.

Uses the main thread for callbacks.

Parameters

context

the context used to connect to the device.

device

the device to connect to and communicate with.


constructor(@NonNull context: Context, @NonNull device: BluetoothDevice, @NonNull handler: Handler)

Construct a McuMgrBleTransport object with a handler to run the BleManager and asynchronous callbacks.

Parameters

context

the context used to connect to the device.

device

the device to connect to and communicate with.

handler

the handler to run the BleManager and McuMgrCallbacks.


constructor(@NonNull context: Context, @NonNull device: BluetoothDevice, @NonNull handler: Handler, @NonNull uuidConfig: UuidConfig)

Construct a McuMgrBleTransport object with a handler to run the BleManager and asynchronous callbacks.

Parameters

context

the context used to connect to the device.

device

the device to connect to and communicate with.

handler

the handler to run the BleManager and McuMgrCallbacks.

uuidConfig

custom UUID configuration.