BluetoothGATTRegisterEvent function bluetooth
int
BluetoothGATTRegisterEvent(
- int hService,
- int EventType,
- Pointer<
NativeType> EventParameterIn, - Pointer<
NativeFunction< Callback,PfnbluetoothGattEventCallback> > - Pointer<
NativeType> CallbackContext, - Pointer<
IntPtr> pEventHandle, - int Flags,
Registers a routine to be called back during a characteristic value change event on the given characteristic identified by its characteristic handle.
HRESULT BluetoothGATTRegisterEvent(
HANDLE hService,
BTH_LE_GATT_EVENT_TYPE EventType,
PVOID EventParameterIn,
PFNBLUETOOTH_GATT_EVENT_CALLBACK Callback,
PVOID CallbackContext,
BLUETOOTH_GATT_EVENT_HANDLE *pEventHandle,
ULONG Flags
);
Implementation
int BluetoothGATTRegisterEvent(
int hService,
int EventType,
Pointer EventParameterIn,
Pointer<NativeFunction<PfnbluetoothGattEventCallback>> Callback,
Pointer CallbackContext,
Pointer<IntPtr> pEventHandle,
int Flags) =>
_BluetoothGATTRegisterEvent(hService, EventType, EventParameterIn, Callback,
CallbackContext, pEventHandle, Flags);