Ok, I checked the monitoring items settings and found a hardly noticible typo in my code.
Thanks for the point!
Now I'm receiving the values for the whole queue.
But some other difficulties have emerged,
since I need to split the incoming data stream into rows of records in the database.
Which was easy while queueSize was set to 1.
1. How to understand which received variable values belong to which sample (row in the queue)?
My variables have changed 3 times and I am getting values sequentially for variables v1, v2, v1, v2, v1, v2.
This situation is simple, the data obtained can be easily divided into samples: v1, v2 | v1, v2 | v1, v2.
But imagine that the values of some variables change only occasionally: v1, v2, v3, v1, v2, v1, v2.
Now the division into samples is ambiguous:
v1, v2, v3 | v1, v2 | v1, v2
or
v1, v2 | v3, v1, v2 | v1, v2.
Is a timestamp what is needed to solve this problem?
2. Is it possible to somehow know where the end of the data transfer is? Which of the callback triggers is the last one for the publishing interval?
Thanks for your answers!