reference
reference copied to clipboard
Does `SubscriptionMode` only apply to `STREAM` subscriptions?
enum SubscriptionMode {
TARGET_DEFINED = 0; // The target selects the relevant mode for each element.
ON_CHANGE = 1; // The target sends an update on element value change.
SAMPLE = 2; // The target samples values according to the interval.
}
Since the spec only talks about this for STREAM, it appears to me that this is only relevant to STREAM subscriptions, and not ONCE or POLL. Is my understanding correct?
Yes, I think that is correct, since ONCE will mean all values should be sent now (regardless of how they are updated), and POLL says the same thing, just on a repeated basis, then these appear only relevant to STREAM.
r.