If a TCP connected device is turned off, then the system reports this in the modbus library with:
Error: EPOLLRDHUP or EPOLLHUP has returned true. Reconnect
Various other errors occur, then next time the application tries to perform a modbus command using the handle it crashes.
If a TCP connected device is turned off, then the system reports this in the modbus library with:
Error: EPOLLRDHUP or EPOLLHUP has returned true. Reconnect
Various other errors occur, then next time the application tries to perform a modbus command using the handle it crashes.