Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Connectable beacon

In the nRF5 SDK v15.0.0 there is an example for beacon. (in my case ble_app_beacon_pca10040_s132)

This example works fine and acts as a non-connectable unidirected beacon.

But I am looking for a connectable beacon. (Acts as a beacon, but can also be connected to retrieve other data).

Is there an example software available?

Parents Reply
  • Hi Mttrinh,

    I changed the line

       m_adv_params.properties.type = BLE_GAP_ADV_TYPE_NONCONNECTABLE_NONSCANNABLE_UNDIRECTED;

    to:

       m_adv_params.properties.type = BLE_GAP_ADV_TYPE_CONNECTABLE_SCANNABLE_UNDIRECTED;

    But that is not sufficient, because it gives the error (through the USB-commport):

    <info> app: Beacon example started.

    <error> app: Fatal error

    <warning> app: System reset

    And it does not send any BLE message.

    To my impression, there is a lot more to change. But I hope somebody else already invented this wheel.

Children
No Data
Related