[ nRF52833 ] How to set Non-Connectable Advertizing using Advertising Library / Module

Hello,

In my experimentation to update advertising data during runtime, I am following the example @ 

 How to update advertising data dynamically using BLE Advertising library 

It is using the ble_advertising.h library module 

However I would like to set this advertising to non-connectable, non-scannable and non directed mode similar to 

static ble_gap_adv_params_t m_adv_params;  

m_adv_params.properties.type = BLE_GAP_ADV_TYPE_NONCONNECTABLE_NONSCANNABLE_UNDIRECTED;

However, the data structure used for the advertising module 

ble_advertising_init_t init;

does not provide any provision to set the non connectable mode. 

May be the init.advdata.flags could be set ?  But does it have the values that I can set to non-connectable

Very similar question has already been asked previously but still open

 How to set non-connectable mode in BLE 

 

Can you please guide here ?

Thanks,

Abhi Ash

Related