|
Bluenet
5.7.0
Bluenet, firmware for nRF52 smart home devices
|
Class to test the BleCentral class. More...
#include <cs_TestCentral.h>


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... | |
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 TestCentral::connect | ( | ) |
| void TestCentral::disconnect | ( | ) |
| void TestCentral::discover | ( | ) |
|
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 TestCentral::init | ( | ) |
| void TestCentral::onDiscovery | ( | ble_central_discovery_t & | packet | ) |
| void TestCentral::read | ( | ) |
| void TestCentral::write | ( | ) |
|
private |
|
private |