use of me.retrodaredevil.io.modbus.ModbusSlave in project solarthing by wildmountainfarms.
the class DummyModbusIOConfig method createIOBundle.
@Override
public IOBundle createIOBundle() {
Map<Integer, ModbusSlave> map = new HashMap<>(addressToSlaveMap.size());
for (Map.Entry<Integer, DummyModbusSlave> entry : addressToSlaveMap.entrySet()) {
int address = entry.getKey();
DummyModbusSlave slave = entry.getValue();
map.put(address, slave.createModbusSlave());
}
return new DummyModbusIO(map, new RtuDataEncoder());
}
Aggregations