BLEDevices
fun BLEDevices(connectionState: ConnectionState, bondedDevices: List<DeviceListEntry>, availableDevices: List<DeviceListEntry>, selectedDevice: String, scanModel: BTScanModel, bluetoothEnabled: Boolean)(source)
Composable that displays a list of Bluetooth Low Energy (BLE) devices and allows scanning. It handles Bluetooth permissions using accompanist-permissions.
Parameters
connection State
The current connection state of the MeshService.
bonded Devices
List of discovered BLE devices.
available Devices
selected Device
The full address of the currently selected device.
scan Model
The ViewModel responsible for Bluetooth scanning logic.
bluetooth Enabled