Hello!
I was wondering what is the best way to read tag values every ‘n’ seconds (at least one second). After reading, the module would do some operations and store them.
I have explored registering a thread which uses TagManager.readAsync()
. The problem with this option is that I’m not confident that this will work ar high frequencies since I don’t want to miss any data and there could be many tags. I also don’t think registering a thread per tag (or group of tags) is sustainable.
Other option would be subscribing to Tag Change and saving the data with a timestamp.
I would love to hear the community’s opinion on this topic
Thank you!