You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Every time I call grp->save(), I find that the AdafruitIO_Data object has all the different feeds in it that it has ever touched, and they all get sent to IO again. It seems like it also has the data received and sent to handleMessage(). Sometimes the data is duplicated, like this:
FOREVER = never-comes
Temperature = 72
forever = never-comes
temperature = 71
One problem is that I don't want to publish every value that I've already sent before when I save. Another is that there are duplicated feeds here. It's not clear to me what will be "saved" when I publish a feed with both "Temperature=72" and (keyname) "temperature=71" in the data collection.
It's important to me that I don't Publish old values that might now be stale. This scenario would create a race between my Published updates and the dashboard updates I could receive, but it doesn't give me any clear option to avoid this race.
I can work around this by creating a new Group object every time I want to publish, but it wasn't clear to me that this was required from the docs, and this behavior is unexpected.
The text was updated successfully, but these errors were encountered:
I have some code like this where I have a single AdafruitIO_Group object that I use to interact with a feed group.
Every time I call grp->save(), I find that the AdafruitIO_Data object has all the different feeds in it that it has ever touched, and they all get sent to IO again. It seems like it also has the data received and sent to handleMessage(). Sometimes the data is duplicated, like this:
One problem is that I don't want to publish every value that I've already sent before when I save. Another is that there are duplicated feeds here. It's not clear to me what will be "saved" when I publish a feed with both "Temperature=72" and (keyname) "temperature=71" in the data collection.
It's important to me that I don't Publish old values that might now be stale. This scenario would create a race between my Published updates and the dashboard updates I could receive, but it doesn't give me any clear option to avoid this race.
I can work around this by creating a new Group object every time I want to publish, but it wasn't clear to me that this was required from the docs, and this behavior is unexpected.
The text was updated successfully, but these errors were encountered: