Go to the documentation of this file.
61 #include "custom_config.h"
69 #define TPS_C_CONNECTION_MAX 10
uint16_t tps_srvc_end_handle
TPS Service end handle.
void(* tps_c_evt_handler_t)(tps_c_evt_t *p_evt)
Tx Power Service Client event handler type.
uint16_t tps_srvc_start_handle
TPS Service start handle.
tps_c_evt_type_t
Tx Power Service Client event type.
@ TPS_C_EVT_TX_POWER_LEVEL_RECEIVE
TPS Client has received Tx Power Level value.
sdk_err_t tps_client_init(tps_c_evt_handler_t evt_handler)
Register TPS Client event handler.
Tx Power Service Client event.
sdk_err_t tps_c_tx_power_level_read(uint8_t conn_idx)
Read Tx Power Level characteristic value.
Profile/Service Common Types.
uint16_t sdk_err_t
SDK API result type.
uint8_t conn_idx
The connection index.
@ TPS_C_EVT_DISCOVERY_COMPLETE
TPS Client has found TPS service and its characteristics.
Handles on the connected peer device needed to interact with it.
uint16_t tps_tx_power_level_handle
TPS Tx Power Level characteristic Value handle which has been got from peer.
int8_t tx_power_level
Tx Power level.
tps_c_evt_type_t evt_type
TPS Client event type.
sdk_err_t tps_c_disc_srvc_start(uint8_t conn_idx)
Discovery Tx Power Service on peer.
@ TPS_C_EVT_INVALID
TPS Client invalid event.
@ TPS_C_EVT_DISCOVERY_FAIL
TPS Client found TPS service failed because of invalid operation or no found at the peer.