This function returns the reason why the local advertisement has completed when invoke is triggered with action "bb.action.bluetooth.ADVERTCOMPLETE".
#include <btapi/btle.h>
int bt_le_invoke_decode_advert_complete(const char *invoke_dat, int invoke_len, bt_le_advert_complete_reason_t *reason)
BlackBerry 10.3.0
The data provided by the invoke interface.
The length of the data provided by the invoke interface.
Returns the reason why the advertisements completed.
The data that is provided must have the mime-type of "application/vnd.blackberry.bluetooth.advertcomplete".