Bluetooth Controller
A wrapper around the BlueFalcon Bluetooth library to manage Bluetooth operations for BrainAccess devices.
Parameters
blue Falcon
The BlueFalcon instance handling BLE communication.
Properties
Functions
Link copied to clipboard
Disconnects from a specified Bluetooth peripheral.
Link copied to clipboard
fun notifyCharacteristic(peripheral: BluetoothPeripheral, characteristic: BluetoothCharacteristic, enable: Boolean)
Enables or disables notifications for a characteristic.
Link copied to clipboard
Reads a Bluetooth characteristic from a device.
Link copied to clipboard
fun readDescriptor(peripheral: BluetoothPeripheral, characteristic: BluetoothCharacteristic, descriptor: BluetoothCharacteristicDescriptor)
Reads a descriptor associated with a Bluetooth characteristic.
Link copied to clipboard
Removes a previously added delegate.
Link copied to clipboard
Adds a delegate to receive Bluetooth events.
Link copied to clipboard
fun writeCharacteristic(peripheral: BluetoothPeripheral, characteristic: BluetoothCharacteristic, data: ByteArray)
Writes data to a Bluetooth characteristic.
Link copied to clipboard
fun writeDescriptor(peripheral: BluetoothPeripheral, descriptor: BluetoothCharacteristicDescriptor, data: ByteArray)
Writes data to a Bluetooth characteristic descriptor.