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

Class to test the BleCentral class. More...

#include <cs_TestCentral.h>

Inheritance diagram for TestCentral:
Collaboration diagram for TestCentral:

Public Member Functions

 TestCentral ()
 
void init ()
 
void connect ()
 
void discover ()
 
void onDiscovery (ble_central_discovery_t &packet)
 
void read ()
 
void write ()
 
void disconnect ()
 
void handleEvent (event_t &event)
 Handle events. More...
 

Private Attributes

uint16_t _fwVersionHandle
 
uint16_t _controlHandle
 

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

◆ TestCentral()

Member Function Documentation

◆ connect()

void TestCentral::connect ( )

◆ disconnect()

void TestCentral::disconnect ( )

◆ discover()

void TestCentral::discover ( )

◆ handleEvent()

void TestCentral::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 TestCentral::init ( )

◆ onDiscovery()

void TestCentral::onDiscovery ( ble_central_discovery_t packet)

◆ read()

void TestCentral::read ( )

◆ write()

void TestCentral::write ( )

Member Data Documentation

◆ _controlHandle

uint16_t TestCentral::_controlHandle
private

◆ _fwVersionHandle

uint16_t TestCentral::_fwVersionHandle
private

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