syncIO()
syncIO()
Manually syncs IO points with local variables between run() calls.
IO variables are synced with local variables whenever run() executes. If you
need IO point updates to take effect during the loop body — for example to
change a relay immediately — call syncIO() manually.
Example
io.relay1.state = true;
syncIO(); // push the change now instead of waiting for run()