nRF Connect SDK API 2.8.99
|
int sms_register_listener | ( | sms_callback_t | listener, |
void * | context ) |
#include <include/modem/sms.h>
Register a new listener to SMS library.
Also registers to modem's SMS service if it is not already subscribed.
A listener is identified by a unique handle value. This handle should be used to unregister the listener. A listener can be registered multiple times with the same or a different context.
[in] | listener | Callback function. Cannot be null. |
[in] | context | User context. Can be null if not used. |
-EINVAL | Invalid parameter. |
-ENOSPC | List of observers is full. |
-EBUSY | Indicates that one SMS client has already been registered towards the modem and SMS subscriber module is not able to do it. |
-ENOMEM | Out of memory. |