Go to the documentation of this file.
61 #include "custom_config.h"
69 #define IAS_C_CONNECTION_MAX 10
sdk_err_t ias_c_alert_level_set(uint8_t conn_idx, ias_c_alert_level_t alert_level)
Enable or disable peer Alert Level characteristic notify.
void(* ias_c_evt_handler_t)(ias_c_evt_t *p_evt)
Immediate Alert Service Client event handler type.
@ IAS_C_EVT_ALERT_LEVEL_SET_SUCCESS
IAS Client has set Alert Level characteristic.
uint16_t ias_alert_level_handle
IAS Alert Level characteristic Value handle which has been got from peer.
Immediate Alert Service Client event.
uint16_t ias_srvc_end_handle
IAS Service end handle.
ias_c_evt_type_t evt_type
IAS Client event type.
@ IAS_C_EVT_DISCOVERY_COMPLETE
IAS Client has found BAS service and its characteristics.
@ IAS_C_ALERT_HIGH
High alert.
@ IAS_C_EVT_INVALID
IAS Client invalid event.
@ IAS_C_ALERT_MILD
Mild alert.
@ IAS_C_EVT_ALERT_LEVEL_SET_ERR
Error occured when IAS Client set Alert Level characteristic.
Profile/Service Common Types.
ias_c_alert_level_t
Immediate Alert Service Alert levels.
@ IAS_C_ALERT_NONE
No alert.
Handles on the connected peer device needed to interact with it.
uint16_t sdk_err_t
SDK API result type.
sdk_err_t ias_c_disc_srvc_start(uint8_t conn_idx)
Discovery Immediate Alert Service on peer.
ias_c_evt_type_t
Immediate Alert Service Client event type.
sdk_err_t ias_client_init(ias_c_evt_handler_t evt_handler)
Register IAS Client event handler.
@ IAS_C_EVT_DISCOVERY_FAIL
IAS Client found BAS service failed because of invalid operation or no found at the peer.
uint8_t conn_idx
The connection index.
uint16_t ias_srvc_start_handle
IAS Service start handle.