30 #ifndef APPLICATION_SENSEBE_BLE_H_ 31 #define APPLICATION_SENSEBE_BLE_H_ 36 #include "dev_id_fw_ver.h" 41 uint8_t battery_status;
77 uint8_t day_or_night: 1;
88 uint8_t pre_focus : 1;
115 uint16_t larger_value;
116 uint8_t smaller_value;
147 uint16_t timer_interval;
149 oper_time_t oper_time;
156 oper_time_t oper_time;
186 cam_oper_t cam_trigs[MAX_TRIGGERS];
190 timer_conf_t timer_conf;
199 uint8_t * scan_rsp_data;
200 uint16_t scan_rsp_len;
202 sensebe_ble_adv_data_t;
211 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.
cam_trig_ls_t
Enum to store the list of camera triggers possible.
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.
uint8_t ir_tx_speed
To decide the time between 2 signals for IR transmitter. @TIME 0 5ms\ 1 25ms\ 2 50ms\ 3 100ms.
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.
device_speed_t
Enum to select operation speed for Device.
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.