aeaRequest method
Implementation
Future<CuppsCommandResponse> aeaRequest(String text) async {
try {
AeaRequestRequest req = AeaRequestRequest(messageID: currentMessageID, texts: [text], binaries: []);
String aeaResXML = await send(xml: req.toXML());
AeaResponseResponse aeaResponseResponse = AeaResponseResponse.fromXML(aeaResXML);
if (aeaResponseResponse.result.toLowerCase() == "ok") {
return CuppsCommandResponse(status: true, msg: "Aea Request Sent Successfully to Device: :$deviceName");
} else {
return CuppsCommandResponse(status: false, msg: aeaResponseResponse.result);
}
} catch (e) {
return CuppsCommandResponse(status: false, msg: "Device $deviceName aeaRequest Exception: $e");
}
}