code: public void sendCommand(MenuCommand command) {
          lastTx.set(clock.millis());
          try {
              connector.sendMenuCommand(command);
          } catch (IOException e) {
              logger.log(ERROR, "Error while writing out command", e);
              connector.close();
          }
      }
docs: send a command to the Arduino, normally use the CommandFactory to generate the command
  @param command a command to send to the remote side.