Skip to content

feat(host-core): peripheral GATT server bridge#9

Merged
0xnirapod merged 1 commit into
mainfrom
feat/host-peripheral-service
Jun 29, 2026
Merged

feat(host-core): peripheral GATT server bridge#9
0xnirapod merged 1 commit into
mainfrom
feat/host-peripheral-service

Conversation

@athexweb3

Copy link
Copy Markdown
Contributor

Add the host side of the peripheral (GATT server) role, mirroring the central role. A new PeripheralBackend seam fronts a real CoreBluetoothPeripheral driver over CBPeripheralManager (radio tests XCTSkip without authorization), and PeripheralService maps each peripheral request to the backend and translates backend events to protocol events. The RequestRouter now holds both services and routes Wire.isPeripheralRole ops to the peripheral service, streaming both services' events over one outbound path; HELLO reports peripheralSupported true. The wire protocol is unchanged.

Drive the Mac's CBPeripheralManager behind a PeripheralBackend seam: publish services, advertise,
answer reads and writes, push updates. The router routes peripheral-role ops to the peripheral
service and streams its events; HELLO reports peripheralSupported true.
@athexweb3
athexweb3 requested a review from a team as a code owner June 29, 2026 04:58
@0xnirapod
0xnirapod merged commit de3a8b9 into main Jun 29, 2026
3 checks passed
@0xnirapod
0xnirapod deleted the feat/host-peripheral-service branch June 29, 2026 05:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants