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 ( ) ; } }
send a command to the Arduino normally use the CommandFactory to generate the command