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

Question relating to:

/ Puck Featured
A library for easier setup and prototyping of IoT devices (pucks), by collecting everything that is common for all pucks in one place. BLE, bluetooth, nRF51822

2 Answers

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

Accepted Answer

Great, thanks!

posted by Tim H 10 Mar 2015
9 years, 8 months ago.

"It would also be nice if the devices weren't hard-coded as iBeacons and if you could set the name in init()" Could you elaborate on this? Or even propose a set of changes? Or a pull request on github? :)

I made a new discussion for this...

posted by Tim H 10 Mar 2015