Is it possible to advertise in non-connectable mode while scanning/connecting/connected as a Central?
Is it possible to advertise in non-connectable mode while scanning/connecting/connected as a Central?
Yes, it is possible.
You can use ble_advdata_set(..) to set the packet data and then start advertising with the SoftDevice call sd_ble_gap_adv_start(..). See the ble_app_beacon example for how to do this in more detail.
I wasn't clear. Start non connectable advertising -> stop -> start connectable advertising using ble_advertising_init/ble_advertising_start (your BLE Advertising library). The problem appears to be in using the library after manually initializing advertising data and params outside of the library (doesn't matter if the advertising is stopped in between).
I wasn't clear. Start non connectable advertising -> stop -> start connectable advertising using ble_advertising_init/ble_advertising_start (your BLE Advertising library). The problem appears to be in using the library after manually initializing advertising data and params outside of the library (doesn't matter if the advertising is stopped in between).