Open oazradSPOC opened 3 years ago
I just tried this, and it worked for me:
Use goto in the
if (rc == -1 && errno != EMBBADCRC){ / Quit / goto start; } Add this start label before modbus_tcp_pi_accept(ctx, &s);
start: modbus_tcp_pi_accept(ctx, &s);
i meet it too, is it a bug?
Dear libmodbus,
I have been working on a Moxa UC-8100A-ME. I’m using the linux side of this box. ‘Linux version 4.4.0-cip-uc8100a-me (root@d7b36943a46d) (gcc version 6.3.0 20170516 (Debian 6.3.0-18) ) #12 Tue Dec 11 14:53:48 CST 2018’ libmodbus-3.0.6
I’m working on a c program that will act as a serve. My problem is when a master is connected and cycles power either my code is hanging or I get:
Waiting for a indication...
<00><00><00><00><00><06>