This function is used to parse the Bluetooth event data received over the invoke interface when "bb.action.bluetooth.EVENT" occurs.
#include <btapi/btdevice.h>
int bt_ldev_invoke_decode_event(const char *invoke_data, int invoke_len, int *event, const char **bdaddr, const char **event_data)
BlackBerry 10.3.0
The data provided by the invoke interface.
The length of the data provided by the invoke interface.
Returns the event which triggered the invoke.
A pointer to the Bluetooth address of the event from within the invoke data. This pointer is valid only for the lifespan of the invoke data.
A pointer to the event data from within the invoke data. This pointer references is valid only for the lifespan of the invoke data.
The data that is provided must have the mime-type of "application/vnd.blackberry.bluetooth.event". You must call bt_device_init() before calling this function.