Closed
Description
I was trying to form a BLE connection between BLE_UART (server) and BLE_CLIENT (client).
After seeing haveServiceUUID
fail in BLE_CLIENT I found this related issue that fixed the connection.
To summarize the changes:
- Shorten the BLE Device name to 5 or less characters.
- In BLE_UART change:
pServer->getAdvertising()->start();
to
BLEAdvertising *pAdvertising = pServer->getAdvertising();
pAdvertising->addServiceUUID(pService->getUUID());
pAdvertising->start();
With later experiments, I found that it was not necessary to shorten the device. Only the start of advertising needed to be changed. Strangely, the IOS App BLE Scanner worked without the advertising modification.
Please update BEL_UART.ino in the repository
Metadata
Metadata
Assignees
Labels
No labels