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. | |
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.
| std::string pulp::midi::BleMidiPeripheral::id |
| 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.
| 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.
| std::string pulp::midi::BleMidiPeripheral::name |
| int pulp::midi::BleMidiPeripheral::rssi = 0 |
Last-seen RSSI in dBm. 0 if the backend doesn't report it.