saveWifiConfig method

void saveWifiConfig({
  1. required String wifiName,
  2. required String password,
})

Implementation

void saveWifiConfig({required String wifiName, required String password}) {
  myWifiName = wifiName;
  myWifiPassword = password;
  UnitsDataTool.saveString(WIFI_NAME, wifiName);
  UnitsDataTool.saveString(WIFI_PASSWORD, password);
}