Skip to content

BLE_UART.ino Example Not Functional #941

Closed
@gb53smith

Description

@gb53smith

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions