When I use the library, data transfer read/write operations to the device are working. However, within a loop, the modbus.update(); function keeps executing continuously. I believe it should only run when there is a change in data. In other libraries, this behavior is present, but in this code, it constantly sends and receives data. How can I prevent this? I only want it to write once when I send data, not repeatedly.
When I use the library, data transfer read/write operations to the device are working. However, within a loop, the modbus.update(); function keeps executing continuously. I believe it should only run when there is a change in data. In other libraries, this behavior is present, but in this code, it constantly sends and receives data. How can I prevent this? I only want it to write once when I send data, not repeatedly.