Go to the documentation of this file.
49 #include "es_app_config.h"
52 #include "ble_sdk_error.h"
53 #include "es_utility.h"
55 #include "es_gatts_read_write.h"
67 ESCS_BROADCAST_CAP_RD_CHAR,
68 ESCS_BROADCAST_CAP_RD_VALUE,
69 ESCS_ACTIVE_SLOT_RW_CHAR,
70 ESCS_ACTIVE_SLOT_RW_VALUE,
71 ESCS_ADV_INTERVAL_RW_CHAR,
72 ESCS_ADV_INTERVAL_RW_VALUE,
73 ESCS_RADIO_TX_PWR_RW_CHAR,
74 ESCS_RADIO_TX_PWR_RW_VALUE,
75 ESCS_ADV_TX_PWR_RW_CHAR,
76 ESCS_ADV_TX_PWR_RW_VALUE,
77 ESCS_LOCK_STATE_RW_CHAR,
78 ESCS_LOCK_STATE_RW_VALUE,
81 ESCS_PUBLIC_ECDH_KEY_RD_CHAR,
82 ESCS_PUBLIC_ECDH_KEY_RD_VALUE,
83 ESCS_EID_ID_KEY_RD_CHAR,
84 ESCS_EID_ID_KEY_RD_VALUE,
85 ESCS_RW_ADV_SLOT_RW_CHAR,
86 ESCS_RW_ADV_SLOT_RW_VALUE,
87 ESCS_FACTORY_RESET_SET_CHAR,
88 ESCS_FACTORY_RESET_SET_VALUE,
89 ESCS_REMAIN_CONNECTABLE_RW_CHAR,
90 ESCS_REMAIN_CONNECTABLE_RW_VALUE,
103 uint8_t security_key[ESCS_LOCK_CODE_WRITE_LENGTH];
110 uint8_t pub_ecdh_key[ESCS_ECDH_KEY_SIZE];
120 int8_t slot_tx_power[APP_MAX_ADV_SLOTS];
124 #if(APP_IS_EID_SUPPORTED)
126 #endif //APP_IS_EID_SUPPORTED
bool es_beacon_has_eid_adv(void)
to konw if a beacon has EID slot
slot_lock_code_t beacon_lock_code
beacon lock code.
Definition: escs.h:123
bool remain_connectable
whether to remain connectable.
Definition: escs.h:122
int8_t es_slot_tx_power_get(void)
get advertised tx power of a slot
uint8_t active_slot_no
curret active slot number.
Definition: escs.h:117
uint16_t es_adv_interval_get(void)
get advertising interval for slot
Structure for storing EID slot key.
Definition: escs.h:109
void es_active_slot_number_set(uint8_t slot_no)
set number of the actived slot
uint8_t k_scaler
K rotation scaler.
Definition: escs.h:104
void es_public_ecdh_key_get(uint8_t *p_ecdh_key_buf)
get public ecdh key
uint16_t adv_interval
advertising interval.
Definition: escs.h:119
int8_t es_adv_tx_power_get(void)
get the radio tx power
sdk_err_t esec_service_init(ble_escs_init_params_t *p_escs_init)
Initialize Eddystone Configuration Service,and data for the service.
void es_adv_remain_connectable_set(bool remain_connectable)
set eddystone remain connectable state
Profile/Service Common Types.
uint16_t sdk_err_t
SDK API result type.
Definition: ble_error.h:243
escs_attr_idx_t
ESCS Service Attributes Indexes.
Definition: escs.h:65
void es_slot_tx_power_set(int8_t tx_power)
set advertised tx power of a slot
uint8_t lock_state
beacon lock state.
Definition: escs.h:118
void set_beacon_unlocked(void)
unlock a beacon
void es_public_ecdh_key_set(uint8_t *p_ecdh_key_buf)
set public ecdh key
uint8_t k_scaler
K rotation scaler.
Definition: escs.h:111
void es_security_key_set(uint8_t *p_security_key, bool is_eid_write)
set security key for slot
uint8_t es_active_slot_number_get(void)
get number of the actived slot
int8_t adv_tx_power
advertised tx Power.
Definition: escs.h:121
bool es_adv_remain_connectable_get(void)
get eddystone remain connectable state
void set_beacon_locked(void)
lock a beacon
Structure for storing a slot key.
Definition: escs.h:102
void es_adv_interval_set(uint16_t adv_interval)
set advertising interval for slot
EddyStone Configuration Service environment variable.
Definition: escs.h:116
bool is_active_slot_eid(void)
to know if the actived slot is a n EID slot
void es_adv_tx_power_set(int8_t adv_tx_power)
set the radio tx power