Skip to content

Multiple connected clients #96

Open
@salasidis

Description

@salasidis

The usual code for servicing a clients only works with one connected client at a time.

while (1) {
    
    ethClient = ethServer.available();
    
    if (ethClient) {

        modbusTCPServer.accept(ethClient);

        while (ethClient.connected()) {
          modbusTCPServer.poll();

Is there a correct way (or an example) for how to connect multiple clients to the server at one time.

Thanks

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