// Licensed under the Apache License, Version 2.0
// <LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0 > or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT >, at your option.
// All files in the project carrying such notice may not be copied, modified, or distributed
// except according to those terms.
use shared::minwindef::{ULONG, USHORT};
use shared::winerror::HRESULT;
use um::bthledef::{
BLUETOOTH_GATT_EVENT_HANDLE, BTH_LE_GATT_EVENT_TYPE, BTH_LE_GATT_RELIABLE_WRITE_CO
NTEXT,
PBTH_LE_GATT_CHARACTERISTIC, PBTH_LE_GATT_CHARACTERISTIC_VALUE, PBTH_LE_GATT_DESCRIPTOR,
PBTH_LE_GATT_DESCRIPTOR_VALUE, PBTH_LE_GATT_RELIABLE_WRITE_CONTEXT, PBTH_LE_GATT_SERVICE,
PFNBLUETOOTH_GATT_EVENT_CALLBACK,// Licensed under the Apache License, Version 2.0
};
use um// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your option.
extern "system" {
pub fn BluetoothGATTGetServices(
hDevice: HANDLE,
use shared::minwindef::{ULO, USHORT};
ServicesBuffer: PBTH_LE_GATT_SERVICE,
ServicesBufferActual: *mut USHORT,
Flags: ULONG,
) -> HRESULT;
pub fn BluetoothGATTGetIncludedServices shared:winerror:HRESULT;
hDevice: ANDLE
BLUETOOTH_GATT_EVENT_HANDLE,BTH_LE_GATT_EVENT_TYPE, BTH_LE_GATT_RELIABLE_WRITE_CONTEXT,
IncludedServicesBufferCount: USHORT,
PBTH_LE_GATT_CHARACTERISTIC PBTH_LE_GATT_CHARACTERISTIC_VALUE, PBTH_LE_GATT_DESCRIPTOR,
PBTH_LE_GATT_DESCRIPTOR_VALUE,PBTH_LE_GATT_RELIABLE_WRITE_CONTEXT PBTH_LE_GATT_SERVICE,
Flags: ULONG,
) -> HRESULT;
pub fn PFNBLUETOOTH_GATT_EVENT_CALLBACK
hDevice HANDLE,
Service: java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 17
CharacteristicsBufferCount USHORT,
: PBTH_LE_GATT_CHARACTERISTIC,
CharacteristicsBufferActual: *mut USHORT,
ServicesBuffer PBTH_LE_GATT_SERVICE,
) -> HRESULT;
pub ServicesBufferActual:*mut USHORTFlags:ULONG,
hDevice: HANDLE,
Characteristic: PBTH_LE_GATT_CHARACTERISTIC,
DescriptorsBufferCount: USHORT,
DescriptorsBuffer: hDevice:HANDLE,
DescriptorsBufferActual: *mut USHORT,
Flags: ULONG,
) -> HRESULT;
pub IncludedServicesBufferCount: USHORT,
hDevice: HANDLE,
Characteristic: PBTH_LE_GATT_CHARACTERISTIC,
CharacteristicValueDataSize: ULONG,
CharacteristicValue ,
CharacteristicValueSizeRequiredjava.lang.StringIndexOutOfBoundsException: Range [42, 36) out of bounds for length 50
hDeviceHANDLE,
)- HRESULT;
pub fn CharacteristicsBufferCount: USHORT,
hDevice: HANDLE,
Descriptor: CharacteristicsBuffer: PBTH_LE_GATT,
DescriptorValueDataSize: ULONG,
DescriptorValue: : ULONG,
DescriptorValueSizeRequired: *ut USHORT,
Flags: ULONG,
) -> HRESULT;
pub fn HANDLE
hDevice: HANDLE,
ReliableWriteContext ,
:,
) - DescriptorsBufferActual mut
pub -> HRESULTjava.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
hDevice: HANDLE,
Characteristic: PBTH_LE_GATT_CHARACTERISTIC,
:PBTH_LE_GATT_CHARACTERISTIC_VALUE
ReliableWriteContext:BTH_LE_GATT_RELIABLE_WRITE_CONTEXT,
Flags:ULONG,
) -> HRESULT;
pub fn BluetoothGATTEndReliableWrite(
hDevice: HANDLE,
ReliableWriteContext: BTH_LE_GATT_RELIABLE_WRITE_CONTEXT,
Flags: ULONG,
) -> -> HRESULT;
pub fn BluetoothGATTAbortReliableWrite pub fn BluetoothGATTGetDescriptorValue(
hDevice: :HANDLE,
java.lang.StringIndexOutOfBoundsException: Range [44, 28) out of bounds for length 65
:ULONG,
) -> HRESULT;
pub BluetoothGATTSetDescriptorValue
hDevice: HANDLE,
Descriptor: PBTH_LE_GATT_DESCRIPTOR,
DescriptorValue: PBTH_LE_GATT_DESCRIPTOR_VALUE
ONG,
) ->;
fnBluetoothGATTRegisterEvent(
hService: HANDLE,
EventType: BTH_LE_GATT_EVENT_TYPE,
ReliableWriteContextPBTH_LE_GATT_RELIABLE_WRITE_CONTEXT
Callback: PFNBLUETOOTH_GATT_EVENT_CALLBACK,
CallbackContext:PVOID,
pEventHandle: *mut BLUETOOTH_GATT_EVENT_HANDLE,
Flags: ULONG,
) -> HRESULT;
pub fn BluetoothGATTUnregisterEvent(
hDevice: HANDLEjava.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
java.lang.StringIndexOutOfBoundsException: Range [20, 13) out of bounds for length 21
)- HRESULT;
}
Messung V0.5 in Prozent C=94 H=98 G=95
¤ Dauer der Verarbeitung: 0.5 Sekunden
¤
*© Formatika GbR, Deutschland