30 #ifndef APPLICATION_SENSEBE_BLE_H_ 31 #define APPLICATION_SENSEBE_BLE_H_ 36 #include "dev_id_fw_ver.h" 41 uint8_t battery_status;
65 uint8_t day_or_night: 1;
76 uint8_t pre_focus : 1;
103 uint16_t larger_value;
104 uint8_t smaller_value;
113 oper_time_t oper_time;
115 uint16_t detect_window;
118 uint16_t intr_trig_timer;
127 uint16_t timer_interval;
129 oper_time_t oper_time;
137 oper_time_t oper_time;
139 uint8_t is_enable: 1;
148 uint8_t ir_tx_speed: 2;
156 uint8_t ir_tx_pwr: 2;
167 tssp_conf_t tssp_conf;
169 timer_conf_t timer_conf;
171 ir_tx_conf_t ir_tx_conf;
178 uint8_t * scan_rsp_data;
179 uint16_t scan_rsp_len;
181 sensebe_ble_adv_data_t;
190 void (* config_update)(sensebe_config_t * cfg));
void sensebe_ble_update_sysinfo(sensebe_sysinfo *sysinfo)
Updates the characteristic that stores the sysinfo.
void sensebe_ble_stack_init(void)
Function for initializing the BLE stack by enabling the SoftDevice and the BLE event interrupt.
void sensebe_ble_service_init(void)
Create the Service and its characteristics for the SensePi device. There is a read-only characteristi...
void sensebe_ble_init(void(*ble_sd_evt)(ble_evt_t *evt), void(*config_update)(sensebe_config_t *cfg))
Initialize the handlers to pass the BLE SD events and the configuration received from the mobile app.
Strcture for Operation time.
void sensebe_ble_disconn(void)
Disconnect the current active connection, if already connected.
void sensebe_ble_update_config(sensebe_config_t *config)
Updates the characteristic that stores the SensePi config.
void sensebe_ble_adv_start(void)
Function to start advertising.
void sensebe_ble_gap_params_init(void)
Generic Access Profile initialization. The device name, and the preferred connection parameters are s...
Trigger only on motion detection.
void sensebe_ble_adv_init(sensebe_ble_adv_data_t *sensebe_ble_adv_data)
Function to initializing the advertising.
trigger_conf_t
Enum of all posiible modes of operation.