bt_le_advertisement_ext_cb

The callback prototype to indicate an incoming advertisement event has occurred.

Synopsis:

#include <btapi/btle.h>
 
typedef void(* bt_le_advertisement_ext_cb)(const char *bdaddr, int8_t rssi, bt_le_advert_packet_event_t eventType, const char *data, int len, void *userData);

Since:

BlackBerry 10.3.0

Arguments:

bdaddr

The address of the Bluetooth-enabled device.

rssi
The Received Signal Strength Indication (RSSI) for the advertisement.
  • Range: -127 dBm <= N <= 20 dBm.
  • +127 indicates the RSSI value is not available.
eventType

The type of advertising packet received.

data

The data sent in the advertisement.

len

The length of the data sent.

userData

A pointer to the user data that was defined when adding the listener.

Library:

libbtapi (For the qcc command, use the -l btapi option to link against this library)

Description:

Last modified: 2014-06-24



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus