modbus
modbus copied to clipboard
Working with multiple serial devices
Hi
I've successfully used the library to interact with one RS485 device, however working with multiple devices seems less than ideal. Currently SlaveId is a property of the handler which needs to be adjusted every time. I think it'd make more sense to derive multiple Clients each with its own SlaveId from the handler and then be able to work with them without touching the handler. What do you think?
I have the same issue. Seems like an incorrect assumption in the way the abstraction is modeled, i.e. one serial port can have multiple devices connected to it on a bus. Other than that this library is great.
That said, you'd still need to communicate to each device in mutual exclusion, so changing the SlaveID is less of a problem than one would assume.
same issue +1, maybe I should make a fork.
same issue +1, maybe I should make a fork.
Hello! Have that fork been done?
same issue +1, maybe I should make a fork.
Hello! Have that fork been done?
I have migrated to simonvetter/modbus
It's great! Thanks a lot !
Yes, you can try it at houaq/modbus.
发自我的iPhone
------------------ Original ------------------ From: gaorongfu @.> Date: Tue,Mar 16,2021 7:28 PM To: goburrow/modbus @.> Cc: Atsing Hou @.>, Comment @.> Subject: Re: [goburrow/modbus] Working with multiple serial devices (#43)
same issue +1, maybe I should make a fork.
Hello! Have that fork been done?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.