Пример #1
0
 public PIDLimitEvent(BowlerDatagram data) {
   if (!data.getRPC().contains("pidl")) throw new RuntimeException("Datagram is not a PID event");
   setGroup(data.getData().getByte(0));
   setLimitType(PIDLimitEventType.get(data.getData().getBytes(1, 1)[0]));
   setValue(ByteList.convertToInt(data.getData().getBytes(2, 4), true));
   setTimeStamp(ByteList.convertToInt(data.getData().getBytes(6, 4), false));
 }
Пример #2
0
 public boolean setValue(int value) {
   Log.info("Setting counter set point");
   ByteList b = new ByteList();
   b.addAs32(value);
   return setValue(b);
 }