Skip to content

BLE_UART.ino Example Not Functional #941

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
gb53smith opened this issue Jan 16, 2020 · 0 comments
Closed

BLE_UART.ino Example Not Functional #941

gb53smith opened this issue Jan 16, 2020 · 0 comments

Comments

@gb53smith
Copy link

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:

  1. Shorten the BLE Device name to 5 or less characters.
  2. 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant