phyphox BLE
Plot your Arduino's data in the phyphox app and control the board from the phone
Loading...
Searching...
No Matches
phyphox::TransportListener Class Referenceabstract

Callbacks from the transport into the core (implemented by Server). More...

#include <Transport.h>

Inheritance diagram for phyphox::TransportListener:

Public Member Functions

virtual ~TransportListener ()
 
virtual void onConnect ()=0
 
virtual void onDisconnect ()=0
 
virtual void onSubscribe (CharId id, bool enabled)=0
 The central enabled/disabled notifications on id (only CH_EXPERIMENT and CH_DATA are notifiable).
 
virtual void onWrite (CharId id, const uint8_t *data, uint16_t len)=0
 The central wrote len bytes to id.
 
virtual void onNotifyStatus (CharId id, bool accepted)=0
 Asynchronous verdict on the last notify() for stacks that report it later.
 
virtual void pump ()=0
 Drive the transfer: send what is due.
 

Detailed Description

Callbacks from the transport into the core (implemented by Server).

Constructor & Destructor Documentation

◆ ~TransportListener()

virtual phyphox::TransportListener::~TransportListener ( )
inlinevirtual

Member Function Documentation

◆ onConnect()

virtual void phyphox::TransportListener::onConnect ( )
pure virtual

Implemented in phyphox::Server.

◆ onDisconnect()

virtual void phyphox::TransportListener::onDisconnect ( )
pure virtual

Implemented in phyphox::Server.

◆ onNotifyStatus()

virtual void phyphox::TransportListener::onNotifyStatus ( CharId  id,
bool  accepted 
)
pure virtual

Asynchronous verdict on the last notify() for stacks that report it later.

Transports whose notify() is synchronous never call this.

Implemented in phyphox::Server.

◆ onSubscribe()

virtual void phyphox::TransportListener::onSubscribe ( CharId  id,
bool  enabled 
)
pure virtual

The central enabled/disabled notifications on id (only CH_EXPERIMENT and CH_DATA are notifiable).

Implemented in phyphox::Server.

◆ onWrite()

virtual void phyphox::TransportListener::onWrite ( CharId  id,
const uint8_t *  data,
uint16_t  len 
)
pure virtual

The central wrote len bytes to id.

Implemented in phyphox::Server.

◆ pump()

virtual void phyphox::TransportListener::pump ( )
pure virtual

Drive the transfer: send what is due.

Called by the core from poll(), or by a transport that runs the transfer in its own task (ESP32, see drivesTransfer()). Never called from inside a stack callback.

Implemented in phyphox::Server.


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