stopDiscovery method

Future<void> stopDiscovery()

Stops the BLE device discovery process.

This method ends the BLE scanning process.

Implementation

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