bt_gatt_scan_parm_t

Structure that contains the connection scan parameters for a low energy connection.

Synopsis:

typedef struct  {
    uint16_t interval1 ;
    uint16_t interval12 ;
    uint16_t window1 ;
    uint32_t time1 ;
    uint16_t interval2 ;
    uint16_t window2 ;
    uint32_t time2 ;
}bt_gatt_scan_parm_t;

Since:

BlackBerry 10.0.0

Data:

uint16_t interval1
The initial scan interval that is used when there is no connection and the device is not advertising.
  • Range: 0x0004 to 0x4000
  • Time = N * 0.625 msec
  • Time Range: 2.5 msec to 10.24 seconds
uint16_t interval12
The initial scan interval used when either a connection exists or the device is advertising.
  • Range: 0x0004 to 0x4000
  • Time = N * 0.625 msec
  • Time Range: 2.5 msec to 10.24 seconds
uint16_t window1
The initial scan window.
  • Range: 0x0004 to 0x4000
  • Time = N * 0.625 msec
  • Time Range: 2.5 msec to 10240 msec
uint32_t time1
The time (in msec) to perform the initial scan.

Use GATT_TIME_INFINITY to run until the connection is created or disconnected.

uint16_t interval2
The second scan interval, used after time1 has expired.
  • Range: 0x0004 to 0x4000
  • Time = N * 0.625 msec
  • Time Range: 2.5 msec to 10.24 seconds
uint16_t window2
The second scan window, used after time1 has expired.
  • Range: 0x0004 to 0x4000
  • Time = N * 0.625 msec
  • Time Range: 2.5 msec to 10240 msec
uint32_t time2
The time (in msec) to perform the second stage of the window or interval scan.

Use 0 to disable the second stage of window or interval scanning, or GATT_TIME_INFINITY to run until a connection is created or disconnected.

Library:

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

Description: