sendCommand method

  1. @override
Future<void> sendCommand(
  1. DeviceCommand command
)

Sends the given command to the back end command and control server.

Implementation

@override
Future<void> sendCommand(DeviceCommand command) async {
  if (_active == true) {
    _commandQueue.add(command);

    _sendCommands();
  }
}