connectToNearestBreathalyzer method

Future connectToNearestBreathalyzer({
  1. bool withTimeout = false,
})

Connect to the nearest breathalyzer that can be found. The following states can be emitted on the statusStream in response:

Implementation

Future connectToNearestBreathalyzer({bool withTimeout = false}) async {
  if (withTimeout) {
    await _channel.invokeMethod(connectToNearestBreathalyzerWithTimeoutMethod);
  } else {
    await _channel.invokeMethod(connectToNearestBreathalyzerMethod);
  }
}