Skip to content

Commit

Permalink
Update SERVER.md
Browse files Browse the repository at this point in the history
  • Loading branch information
weliem authored Jan 3, 2023
1 parent 9ac57ff commit 29a8b58
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions SERVER.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,4 +151,11 @@ Typically, when a central disconnects, you stop notifying and clean up.

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.

## Using CentralManager and PeripheralManager at the same time
If you use the BluetoothCentralManager and BluetoothPeripheralManager at the same time, you need to tell the peripheralmanager who the central manager is:

```java
peripheralManager.setCentralManager(central)
```
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.

0 comments on commit 29a8b58

Please sign in to comment.