Go to the documentation of this file.
61 #include "custom_config.h"
69 #define LLS_C_CONNECTION_MAX 10
lls_c_evt_type_t
Link Loss Service Client event type.
@ LLS_C_EVT_ALERT_LEVEL_RECEIVE
LLS Client has received Alert Level value.
uint8_t conn_idx
The connection index.
sdk_err_t lls_client_init(lls_c_evt_handler_t evt_handler)
Register LLS Client event handler.
void(* lls_c_evt_handler_t)(lls_c_evt_t *p_evt)
Link Loss Service Client event handler type.
@ LLS_C_EVT_ALERT_LEVEL_SET_ERR
Error occured when LLS Client set Alert Level characteristics.
@ LLS_C_ALERT_LEVEL_MILD_ALERT
Mild alert.
sdk_err_t lls_c_alert_level_read(uint8_t conn_idx)
Read Alert Level characteristic value.
@ LLS_C_EVT_ALERT_LEVEL_SET_SUCCESS
LLS Client has set Alert Level characteristics.
@ LLS_C_EVT_INVALID
LLS Client invalid event.
sdk_err_t lls_c_disc_srvc_start(uint8_t conn_idx)
Discovery Link Loss Service on peer.
lls_c_alert_level_t
Link Loss Service Client alert levels.
lls_c_alert_level_t alert_level
Alert level.
uint16_t lls_srvc_start_handle
LLS Service start handle.
Profile/Service Common Types.
@ LLS_C_EVT_DISCOVERY_FAIL
LLS Client found LLS service failed because of invalid operation or no found at the peer.
uint16_t sdk_err_t
SDK API result type.
lls_c_evt_type_t evt_type
LLS Client event type.
@ LLS_C_ALERT_LEVEL_NO_ALERT
No alert.
@ LLS_C_ALERT_LEVEL_HIGH_ALERT
High alert.
uint16_t lls_alert_level_handle
LLS Alert Level characteristic Value handle which has been got from peer.
Handles on the connected peer device needed to interact with it.
@ LLS_C_EVT_DISCOVERY_COMPLETE
LLS Client has found LLS service and its characteristics.
sdk_err_t lls_c_alert_level_set(uint8_t conn_idx, lls_c_alert_level_t alert_level)
Set peer Alert Level.
Link Loss Service Client event.
uint16_t lls_srvc_end_handle
LLS Service end handle.