configure method
Implementation
Future<CuppsCommandResponse> configure(String text) async {
final completer = Completer<CuppsCommandResponse>();
final reqRes = await aeaRequest(text);
if (reqRes.status) {
_configurationQueue.add(completer);
CUPPS().notifier!();
log("isConfiguring $isConfiguring");
return completer.future.timeout(const Duration(seconds: 15), onTimeout: () {
_configurationQueue.remove(completer);
CUPPS().notifier!();
return CuppsCommandResponse(status: false, msg: "Configuration Timeout");
});
} else {
return reqRes;
}
}