This function is used to parse the advertisement data received over the invoke interface when "bb.action.bluetooth.SCANRESULT" occurs.
#include <btapi/btle.h>
int bt_le_invoke_decode_scan_result(const char *invoke_dat, int invoke_len, const char **bdaddr, int8_t *rssi, const char **data, int *len)
BlackBerry 10.3.0
The data provided by the invoke interface.
The length of the data provided by the invoke interface.
A pointer to the Bluetooth address of the advertisement from within the invoke data. This pointer is only valid for the lifespan of the invoke data.
The Remote Signal Strength Indicator (RSSI) of the advertisement.
A pointer to the advertisement data that is received from the remote device. This pointer is only valid for the lifespan of the invoke data.
The length of the advertisement data that is received from the remote device.
The data that is provided must have the mime-type of "application/vnd.blackberry.bluetooth.scanresult". You must call bt_le_init() before calling this function.