Function anjay_has_unsent_notifications

Function Documentation

bool anjay_has_unsent_notifications(anjay_t *anjay, anjay_ssid_t ssid)

Returns whether there are some notifications which have been postponed to be sent later, either due to the connection being offline or a previous failure to send some notification.

The check is performed for one specific server, or for all known servers at once. In versions that do not include the SMS commercial feature, only the primary connections are included (including the case where SMS transport is the only one in use for a given Server Account), secondary SMS Trigger connections are not.

Parameters:
  • anjay – Anjay object to operate on.

  • ssid – A Short Server ID of a single regular LwM2M Server for which to get the information, or ANJAY_SSID_ANY to check whether unsent notifications exist for any known server connection.

Returns:

False if all generated notifications for given server(s) have been either successfully sent, discarded or are being sent at the moment. True otherwise, i.e. if unsent, postponed notifications exist in memory.