Author: Crownstone Team Copyright: Crownstone (https://crownstone.rocks) Date: Oct 22, 2014 License: LGPLv3+, Apache License 2.0, and/or MIT (triple-licensed)
More...
#include <cs_SetupService.h>
|
void | addMacAddressCharacteristic () |
|
void | addSetupKeyCharacteristic (buffer_ptr_t buffer, uint16_t size) |
|
void | createCharacteristics () |
| Initialize a CrownstoneService object. More...
|
|
void | addControlCharacteristic (buffer_ptr_t buffer, cs_buffer_size_t size, uint16_t charUuid, EncryptionAccessLevel minimumAccessLevel) |
| Enable the control characteristic. More...
|
|
void | addResultCharacteristic (buffer_ptr_t buffer, cs_buffer_size_t size, uint16_t charUuid, EncryptionAccessLevel minimumAccessLevel) |
| Enable the result characteristic. More...
|
|
void | addFactoryResetCharacteristic () |
|
void | addSessionDataCharacteristic (buffer_ptr_t buffer, cs_buffer_size_t size, EncryptionAccessLevel minimumAccessLevel=BASIC) |
|
void | getReadBuffer (buffer_ptr_t &buffer, cs_buffer_size_t &maxLength) |
|
void | getWriteBuffer (buffer_ptr_t &buffer, cs_buffer_size_t &maxLength) |
|
void | removeBuffer () |
|
void | writeResult (uint8_t protocol, CommandHandlerTypes type, cs_result_t &result) |
| Write a result to the result characteristic. More...
|
|
void | writeResult (uint8_t protocol, CommandHandlerTypes type, cs_ret_code_t retCode, cs_data_t data) |
| Write a result to the result characteristic. More...
|
|
Author: Crownstone Team Copyright: Crownstone (https://crownstone.rocks) Date: Oct 22, 2014 License: LGPLv3+, Apache License 2.0, and/or MIT (triple-licensed)
Setup Service for the Crownstone
◆ SetupService()
◆ addMacAddressCharacteristic()
void SetupService::addMacAddressCharacteristic |
( |
| ) |
|
|
inlineprotected |
◆ addSetupKeyCharacteristic()
void SetupService::addSetupKeyCharacteristic |
( |
buffer_ptr_t |
buffer, |
|
|
uint16_t |
size |
|
) |
| |
|
inlineprotected |
◆ createCharacteristics()
void SetupService::createCharacteristics |
( |
| ) |
|
|
virtual |
◆ handleEvent()
void SetupService::handleEvent |
( |
event_t & |
event | ) |
|
|
virtual |
Perform non urgent functionality every main loop.
Every component has a "tick" function which is for non-urgent things. Urgent matters have to be resolved immediately in interrupt service handlers. The temperature for example is updated every tick, because timing is not important for this at all.
Reimplemented from CrownstoneService.
◆ _keyBuffer
uint8_t SetupService::_keyBuffer[SOC_ECB_KEY_LENGTH] |
|
private |
◆ _macAddressCharacteristic
◆ _myAddr
ble_gap_addr_t SetupService::_myAddr |
|
private |
◆ _setupKeyCharacteristic
The documentation for this class was generated from the following file: