Hi,
When I start the FlutterSmartLink and devices are detected I get the following error "java.lang.IllegalStateException: Reply already submitted". I'm using the latest version of Flutter.
This is my code:
Future response = FlutterSmartlink.start(ssidController.text, pwController.text, "", 10);
response.then((value) {
try {
log("*** SMARTLINK EVENT ***");
log("EVENT value: " + value["result"]);
if (value["result"] == "success") {
Fluttertoast.showToast(msg: "Device (MAC: " + value["Mac"] +
") added to wifi with IP: " + value["Ip"]);
} else if (value["result"] == "timeout") {
setState(() {
_isConnecting = false;
});
}
} on Exception catch(e) {
log("SMARTLINK Event ERROR: " + e.toString());
}
});