Hello Everybody,
I am a beginner of OpenNMS. I am trying to implement a new device. I followed this link Implementing a device :: Open Energy Management System
I got the error for this function, although I imported suggested packages.
@Override
protected ModbusProtocol defineModbusProtocol() throws OpenemsException {
return new ModbusProtocol(this, //
new FC3ReadRegistersTask(1000, Priority.HIGH,
m(ElectricityMeter.ChannelId.ACTIVE_POWER, new SignedWordElement(1000))));
}
The error message is
The type com.ghgande.j2mod.modbus.msg.ReadMultipleRegistersRequest cannot be resolved. It is indirectly referenced from required type io.openems.edge.bridge.modbus.api.task.FC3ReadRegistersTask
Could someone guide me to fix this?
I would really appreciate any input.
Best Regards
Ei Ei Mon