Skip to content

Read Multiple Hosts #107

Open
Open

Description

@shnabin

Hi,

I need help with the following 2 points.

  1. Is it possible to connect to multiple hosts in one instance, (Ex: Server IP : 192.168.1.1 , Client IP : 192.168.1.2, 192.168.1.3, etc), If its possible kindly provide an example.
  2. From point 1, once I read the data from multiple clients, can I act as modbus server/gateway and give the data to other devices.
    Ex: 192.168.1.2 (host/client) --> (server) 192.168.1.1 (client/host) --> 192.168.10.2. If its possible kindly provide an example.

Appreciate your help. Thank you !!

Activity

  1. OrangeTux commented on Oct 15, 2020

    @OrangeTux
    Collaborator
    1. Yes. Multiple clients can connect to the same server. Just copy the `sample client to all your hosts and run them.
    2. Yes, that is also possible.
  2. jaapz commented on Oct 19, 2020

    @jaapz
    Member
    1. is possible but you'll have to write some "glue code" yourself. you can set up a umodbus server that handles reads and writes and proxies those to another umodbus client instance

    Currently we don't have example code for this but if you understand how the server and client work, that should be relatively trivial to implement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions