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
This is a much cleaner way of doing decoding to Int16s etc. Use this as less maintenance and simpler code.
Need to think a bit ... may be able to get rid of Field._from_registers and Field._to_registers now since they'll largely just be e.g. decoder.decode_16bit_int etc. May be able to just add a read_contiguous_fields method to the modbus client which just does all the nice things for you, including creating FieldValues. Anyway, worth thinking through, especially if it makes the code internals nicer.
The text was updated successfully, but these errors were encountered:
This is a much cleaner way of doing decoding to Int16s etc. Use this as less maintenance and simpler code.
Need to think a bit ... may be able to get rid of
Field._from_registers
andField._to_registers
now since they'll largely just be e.g.decoder.decode_16bit_int
etc. May be able to just add aread_contiguous_fields
method to the modbus client which just does all the nice things for you, including creatingFieldValues
. Anyway, worth thinking through, especially if it makes the code internals nicer.The text was updated successfully, but these errors were encountered: