Sending multiple VirtualWrite in 1 connection packet

Not sure about the category. After reading the documentation “Calling virtualWrite attempts to send the value to the network immediately.”

Is there a way to send multiple separate virutalWrite commands with connection? In theory that would reduce the overhead on the server and speed up the transmission speed if you want to send multiple relatively small data packets. Or is it not an issue?

As long as the loop is run this is not an issue. The connection is normally kept alive and as long as the device is not “disturbed” with sleep or delays introduced, you shouldn’t worry about that.

1 Like