Go to the documentation of this file.
62 #include "custom_config.h"
70 #define BAS_C_CONNECTION_MAX 10
uint16_t bas_bat_level_handle
uint16_t bas_bat_level_cccd_handle
@ BAS_C_EVT_BAT_LEVEL_NTF_SET_ERR
sdk_err_t bas_c_bat_level_notify_set(uint8_t conn_idx, bool is_enable)
Enable or disable peer Battery Level characteristic notify.
@ BAS_C_EVT_DISCOVERY_FAIL
uint16_t bas_srvc_end_handle
bas_c_evt_type_t evt_type
uint16_t bas_bat_level_pres_handle
sdk_err_t bas_c_bat_level_read(uint8_t conn_idx)
Read Battery Level characteristic value.
bas_c_evt_type_t
Battery Service Client event type.
@ BAS_C_EVT_DISCOVERY_COMPLETE
Profile/Service Common Types.
sdk_err_t bas_c_disc_srvc_start(uint8_t conn_idx)
Discovery Battery Service on peer.
uint16_t sdk_err_t
SDK API result type.
Battery Service Client event.
sdk_err_t bas_client_init(bas_c_evt_handler_t evt_handler)
Register BAS Client event handler.
@ BAS_C_EVT_BAT_LEVE_RECEIVE
Handles on the connected peer device needed to interact with it.
void(* bas_c_evt_handler_t)(bas_c_evt_t *p_evt)
Battery Service Client event handler type.
uint16_t bas_srvc_start_handle
@ BAS_C_EVT_BAT_LEVEL_NTF_SET_SUCCESS