This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TI BLE Stack: How to issue callback for advertising event?

Hi,

I would like my CC2540-based device to alternate between advertising HCI_CONNECTABLE_UNDIRECTED_ADV packets and HCI_NONCONNECTABLE_UNDIRECTED_ADV packets.

I want the device to broadcast information continuously (even when connected). However, when the device is unconnected, I want to continue to broadcast that information while also advertising for connections.

Is there a way for me to detect when an advertising event occurs so that I can execute code that changes the advertising parameters?

Thanks,

Seth