Ejemplo n.º 1
0
 /** Processes input from the device based on the protocol type. */
 private void processInput(Protocol protocol) throws IOException {
   logger.debug(protocol);
   switch (protocol) {
     case TIME_POLL:
       sendStatus();
       break;
     case DATA_POLL:
       processInputData();
       break;
     default:
       logger.warn("Ignoring {}", protocol.name());
   }
 }