#include <Transport.h>
|
| virtual | ~Transport () |
| |
| virtual bool | begin (const GattLayout &layout, TransportListener &listener)=0 |
| | Create services and characteristics, start advertising the experiment service.
|
| |
| virtual bool | notify (CharId id, const uint8_t *data, uint16_t len)=0 |
| | Send a notification.
|
| |
| virtual bool | asyncNotifyStatus () const |
| | True if the verdict on notify() arrives later through onNotifyStatus() (ESP32); false if notify()'s return value is the verdict (ArduinoBLE, NINA-B31).
|
| |
| virtual void | setValue (CharId id, const uint8_t *data, uint16_t len)=0 |
| | Set a characteristic's value without notifying (initial values, the legacy config).
|
| |
| virtual bool | connected () const =0 |
| |
| virtual uint16_t | mtuPayload () const =0 |
| | The negotiated MTU payload (ATT_MTU − 3), or PHYPHOX_BLE_DEFAULT_MTU.
|
| |
| virtual void | requestMtu (uint16_t payload) |
| | Ask the stack for an MTU before connecting (ESP32 only today; others ignore).
|
| |
| virtual void | requestConnectionParameters (uint16_t minInterval, uint16_t maxInterval, uint16_t latency, uint16_t timeout) |
| | Ask the central for connection parameters (units of 1.25 ms / 10 ms).
|
| |
| virtual void | poll ()=0 |
| | Give the stack CPU time.
|
| |
| virtual bool | drivesTransfer () const |
| | True if the transport calls listener.pump() from a task of its own, so the core must not also pump from poll() (ESP32: the sketch's loop() may be slow, and a transfer must not run inside a stack callback).
|
| |
| virtual void | restartAdvertising ()=0 |
| |
| virtual const char * | name () const =0 |
| | "ArduinoBLE", "ESP32", "NINA-B31" — for printXML/debug
|
| |
◆ ~Transport()
| virtual phyphox::Transport::~Transport |
( |
| ) |
|
|
inlinevirtual |
◆ asyncNotifyStatus()
| virtual bool phyphox::Transport::asyncNotifyStatus |
( |
| ) |
const |
|
inlinevirtual |
True if the verdict on notify() arrives later through onNotifyStatus() (ESP32); false if notify()'s return value is the verdict (ArduinoBLE, NINA-B31).
◆ begin()
◆ connected()
| virtual bool phyphox::Transport::connected |
( |
| ) |
const |
|
pure virtual |
◆ drivesTransfer()
| virtual bool phyphox::Transport::drivesTransfer |
( |
| ) |
const |
|
inlinevirtual |
◆ mtuPayload()
| virtual uint16_t phyphox::Transport::mtuPayload |
( |
| ) |
const |
|
pure virtual |
◆ name()
| virtual const char * phyphox::Transport::name |
( |
| ) |
const |
|
pure virtual |
◆ notify()
| virtual bool phyphox::Transport::notify |
( |
CharId |
id, |
|
|
const uint8_t * |
data, |
|
|
uint16_t |
len |
|
) |
| |
|
pure virtual |
◆ poll()
| virtual void phyphox::Transport::poll |
( |
| ) |
|
|
pure virtual |
◆ requestConnectionParameters()
| virtual void phyphox::Transport::requestConnectionParameters |
( |
uint16_t |
minInterval, |
|
|
uint16_t |
maxInterval, |
|
|
uint16_t |
latency, |
|
|
uint16_t |
timeout |
|
) |
| |
|
inlinevirtual |
◆ requestMtu()
| virtual void phyphox::Transport::requestMtu |
( |
uint16_t |
payload | ) |
|
|
inlinevirtual |
◆ restartAdvertising()
| virtual void phyphox::Transport::restartAdvertising |
( |
| ) |
|
|
pure virtual |
◆ setValue()
| virtual void phyphox::Transport::setValue |
( |
CharId |
id, |
|
|
const uint8_t * |
data, |
|
|
uint16_t |
len |
|
) |
| |
|
pure virtual |
The documentation for this class was generated from the following file: