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

Porting code from pc-ble-driver-1.0.0 to pc-ble-driver-2.0.0

I'm trying to port my code using pc-ble-driver-1.0.0 to use the latest official version 2.0.0

I see library names changed (from pc-ble-driver-1.0.0.* to pc_ble_driver_shared_sd_api_v3.*), I can handle that.

But I also notice that there is no more ble*.h files in include folder anymore (while the examples/heart_rate_monitor/main.c includes them (#include "ble.h" for instance)).

Did I miss something? How to I get those missing header files appear?

Parents
  • Hi,

    The ble.h" files are split into separate directories, to allow support for multiple softdevice API support. You can find the headers in the directory /src/sd_api_vx/sdk/components/softdevice/s132/headers. The files are included in the build in CMakeList.txt with the lines:

    target_include_directories(hrm_v2 PRIVATE ../../src/sd_api_v2/sdk/components/softdevice/s132/headers)
    target_include_directories(hrm_v3 PRIVATE ../../src/sd_api_v3/sdk/components/softdevice/s132/headers)
    

    Best regards,

    Jørgen

Reply
  • Hi,

    The ble.h" files are split into separate directories, to allow support for multiple softdevice API support. You can find the headers in the directory /src/sd_api_vx/sdk/components/softdevice/s132/headers. The files are included in the build in CMakeList.txt with the lines:

    target_include_directories(hrm_v2 PRIVATE ../../src/sd_api_v2/sdk/components/softdevice/s132/headers)
    target_include_directories(hrm_v3 PRIVATE ../../src/sd_api_v3/sdk/components/softdevice/s132/headers)
    

    Best regards,

    Jørgen

Children
Related