Pass parameter to tag.writeAsync

You really don't want to call readBlocking() in a loop. See this topic for an example of combining many tag reads into a single call, then looping through the grouped results:

I would also construct a SQL INSERT statement with a multi-row VALUES clause, permitting a single DB call as well.

1 Like