Bluenet
5.7.0
Bluenet, firmware for nRF52 smart home devices
|
Class to test the BleCentral class. More...
#include <cs_TestCrownstoneCentral.h>
Public Member Functions | |
TestCrownstoneCentral () | |
void | init () |
void | connect () |
void | read () |
void | writeGetMac () |
void | writeSetup () |
void | writeGetPowerSamples () |
void | disconnect () |
void | handleEvent (event_t &event) |
Handle events. More... | |
Private Attributes | |
uint8_t | _writeStep = 0 |
Additional Inherited Members | |
![]() | |
EventListener () | |
virtual | ~EventListener () |
unregisters the listener. More... | |
virtual void | handleEvent (event_t &event)=0 |
Handle events. More... | |
void | listen () |
Registers this with the EventDispatcher. More... | |
Class to test the BleCentral class.
Currently has hard coded values, so it's really plug and play. It also serves as an example usage.
void TestCrownstoneCentral::connect | ( | ) |
void TestCrownstoneCentral::disconnect | ( | ) |
|
virtual |
Handle events.
This method is overloaded by all classes that derive from EventListener. They can receive an event_t struct and act upon it. These events are dispatched by the EventDispatcher.
Implements EventListener.
void TestCrownstoneCentral::init | ( | ) |
void TestCrownstoneCentral::read | ( | ) |
void TestCrownstoneCentral::writeGetMac | ( | ) |
void TestCrownstoneCentral::writeGetPowerSamples | ( | ) |
void TestCrownstoneCentral::writeSetup | ( | ) |
|
private |