charlesbaynham / simple-modbus

Automatically exported from code.google.com/p/simple-modbus
3 stars 4 forks source link

modbus update(); #40

Open rubens45 opened 9 months ago

rubens45 commented 9 months ago

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.