Slave server

Asked by Paul Anderson

Hi
I got version 3.0.1 and I am not be able to modify "random-test-server.c" to accept request continuely. It exit the loop after client closed connection. By looking the source code, "modbus_receive()" should be able to accept multiple request continuely.

Thanks
pa

Question information

Language:
English Edit question
Status:
Answered
For:
libmodbus Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Stéphane Raimbault (sra) said :
#1

random-test-server is designed this way (it's just an example) if you don't want to quit the loop add a for(;;) around the existing loop.

Can you help with this problem?

Provide an answer of your own, or ask Paul Anderson for more information if necessary.

To post a message you must log in.