sendCommand method
This will send the comamnd to the external source. If the communicator is not active, this will throw an exception. If the communicator is offline, but active, it should send the command the next time it reconnects.
Implementation
@override
Future<void> sendCommand(DeviceCommand command) async {
if (_active == true) {
_commandQueue.add(command);
_sendCommands();
}
}