In development. It changes without notice.
Topic
BLE Facade & HID Manager
The one entry point to Bluetooth for the screens and the portal, and the manager that runs the keyboard service behind it.
- kleidos::
ble:: Facade starts and stops the radio, queues what to type and reports how it went, carries the pairing prompts and lists the bonded hosts. No file above this module includes the stack's headers. - BleHidManager builds the keyboard service, asks for LE Secure Connections with numeric comparison, and types.
- kleidos::
ble:: IBleStack is the same interface as the facade for a test on a computer; each of its members is checked against the facade's when it is compiled.
Files | |
| file | src/ |
| Single public BLE entry point for the FSM, UI and web layers. | |
| file | src/ |
| Runtime BLE HID keyboard adapter built on the raw Apache NimBLE host. | |
| file | src/ |
| Polymorphic BLE-stack seam used by native unit tests. | |
Classes | |
| struct | kleidos:: |
| Read-only snapshot of the currently connected peer. More about kleidos:: | |
| struct | kleidos:: |
| Read-only snapshot of the controller and the link, for diagnostics. More about kleidos:: | |
| struct | kleidos:: |
| Read-only snapshot of one bonded-host slot. More about kleidos:: | |
| class | kleidos:: |
| Static facade exposing the entire BLE surface to the rest of the firmware. More about kleidos:: | |
| class | kleidos:: |
| Static runtime adapter that owns the NimBLE HID session and bond table. More about kleidos:: | |
| class | kleidos:: |
The subset of ble::Facade a native test drives, implemented by FakeBleStack and checked against the facade's signatures at compile time. More about kleidos:: | |
Enumeration Type Documentation
BleTypingStatus #
Async typing operation status; polled via BleHidManager::.
StartMode #
Advertising lifetime requested at start().
| Enumerator | |
|---|---|
| Bounded30s | Typical credential flow: pair, type, deinit. The pairing window stays closed. |
| StandbyForever | Setup's pairing page: the pairing window is open, and stays open while the mode lasts — a connection does not close it. The 3-minute cap bounds advertising only: never a connected link, and it restarts after an authenticated host disconnects. What ends the window is the caller's own |
TypingStatus #
Result of polling an async typing token via pollTyping().
| Enumerator | |
|---|---|
| Pending | Queued, not yet started. |
| Running | Reports in flight. |
| Success | Credential typed without error. |
| Disconnected | Host disconnected mid-typing. |
| NotConnected | Link not connected at start. |
| Error | Generic failure. |
| CapsLockOn | The host's Caps Lock stayed on: the owner turns it off and sends again. |