Skip to content

java.lang.IllegalStateException: Reply already submitted #1

@Davevb

Description

@Davevb

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());
}
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions