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

Where to enable the interrupt when a packet is received in the softdevice

Hi guys,

I would like to know how to use the softdevice to enable an interrupt when I receive an advertisement packet. Right now I know we have to use

softdevice_ble_evt_handler_set(handler)

to register for events. But how do I know the recieved event is an advertisement packet? I can then do

switch (p_ble_evt->header.evt_id)

But I still cant find the advertising packet macro.

Related