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

Eddystone URL

Hi everyone,

I'm trying to understand Eddystone example in NRF5 SDK.
I'm successfully run example ble_app_eddystone. I also edit Eddystone URL from mobile app.
I don't know what function is called in NRF5 SDK when mobile send new URL.
Please help me figure out.

Thank you so much!

   

Parents Reply
  • Hi Tran,

    The documentation for the Eddystone example in SDK 14.2 is here.

    More detailed documentation on functions and structs is available in the source code.

    To answer your question, all write requests are handled by the es_gatts_handle_write() function. For the URL the sequence looks like this:

    1. es_gatts_handle_write()
    2. es_gatts_write_handle_unlocked_write()
      1. case BLE_UUID_ESCS_RW_ADV_SLOT_CHAR:
    3. es_slot_on_write()
    4. configure_slot()
      1. case ES_FRAME_TYPE_URL:

    Ketil

Children
Related