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

Different advertising initialisation

Hi

I've been experimenting with the ble_app_att_mtu_throughput example and have it running between 2 custom boards using PuTTY, but I'm struggling to understand why the advertising is initialised differently to other ble examples (heart rate sensor, UART etc), which create an instance of ble_advertising_t, and use  ble_advertising_init(..)  and  ble_advertising_conn_cfg_tag_set(..)  in the intialisation. The throughput example uses  ble_advdata_encode(..)  and  sd_ble_gap_adv_set_configure(..). Why is this? I'm using SDK 15.3 with S140 on the NRF52840.

Generally, I'm floundering a bit, and feel like I've missed a 'manual' on how/when to use the functions in the SDK and softdevice. Feel like I'm wading through treacle trying to understand how the examples work. Any pointers would be appreciated.

Cheers

Pete

Parents Reply Children
Related