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
connection State
The current connection state of the MeshService.
bt Devices
List of discovered BLE devices.
selected Device
The full address of the currently selected device.
scan Model
The ViewModel responsible for Bluetooth scanning logic.