I am setting up a Peer-to-Peer where I need to get one piece of information from a variable on another R2. The variable may end up being used in a couple different places and/or charts. Do I need to just call that get REST sub that gets my variable every time I need it or is there a better way to keep it updated? In other words should I have a chart to just periodically update variables from a peer unit or is there a better way to keep those variables up to date?
One of the charts that will use this variable is going to rely on it for a ‘do while’ and I don’t want it to get stuck in the loop while because the variable hasn’t been updated. I could have it run the get REST sub every time it goes through the for loop which is inside the do while loop, but I’m wondering if that’s the best way if it may be updated elsewhere at the same time?