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.
9 years, 8 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