Bluenet  5.7.0
Bluenet, firmware for nRF52 smart home devices
Loading...
Searching...
No Matches
cs_SetupService.h
Go to the documentation of this file.
1
7#pragma once
8
10#include <ble/cs_Nordic.h>
11#include <ble/cs_Service.h>
14
15//#define GENERAL_SERVICE_UPDATE_FREQUENCY 10 //! hz
16
21public:
25
32
33 void handleEvent(event_t& event);
34
35protected:
37
38 inline void addSetupKeyCharacteristic(buffer_ptr_t buffer, uint16_t size);
39
40private:
41 // stores the MAC address of the devices to be used for mesh message handling
42 ble_gap_addr_t _myAddr;
43
44 uint8_t _keyBuffer[SOC_ECB_KEY_LENGTH];
45
48};
Characteristic of generic type T.
Definition: cs_Characteristic.h:29
Author: Crownstone Team Copyright: Crownstone (https://crownstone.rocks) Date: Oct 22,...
Definition: cs_CrownstoneService.h:25
Author: Crownstone Team Copyright: Crownstone (https://crownstone.rocks) Date: Oct 22,...
Definition: cs_SetupService.h:20
Characteristic< buffer_ptr_t > * _macAddressCharacteristic
Definition: cs_SetupService.h:46
void handleEvent(event_t &event)
Perform non urgent functionality every main loop.
uint8_t _keyBuffer[SOC_ECB_KEY_LENGTH]
Definition: cs_SetupService.h:44
Characteristic< buffer_ptr_t > * _setupKeyCharacteristic
Definition: cs_SetupService.h:47
void addSetupKeyCharacteristic(buffer_ptr_t buffer, uint16_t size)
void addMacAddressCharacteristic()
SetupService()
Setup Service derivces from Crownstone Service.
void createCharacteristics()
Initialize the Setup Service object.
ble_gap_addr_t _myAddr
Definition: cs_SetupService.h:42
Author: Crownstone Team Copyright: Crownstone (https://crownstone.rocks) Date: Oct 9,...
Definition: cs_Event.h:26
BLE service.
uint8_t * buffer_ptr_t
Author: Crownstone Team Copyright: Crownstone (https://crownstone.rocks) Date: 10 May....
Definition: cs_Typedefs.h:19