startDiscovery method

Future<bool> startDiscovery()

Start discovery for nearby Bluetooth devices

Implementation

Future<bool> startDiscovery() async {
  try {
    return await _channel.invokeMethod('startDiscovery');
  } catch (e) {
    throw BluetoothException('Failed to start discovery: $e');
  }
}