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;
115 uint16_t larger_value;
116 uint8_t smaller_value;
149 oper_time_t oper_time;
153 uint16_t intr_trig_timer;
162 uint16_t timer_interval;
164 oper_time_t oper_time;
175 cam_oper_t cam_trigs[MAX_TRIGGERS];
181 timer_conf_t timer_conf;
189 uint8_t * scan_rsp_data;
190 uint16_t scan_rsp_len;
192 sensebe_ble_adv_data_t;
201 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.
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.