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

Read value from ADV Advertising slot characteristic in Eddystone Configuration Service

Hi,

I'm using nRF52832 board and I'm modifying the Eddystone BLE Application in ble_peripheral example in SDK 16.0.0. I'm trying to get the characteristic value of  ADV Advertising slot characteristic in Eddystone Configuration Service. I tried to use the variable p_ble_evt in function nrf_ble_es_on_ble_evt but I can't read the value written to the characteristic. I tried to use sd_ble_gatts_value_get but the result wasn't as desidered.

Thank you in advance

Parents
  • Hi

    If you're looking to specifically edit the advertised Eddystone URL, I suggest you take a look at the simpler Eddystone example which was available in earlier SDKs. This will show you how to format the advertisement packet.

    If you want to edit the beacon using the Eddystone Configuration Service in your app, please follow these instructions:

    1. Connect to the beacon
    2. Read Lock State characteristic. If Unlocked, go to 5.
    3. If Locked, read Unlock characteristic to get 16-byte challenge
    4. Write Unlock char by providing a 16-byte Unlock Code
    5. Write slot number to Active Slot char. You may read it to check what slot is set. Usually this will be slot 0.
    6. Write ADV slot data as you want.
    7. Disconnect.

    Best regards,

    Simon

Reply
  • Hi

    If you're looking to specifically edit the advertised Eddystone URL, I suggest you take a look at the simpler Eddystone example which was available in earlier SDKs. This will show you how to format the advertisement packet.

    If you want to edit the beacon using the Eddystone Configuration Service in your app, please follow these instructions:

    1. Connect to the beacon
    2. Read Lock State characteristic. If Unlocked, go to 5.
    3. If Locked, read Unlock characteristic to get 16-byte challenge
    4. Write Unlock char by providing a 16-byte Unlock Code
    5. Write slot number to Active Slot char. You may read it to check what slot is set. Usually this will be slot 0.
    6. Write ADV slot data as you want.
    7. Disconnect.

    Best regards,

    Simon

Children
Related