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

BLE_GAP_TIMEOUT_SRC_ADVERTISING is removed from SDK 16

I try to bring an old Project (2017) back to life and use the new SDK 16

the Code usese BLE_GAP_TIMEOUT_SRC_ADVERTISING, but that is removed in the new SDK version,

what should I use insted of BLE_GAP_TIMEOUT_SRC ADVERTISING in the new SDK?

Or shoud I simply take the old SDK file ble_gap.h to overcome this problem?

Parents
  • I tried a little workaround for my problem, it's not that pritty and not well tested yet, but i can build the project without this error at the moment.

    I just copied the definition line from the old SDK file into the new. 

    #define BLE_GAP_TIMEOUT_SRC_ADVERTISING                0x00 /**< Advertising timeout. */ 

    into line 204 in ble_gap.h 

    little question about the change in SDK files, what does this line in old SDK and why it's not neccessery in the new Version anymore?

Reply
  • I tried a little workaround for my problem, it's not that pritty and not well tested yet, but i can build the project without this error at the moment.

    I just copied the definition line from the old SDK file into the new. 

    #define BLE_GAP_TIMEOUT_SRC_ADVERTISING                0x00 /**< Advertising timeout. */ 

    into line 204 in ble_gap.h 

    little question about the change in SDK files, what does this line in old SDK and why it's not neccessery in the new Version anymore?

Children
No Data
Related