You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I noticed that in ModbusMaster.java are used deprecated methods.
Indeed inside readHoldingRegisters and readInputRegisters methods the return value is given by response.getRegisters() that is deprecated.
Maybe the right return value should be response.getHoldingRegister(), in this way is possible to use convert methods of ModbusHoldingRegisters.class.
The same goes for readCoils and readDiscreteInputs methods.
Thanks.
The text was updated successfully, but these errors were encountered:
Hi, I noticed that in ModbusMaster.java are used deprecated methods.
Indeed inside readHoldingRegisters and readInputRegisters methods the return value is given by response.getRegisters() that is deprecated.
Maybe the right return value should be response.getHoldingRegister(), in this way is possible to use convert methods of ModbusHoldingRegisters.class.
The same goes for readCoils and readDiscreteInputs methods.
Thanks.
The text was updated successfully, but these errors were encountered: