Skip to content

Commit 76a82ad

Browse files
committed
Fix server echo example
1 parent c4e2970 commit 76a82ad

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

examples/NimBLE_Stream_Echo/NimBLE_Stream_Echo.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ void setup() {
2222

2323
// Initialize BLE
2424
NimBLEDevice::init("BLE-Echo");
25-
NimBLEDevice::createServer();
25+
auto pServer = NimBLEDevice::createServer();
26+
pServer->advertiseOnDisconnect(true); // Keep advertising after clients disconnect
2627

2728
/**
2829
* Initialize the stream server with:

0 commit comments

Comments
 (0)