Skip to content

Commit 480ecaf

Browse files
committed
Add missing migration info to docs.
1 parent 6a2e725 commit 480ecaf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/1.x_to2.x_migration_guide.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ This returns a pointer to `const ble_addr_t` instead of a pointer to the address
6565
## Server
6666
- `NimBLEServer::disconnect` now returns `bool`, true = success, instead of `int` to be consistent with the rest of the library.
6767
- `NimBLEServerCallbacks::onMTUChanged` renamed to `NimBLEServerCallbacks::onMTUChange` to be consistent with the client callback.
68-
- `NimBLEServer::getPeerIDInfo` renamed to `NimBLEServer::getPeerInfoByHandle` to better describe it's use.
68+
- `NimBLEServer::getPeerIDInfo` renamed to `NimBLEServer::getPeerInfoByHandle` to better describe it's use.
69+
- Advertising is no longer automatically restarted when a peer disconnects, to re-enable this feature either call `NimBLEServer::advertiseOnDisconnect(true);` after creating the server or manually restart advertising in the `onDisconnect` callback.
6970
<br/>
7071

7172
### Services

0 commit comments

Comments
 (0)