hey i want to make my device act as peripheral to smartphone at the same time act as boradcaster an to reach that we need gap_adv_type BLE_GAP_ADV_TYPE_CONNECTABLE_SCANNABLE_UNDIRECTED for peripheral and BLE_GAP_ADV_TYPE_NONCONNECTABLE_NONSCANNABLE_UNDIRECTED as broadcaster.
my Question is it possible to combine those 2?
I think you can only do 1 type of advertising at a time.
You could alternate ...
is it possible to combine those 2?
No. If you wish to change advertising data you must stop any advertising, change your initialisation data, re-initialise the advertising and then restart it.
thanks for your respond, is it also mean that it's not possible maintaining the connection while sending non-connection advertisement?
could you elaborate, what do you mean with alternate? i mean can we still maintaining the connection?
If you want to non-connectable advertise while connected, this post and this post might help.