DeviceBluetoothBinding import { DeviceBluetoothBinding } from "destack:device/binding"; Bluetooth binding family. export interface DeviceBluetoothBinding { listBluetoothAdapters(): Result; openBluetoothAdapterWatch(): Result; closeBluetoothAdapterWatch(watch: BluetoothAdapterWatchHandle): Result; readBluetoothAdapterWatch(watch: BluetoothAdapterWatchHandle, timeoutNs?: uint64 | undefined): Result; openBluetoothScan(options: &'a readonly BluetoothScanOptions): Result; closeBluetoothScan(scan: BluetoothScanHandle): Result; readBluetoothScan(scan: BluetoothScanHandle, timeoutNs?: uint64 | undefined): Result; openBluetoothDevice(id: &'a readonly string): Result; closeBluetoothDevice(device: BluetoothDeviceHandle): Result; describeBluetoothDevice(device: BluetoothDeviceHandle): Result; readBluetoothEvent(device: BluetoothDeviceHandle, timeoutNs?: uint64 | undefined): Result; pairBluetoothDevice(device: BluetoothDeviceHandle): Result; unpairBluetoothDevice(device: BluetoothDeviceHandle): Result; readBluetoothRssi(device: BluetoothDeviceHandle): Result; listBluetoothGattServices(device: BluetoothDeviceHandle): Result; listBluetoothGattCharacteristics(device: BluetoothDeviceHandle, serviceId: &'a readonly string): Result; listBluetoothGattDescriptors(device: BluetoothDeviceHandle, characteristicId: &'a readonly string): Result; readBluetoothGattCharacteristic(device: BluetoothDeviceHandle, characteristicId: &'a readonly string, buffer: &'b [uint8]): Result; writeBluetoothGattCharacteristic(device: BluetoothDeviceHandle, characteristicId: &'a readonly string, value: &'b readonly [uint8], mode: BluetoothGattWriteMode): Result; readBluetoothGattDescriptor(device: BluetoothDeviceHandle, descriptorId: &'a readonly string, buffer: &'b [uint8]): Result; writeBluetoothGattDescriptor(device: BluetoothDeviceHandle, descriptorId: &'a readonly string, value: &'b readonly [uint8]): Result; subscribeBluetoothGatt(device: BluetoothDeviceHandle, characteristicId: &'a readonly string): Result; unsubscribeBluetoothGatt(subscription: BluetoothSubscriptionHandle): Result; readBluetoothGattEvent(subscription: BluetoothSubscriptionHandle, buffer: &'a [uint8], timeoutNs?: uint64 | undefined): Result; } language/library/src/device/binding/bluetooth.ds:408:667 Members listBluetoothAdapters(): Result List Bluetooth adapters. openBluetoothAdapterWatch(): Result Open a Bluetooth adapter topology watch. closeBluetoothAdapterWatch(watch: BluetoothAdapterWatchHandle): Result Close a Bluetooth adapter topology watch. readBluetoothAdapterWatch(watch: BluetoothAdapterWatchHandle, timeoutNs?: uint64 | undefined): Result Read one Bluetooth adapter topology event. openBluetoothScan(options: &'a readonly BluetoothScanOptions): Result Open a Bluetooth LE scan. closeBluetoothScan(scan: BluetoothScanHandle): Result Close a Bluetooth LE scan. readBluetoothScan(scan: BluetoothScanHandle, timeoutNs?: uint64 | undefined): Result Read one Bluetooth scan event. openBluetoothDevice(id: &'a readonly string): Result Open a Bluetooth device session. closeBluetoothDevice(device: BluetoothDeviceHandle): Result Close a Bluetooth device session. describeBluetoothDevice(device: BluetoothDeviceHandle): Result Describe a Bluetooth device session. readBluetoothEvent(device: BluetoothDeviceHandle, timeoutNs?: uint64 | undefined): Result Read one Bluetooth session event. pairBluetoothDevice(device: BluetoothDeviceHandle): Result Pair a Bluetooth device. unpairBluetoothDevice(device: BluetoothDeviceHandle): Result Unpair a Bluetooth device. readBluetoothRssi(device: BluetoothDeviceHandle): Result Read Bluetooth signal strength. listBluetoothGattServices(device: BluetoothDeviceHandle): Result List Bluetooth GATT services. listBluetoothGattCharacteristics(device: BluetoothDeviceHandle, serviceId: &'a readonly string): Result List Bluetooth GATT characteristics. listBluetoothGattDescriptors(device: BluetoothDeviceHandle, characteristicId: &'a readonly string): Result List Bluetooth GATT descriptors. readBluetoothGattCharacteristic(device: BluetoothDeviceHandle, characteristicId: &'a readonly string, buffer: &'b [uint8]): Result Read a Bluetooth GATT characteristic. writeBluetoothGattCharacteristic(device: BluetoothDeviceHandle, characteristicId: &'a readonly string, value: &'b readonly [uint8], mode: BluetoothGattWriteMode): Result Write a Bluetooth GATT characteristic. readBluetoothGattDescriptor(device: BluetoothDeviceHandle, descriptorId: &'a readonly string, buffer: &'b [uint8]): Result Read a Bluetooth GATT descriptor. writeBluetoothGattDescriptor(device: BluetoothDeviceHandle, descriptorId: &'a readonly string, value: &'b readonly [uint8]): Result Write a Bluetooth GATT descriptor. subscribeBluetoothGatt(device: BluetoothDeviceHandle, characteristicId: &'a readonly string): Result Subscribe to Bluetooth GATT value notifications. unsubscribeBluetoothGatt(subscription: BluetoothSubscriptionHandle): Result Unsubscribe from Bluetooth GATT value notifications. readBluetoothGattEvent(subscription: BluetoothSubscriptionHandle, buffer: &'a [uint8], timeoutNs?: uint64 | undefined): Result Read one Bluetooth GATT value notification.