8000 Add Service UUID advertising (iOS support) · olehs/esp32-snippets@631b53c · GitHub
[go: up one dir, main page]

Skip to content

Commit 631b53c

Browse files
Add Service UUID advertising (iOS support)
Lots of apps (e.g. Blynk, RemoteXY) do not find the device during scanning on iOS, whereas other devices with the same service UUID are found. The origin of the problem is that in the advertisment, the service UUID is missing. This extra line fixes this problem.
1 parent ac94c59 commit 631b53c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cpp_utils/tests/BLETests/Arduino/BLE_uart/BLE_uart.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ void setup() {
9797
pService->start();
9898

9999
// Start advertising
100+
pServer->getAdvertising()->addServiceUUID(pService->getUUID());
100101
pServer->getAdvertising()->start();
101102
Serial.println("Waiting a client connection to notify...");
102103
}

0 commit comments

Comments
 (0)
0