Closed aguilaair closed 4 years ago
I've tried different devices and flutter versions, I still have the same issues I'm afraid.
Here is the relevant code:
void handleSuccess(ip, bssid) {
completed = true;
Get.to(SuccessPage(ip, bssid));
}
void handleFail(sub) async {
sub.cancel();
print("cancelled!!!!");
if (!completed) {
Get.off(FailPage());
}
}
void espSetup() async {
print("WiFi: " + wifiName);
print("BSSID: " + wifiBSSID);
print("PSK: " + wifiPSK);
final task = ESPTouchTask(
ssid: wifiName,
bssid: wifiBSSID,
password: wifiPSK,
);
stream = task.execute();
final sub = stream.listen((r) {
handleSuccess(r.ip, r.bssid);
});
Future.delayed(Duration(minutes: 1), () {
handleFail(sub);
});
}
Stream<ESPTouchResult> stream;
Could you provide us a minimal reproducible example with code and instructions on how to reproduce the issue?
I managed to fix the issue at the end, I belive I had to tweak the API version
Hello,
I seem to be having issues when building the app in release mode as when I initiate the task I get the following exception:
However when on debug mode the app runs flawlessly. What could be the issue?