PFNBLUETOOTH_GATT_EVENT_CALLBACK callback function

Profile drivers implement a Bluetooth GATT event callback to be called whenever the value of a specific characteristic changes.

Syntax


PFNBLUETOOTH_GATT_EVENT_CALLBACK BluetoothGattEventCallback;

VOID BluetoothGattEventCallback(
  _In_     BTH_LE_GATT_EVENT_TYPE EventType,
  _In_     PVOID                  EventOutParameter,
  _In_opt_ PVOID                  Context
)
{ ... }

Parameters

EventType [in]

The type of GATT event.

EventOutParameter [in]

Pointer to a BLUETOOTH_GATT_VALUE_CHANGED_EVENT structure.

Context [in, optional]

The context specified by the profile driver in the CallbackContext parameter of the BluetoothGATTRegisterEvent function when the profile driver registered the GATT callback function.

Return value

None

Requirements

Target platform

Desktop

Version

Supported in Windows 8 and later versions of Windows.

Header

Bthledef.h

See also

BTH_LE_GATT_EVENT_TYPE
BLUETOOTH_GATT_VALUE_CHANGED_EVENT
BluetoothGATTRegisterEvent

 

 

Send comments about this topic to Microsoft

Show: