McuMgrBleTransport
The McuMgrBleTransport is an implementation for the BLE transport scheme. This class extends BleManager, which handles the BLE state machine and owns the BluetoothGatt object that executes BLE actions.
Starting from version 1.1 it is possible to extend the functionality to support additional services. For that extend the following methods:
Constructors
Link copied to clipboard
Construct a McuMgrBleTransport object.
Construct a McuMgrBleTransport object with a handler to run the BleManager and asynchronous callbacks.
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.
Properties
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun changeMode(@NonNull name: String, @Nullable callback: McuMgrTransport.ModeChangeCallback): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Returns the device set in the constructor.
Link copied to clipboard
Link copied to clipboard
Returns the maximum length of a SMP packet that can be transmitted over by the transport.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Requests the given connection priority.
Link copied to clipboard
Link copied to clipboard
Sets the maximum packet length for the transport.
Link copied to clipboard
Link copied to clipboard
Sets the initial MTU size to be requested upon connection.
Link copied to clipboard
Allows to enable low-level logging.
Link copied to clipboard
In order to send packets longer than MTU size, this library supports automatic segmentation of packets into at-most-MTU size chunks.