Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::midi::BleMidiPeripheral Struct Reference

One BLE peripheral that advertises the BLE-MIDI service. More...

#include <ble_midi.hpp>

Public Attributes

std::string id
std::string name
int rssi = 0
 Last-seen RSSI in dBm. 0 if the backend doesn't report it.
std::chrono::steady_clock::time_point last_seen {}
 Monotonic time the peripheral was last seen in a scan response.
bool is_paired = false
 True if the OS already has a bond/pairing for this peripheral.

Detailed Description

One BLE peripheral that advertises the BLE-MIDI service.

Identified by a backend-specific string (CBPeripheral.identifier UUID on Apple, MAC address on Linux/Android, device-id on Windows). The host app uses the id to call connect(); the human-readable name is for UI.

Member Data Documentation

◆ id

std::string pulp::midi::BleMidiPeripheral::id

◆ is_paired

bool pulp::midi::BleMidiPeripheral::is_paired = false

True if the OS already has a bond/pairing for this peripheral.

Apple exposes this via CBCentralManager.retrievePeripherals; on other platforms backends may report false until paired.

◆ last_seen

std::chrono::steady_clock::time_point pulp::midi::BleMidiPeripheral::last_seen {}

Monotonic time the peripheral was last seen in a scan response.

Backends use steady_clock so the value is comparable across scan cycles.

◆ name

std::string pulp::midi::BleMidiPeripheral::name

◆ rssi

int pulp::midi::BleMidiPeripheral::rssi = 0

Last-seen RSSI in dBm. 0 if the backend doesn't report it.


The documentation for this struct was generated from the following file:
  • /home/runner/work/pulp/pulp/core/midi/include/pulp/midi/ble_midi.hpp