We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4e2970 commit 76a82adCopy full SHA for 76a82ad
1 file changed
examples/NimBLE_Stream_Echo/NimBLE_Stream_Echo.ino
@@ -22,7 +22,8 @@ void setup() {
22
23
// Initialize BLE
24
NimBLEDevice::init("BLE-Echo");
25
- NimBLEDevice::createServer();
+ auto pServer = NimBLEDevice::createServer();
26
+ pServer->advertiseOnDisconnect(true); // Keep advertising after clients disconnect
27
28
/**
29
* Initialize the stream server with:
0 commit comments