My program creates a Modbus RTU slave,and i created a thread to deal “modbus_receive” .
But I found that the “modbus_receive” was blocking the thread when there was no master site to interact with it.
So I can't stop this process on the main thread.
Is there any way to stop it?
Thanks!
My program creates a Modbus RTU slave,and i created a thread to deal “modbus_receive” . But I found that the “modbus_receive” was blocking the thread when there was no master site to interact with it. So I can't stop this process on the main thread. Is there any way to stop it? Thanks!