initApiCall method
Implementation
@override
Future<bool> initApiCall() async {
if (!widget.isVisible) {
return false;
}
WifiConfig? response = await LogbotSetupApiManager.network
.getWifiConfig(uuidToken: LogbotSetupEnv().deviceId);
formData = {
"connection": {
"id": response?.connection?.id ?? "",
"band": response?.connection?.band ?? "",
},
"ipv4": {
"address": response?.ipv4?.address ?? "",
"prefix": response?.ipv4?.prefix ?? 24,
"gateway": response?.ipv4?.gateway ?? "",
"dns": {
"primary": response?.ipv4?.dns?.primary ?? "",
"secondary": response?.ipv4?.dns?.secondary ?? "",
}
}
};
return true;
}