16#ifndef PHYPHOX_BLE_TRANSPORT_ESP32BLE4_H
17#define PHYPHOX_BLE_TRANSPORT_ESP32BLE4_H
26 bool notify(
CharId id,
const uint8_t* data, uint16_t len)
override;
35 const char*
name()
const override {
return "ESP32"; }
Definition Esp32Ble4Transport.h:23
const char * name() const override
"ArduinoBLE", "ESP32", "NINA-B31" — for printXML/debug
Definition Esp32Ble4Transport.h:35
void poll() override
Give the stack CPU time.
Definition Esp32Ble4Transport.h:32
uint16_t mtuPayload() const override
The negotiated MTU payload (ATT_MTU − 3), or PHYPHOX_BLE_DEFAULT_MTU.
bool notify(CharId id, const uint8_t *data, uint16_t len) override
Send a notification.
void setValue(CharId id, const uint8_t *data, uint16_t len) override
Set a characteristic's value without notifying (initial values, the legacy config).
bool connected() const override
void requestMtu(uint16_t payload) override
Ask the stack for an MTU before connecting (ESP32 only today; others ignore).
void restartAdvertising() override
bool drivesTransfer() const override
True if the transport calls listener.pump() from a task of its own, so the core must not also pump fr...
Definition Esp32Ble4Transport.h:33
void requestConnectionParameters(uint16_t, uint16_t, uint16_t, uint16_t) override
Ask the central for connection parameters (units of 1.25 ms / 10 ms).
bool begin(const GattLayout &layout, TransportListener &listener) override
Create services and characteristics, start advertising the experiment service.
static Esp32Ble4Transport & instance()
Callbacks from the transport into the core (implemented by Server).
Definition Transport.h:40
Definition Transport.h:59
Definition ChannelStore.h:11
Definition Transport.h:23
What the core asks the transport to create at begin().
Definition Transport.h:29