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

Trouble with ble_advertising_advdata_update

Hi, everyone. I've been trying to migrate from the SDK 14.2 to 15.2, but I've been having trouble getting one new function to work. I previously used ble_advdata_set() to update the advertised data on the fly, as I need to be able to display 3 separate changing values from a non-connectable device. I started using the Beacon example, and got it running on 14.2. However, with 15.2 I'm getting the same errors every time I try to configure ble_advertising_advdata_update().

undefined reference to `ble_advertising_advdata_update'

Output/ProjectPrototype Release/Obj/main.o:C:\Nordic_Semi\nRF5_SDK_15.2.0_9412b96\examples\ble_peripheral\ble_app_beacon/main.c:44: undefined reference to `ble_advertising_on_ble_evt'

Output/ProjectPrototype Release/Obj/main.o:C:\Nordic_Semi\nRF5_SDK_15.2.0_9412b96\examples\ble_peripheral\ble_app_beacon/main.c:44: undefined reference to `ble_advertising_on_sys_evt'

I've got an advertising module instance (BLE_ADVERTISING_DEF(m_advertising); ), which seems to be working. The trouble shows up when I try to pass data to the function. I've tried building a structure with defined constant values and it still gives me the same error, same as with an array of modifiable variables, so I'm really not sure what I'm doing incorrectly.

I'm extremely new to this code, so I appreciate any help or advice offered!

Parents Reply
  • So instead of being redirected to a different blog that uses a different implementation then the Nordic examples, can I use ble_advertising_advdata_update? I see several issues and posts around 15.2 and dynamic advertising and do not understand why the migration is so unclear, especially when 14.2 works easily. You guys are also in the process of moving the infocenter which adds to the confusion. I will check out this blog, but in the meantime I'd just like to know if ble_advertising_advdata_update is working in the current SDK and if I'm using it wrong.

Children
Related