Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
10 years, 6 months ago.
Device isn't connectable.
Hi,
You need to change this line in Puck::init()
ble.accumulateAdvertisingPayload(GapAdvertisingData::BREDR_NOT_SUPPORTED);
to
ble.accumulateAdvertisingPayload(GapAdvertisingData::BREDR_NOT_SUPPORTED | GapAdvertisingData::LE_GENERAL_DISCOVERABLE);
Otherwise the devices aren't connectable. It would also be nice if the devices weren't hard-coded as iBeacons and you if you could set the name in init(). Other than that this library is great!
Cheers,
Tim
Question relating to:
2 Answers
10 years, 6 months ago.
Hi tim, one of the authors here again. Thanks for the feedback.
I've added GapAdvertisingData::LE_GENERAL_DISCOVERABLE to the advertising params.
Pucks should now be discoverable in apps that actually check for this flag :)