30 #ifndef APPLICATION_SENSE_PIR_SENSEPI_BLE_H_ 31 #define APPLICATION_SENSE_PIR_SENSEPI_BLE_H_ 36 #include "dev_id_fw_ver.h" 41 uint8_t battery_status;
119 oper_time_t oper_time;
140 uint8_t * scan_rsp_data;
141 uint16_t scan_rsp_len;
143 sensepi_ble_adv_data_t;
152 void (* config_update)(sensepi_config_t * cfg));
void sensepi_ble_update_sysinfo(sensepi_sysinfo *sysinfo)
Updates the characteristic that stores the sysinfo.
void sensepi_ble_gap_params_init(void)
Generic Access Profile initialization. The device name, and the preferred connection parameters are s...
void sensepi_ble_stack_init(void)
Function for initializing the BLE stack by enabling the SoftDevice and the BLE event interrupt.
void sensepi_ble_adv_start(void)
Function to start advertising.
void sensepi_ble_service_init(void)
Create the Service and its characteristics for the SensePi device. There is a read-only characteristi...
void sensepi_ble_init(void(*ble_sd_evt)(ble_evt_t *evt), void(*config_update)(sensepi_config_t *cfg))
Initialize the handlers to pass the BLE SD events and the configuration received from the mobile app.
void sensepi_ble_update_config(sensepi_config_t *config)
Updates the characteristic that stores the SensePi config.
Strcture for Operation time.
Trigger only on motion detection.
void sensepi_ble_disconn(void)
Disconnect the current active connection, if already connected.
void sensepi_ble_adv_init(sensepi_ble_adv_data_t *sensepi_ble_adv_data)
Function to initializing the advertising.
trigger_conf_t
Enum of all posiible modes of operation.