startDiscovery method

Future<void> startDiscovery()

Starts the BLE device discovery process.

This method begins the scanning process for nearby BLE devices. It logs the start and handles any errors that may occur during the discovery process.

Implementation

Future<void> startDiscovery() async {
  try {
    await _bleDevicesDiscoverer.startDiscovery();
  } catch (e) {
    _appLogger.error("Error starting discovery: $e");
    rethrow;
  }
}