provision method

Future<void> provision(
  1. String ssid,
  2. String passphrase
)

Implementation

Future<void> provision(String ssid, String passphrase) async {
  if (_session == null || !_session!.isSessionEstablished) {
    try {
      await _initSession();
    } catch (e) {
      //print(e);
      rethrow;
    }
    await _sendWiFiConfig(ssid, passphrase);
  } else {
    await _sendWiFiConfig(ssid, passphrase);
  }
}