You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+26-1Lines changed: 26 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -377,6 +377,31 @@ for await rssi in peripheral.rssi.stream {
377
377
// note that the rssi is only updated when you call readRSSI, so you would need to call this for the loop to itterate
378
378
```
379
379
380
+
381
+
## Accessing Underlying CBMPeripheral
382
+
383
+
Sometimes you need to access CoreBluetooth functionality that hasn't been wrapped by this library yet. The `withCBPeripheral` method provides safe access to the underlying `CBMPeripheral` instance:
384
+
385
+
```swift
386
+
// Get maximum write length for a peripheral
387
+
let maxLength =await peripheral.withCBPeripheral { cbPeripheral in
0 commit comments