connectByPrefix static method

Future<bool?> connectByPrefix(
  1. String ssidPrefix, {
  2. bool saveNetwork = false,
})

The connectByPrefix method attempts to connect to the nearest wifi network with the ssid prefix matching the ssidPrefix parameter.

Implementation

static Future<bool?> connectByPrefix(String ssidPrefix,
    {bool saveNetwork = false}) async {
  final bool? connected = await _channel.invokeMethod<bool>(
      'prefixConnect', {'ssid': ssidPrefix, 'saveNetwork': saveNetwork});
  return connected;
}