extendedInfo.set("input", buf.readUnsignedByte());
extendedInfo.set("output", buf.readUnsignedByte());
// Analog sensors
for (int i = 1; i <= 8; i++) {
extendedInfo.set("adc" + i, buf.readUnsignedShort());
}
// Counters
extendedInfo.set("c0", buf.readUnsignedInt());
extendedInfo.set("c1", buf.readUnsignedInt());