BLEDevices

fun BLEDevices(connectionState: ConnectionState, btDevices: List<DeviceListEntry>, selectedDevice: String, scanModel: BTScanModel, bluetoothEnabled: Boolean)

Composable that displays a list of Bluetooth Low Energy (BLE) devices and allows scanning. It handles Bluetooth permissions using accompanist-permissions.

Parameters

connectionState

The current connection state of the MeshService.

btDevices

List of discovered BLE devices.

selectedDevice

The full address of the currently selected device.

scanModel

The ViewModel responsible for Bluetooth scanning logic.