This function enables the invoking of a service application when a local advertisement change or completed event occurs.
#include <btapi/btle.h>
int bt_le_enable_advert_invoke(const char *target)
BlackBerry 10.3.0
The target key that is defined in the application manifest.
The application is invoked when, after the application is terminated or bt_le_deinit is called, the first advertisement is received that meets the set scan parameters and filters. When invoked, the invoke action is bb.action.bluetooth.ADVERTCHANGE or bb.action.bluetooth.ADVERTCOMPLETE. You can use bt_le_invoke_decode_advert_changed() and bt_le_invoke_decode_advert_complete() to retrieve the event data. You must perform this operation from the headless application. The setup values persist until the timeout has completed or until bt_le_stop_advertisement() is called.