bt_gatt_srv_connected_cb

The callback prototype to indicate a device has connected to the GATT server.

Synopsis:

#include <btapi/btgattsrv.h>
 
typedef void(* bt_gatt_srv_connected_cb)(int instance, const char *bdaddr, uint8_t type, uint16_t connInt, uint16_t latency, uint16_t superTimeout, void *userData);

Arguments:

instance

The identifier used to reference the service connection.

bdaddr

The address of the remote Bluetooth device.

type

The device type identifier. Refer to constants prefixed with BT_DEVICE_TYPE_.

connInt

The negotiated connection interval for the service. Only use this argument for low-energy devices. For BR/EDR devices this value will be zero.

latency

The negotiated latency for the service. Only use this argument for low-energy devices. For BR/EDR devices this value will be zero.

superTimeout

The negotiated supervisor timeout for the connection. Use this argument only for low-energy devices. For BR/EDR devices this value will be zero.

userData

Pointer to user data passed in during the connection request.

Since:

BlackBerry 10.2.0

Library:

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

Description: