Function anjay_transport_next_planned_notify_trigger
Defined in File core.h
Function Documentation
-
avs_time_real_t anjay_transport_next_planned_notify_trigger(anjay_t *anjay, anjay_transport_set_t transport_set)
Returns the time at which the earliest notification trigger is scheduled for any of the given transports if no outside intervention that might reschedule it (e.g. anjay_notify_changed or a Write Attributes request from a server) happens until that time.
In versions that do not include the SMS commercial feature, or if no SMS trigger connections exist,
is equivalent toanjay_transport_next_planned_notify_trigger(anjay,
ANJAY_TRANSPORT_SET_ALL)
anjay_next_planned_notify_trigger(anjay, ANJAY_SSID_ANY). In contrast to that function, both primary and secondary (SMS trigger) connections are queried, if present. Different transport sets may be used to filter the set of server connections queried to only those for which the connection transport matches the provided set.- Parameters:
anjay – Anjay object to operate on.
transport_set – Set of transports to include in calculation.
- Returns:
Point in time according to the real-time clock at which the earliest notification trigger is scheduled, or
AVS_TIME_REAL_INVALIDif there are none.