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
  • The new SDK returns an error code if you try to update while it is advertising.  The old one didn't care.  There are also other internal changes that break everything.  It seems that they are making SDK worst in term of usability every update.  Much older SDK, things are more dynamic now everything is hardcoded using thousands of conditional compilations defined the sdk_config.h and other *.h that you have to find out.   

Children
No Data
Related