PFNBLUETOOTH_GATT_EVENT_CALLBACK callback function (bthledef.h)

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

Syntax

PFNBLUETOOTH_GATT_EVENT_CALLBACK PfnbluetoothGattEventCallback;

void PfnbluetoothGattEventCallback(
  [in]           BTH_LE_GATT_EVENT_TYPE EventType,
  [in]           PVOID EventOutParameter,
  [in, optional] PVOID Context
)
{...}

Parameters

[in] EventType

The type of GATT event.

[in] EventOutParameter

Pointer to a BLUETOOTH_GATT_VALUE_CHANGED_EVENT structure.

[in, optional] Context

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

Requirement Value
Minimum supported client Supported in Windows 8 and later versions of Windows.
Target Platform Desktop
Header bthledef.h

See also

BLUETOOTH_GATT_VALUE_CHANGED_EVENT

BTH_LE_GATT_EVENT_TYPE

BluetoothGATTRegisterEvent