-
Notifications
You must be signed in to change notification settings - Fork 37
Open
Description
I was looking for the best way to integrate the macOS bluetooth API with Zig and stumbled across your project here. It looks great, thanks for sharing it.
To use the Bluetooth API you need to start a CFRunLoop and register for callbacks such as:
peripheralManager = [[CBPeripheralManager alloc] initWithDelegate:de queue:nil];
centralManager = [[CBCentralManager alloc] initWithDelegate:de queue:nil];
CFRunLoopRun();
- (void)centralManagerDidUpdateState:(CBCentralManager *)central {
//
}
- (void)centralManager:(CBCentralManager *)central didDisconnectPeripheral:(CBPeripheral *)peripheral error:(NSError *)error {
//
}
I don't see any examples/tests in your source that indicate if this might or might not be possible, I am guessing it is not. But I thought I would ask here just in case it might be.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels