loadWifiConfig method
Implementation
void loadWifiConfig(
{required Function(String wifiName, String password) callback}) {
UnitsDataTool.getValue(WIFI_NAME, '').then((value) {
UnitsDataTool.getValue(WIFI_PASSWORD, '').then((value2) {
myWifiName = value;
myWifiPassword = value2;
callback(value, value2);
});
});
}