This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Naming problem

The interface "sd_ble_gap_adv_start" uses "adv" to indicate broadcast, but the interface "ble_advertising_start" uses "advertising" to indicate broadcast. Why not use the same name?

Parents
  • Two totally different APIs.

    The sd_ble_xxx macros call directly into the softdevice and follow a common naming scheme.

    The ble_advertising_xxx functions are executed in the application space and will eventually call the sd_ble_xxx softdevice, but users are not supposed to call the softdevice functions direcly as that can cause errors.

    TL;DR Different naming scheme is intentional.

Reply
  • Two totally different APIs.

    The sd_ble_xxx macros call directly into the softdevice and follow a common naming scheme.

    The ble_advertising_xxx functions are executed in the application space and will eventually call the sd_ble_xxx softdevice, but users are not supposed to call the softdevice functions direcly as that can cause errors.

    TL;DR Different naming scheme is intentional.

Children
Related