libmodbus icon indicating copy to clipboard operation
libmodbus copied to clipboard

How to terminate a hanging RTU call

Open aLAN-LDZ opened this issue 3 years ago • 1 comments

Hi

I wrote a program in which it uses the RTU connection. If I close the program during RTU connection and restart it, I can no longer establish a connection or end the old one. The only option is to plug in and disconnect the USB plug. Is it possible to terminate such a connection somehow on windows?

aLAN-LDZ avatar Aug 12 '22 07:08 aLAN-LDZ

Could you explain what do you mean by close and restart? What libmodbus function calls do you use?

stephane avatar Aug 17 '22 12:08 stephane