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
I have small issue when working with Subscription feature. I realised that after keepAliveinterval specified in SubscriptionProperties, my Subscription gets flooded by notifications even that data didn't changed...
Is it possible to turn off notifications (publishCallback()) when keepAliveinterval is reached?
I'm using the code similar to one i tutorial:
flatbuffers::FlatBufferBuilder builder;
auto dataChange = comm::datalayer::CreateSampling(builder, 2500);
auto rule = comm::datalayer::CreateProperty(builder, comm::datalayer::Properties::Properties_Sampling, dataChange.Union());
auto rules = builder.CreateVector(&rule, 1);
auto idTmp = builder.CreateString(id);
builder.Finish(comm::datalayer::CreateSubscriptionProperties(builder, idTmp, 60000, 1000, rules));
comm::datalayer::Variant subscriptionProperties;
subscriptionProperties.shareFlatbuffers(builder);
auto result = m_datalayerClient->createSubscriptionSync(subscriptionProperties, publishCallback());
I would like to have notification only when data is changed, and in the case keepAliveInterval is reached I don't want to have any publishCallback().
The text was updated successfully, but these errors were encountered:
I have small issue when working with Subscription feature. I realised that after keepAliveinterval specified in SubscriptionProperties, my Subscription gets flooded by notifications even that data didn't changed...
Is it possible to turn off notifications (publishCallback()) when keepAliveinterval is reached?
I'm using the code similar to one i tutorial:
I would like to have notification only when data is changed, and in the case keepAliveInterval is reached I don't want to have any publishCallback().
The text was updated successfully, but these errors were encountered: