Skip to content

Use pymodbus decoding  #34

@kodonnell

Description

@kodonnell

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions