Skip to content

Commit 29a8b58

Browse files
authored
Update SERVER.md
1 parent 9ac57ff commit 29a8b58

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

SERVER.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,4 +151,11 @@ Typically, when a central disconnects, you stop notifying and clean up.
151151

152152
The BluetoothPeripheralManager class supports long reads and writes. It will take care of splitting up characteristic byte arrays in smaller chunks and re-assembling them. Hence, nothing special is needed and they function the same way as normal read and writes.
153153

154+
## Using CentralManager and PeripheralManager at the same time
155+
If you use the BluetoothCentralManager and BluetoothPeripheralManager at the same time, you need to tell the peripheralmanager who the central manager is:
156+
157+
```java
158+
peripheralManager.setCentralManager(central)
159+
```
160+
If you don't do this, the peripheral manager will not be able to distinguish centrals from peripherals and you will see too many connected events.
154161

0 commit comments

Comments
 (0)