Bluenet  5.7.0
Bluenet, firmware for nRF52 smart home devices
Loading...
Searching...
No Matches
TestCrownstoneCentral Class Reference

Class to test the BleCentral class. More...

#include <cs_TestCrownstoneCentral.h>

Inheritance diagram for TestCrownstoneCentral:
Collaboration diagram for TestCrownstoneCentral:

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

- Private Member Functions inherited from EventListener
 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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ TestCrownstoneCentral()

Member Function Documentation

◆ connect()

void TestCrownstoneCentral::connect ( )

◆ disconnect()

void TestCrownstoneCentral::disconnect ( )

◆ handleEvent()

void TestCrownstoneCentral::handleEvent ( event_t event)
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.

◆ init()

void TestCrownstoneCentral::init ( )

◆ read()

void TestCrownstoneCentral::read ( )

◆ writeGetMac()

void TestCrownstoneCentral::writeGetMac ( )

◆ writeGetPowerSamples()

void TestCrownstoneCentral::writeGetPowerSamples ( )

◆ writeSetup()

void TestCrownstoneCentral::writeSetup ( )

Member Data Documentation

◆ _writeStep

uint8_t TestCrownstoneCentral::_writeStep = 0
private

The documentation for this class was generated from the following file: