winrt-Windows.Devices.Bluetooth.GenericAttributeProfile 2.2.0__cp313-cp313-win_arm64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,905 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
+
3
+ import datetime
4
+ import sys
5
+ import types
6
+ import typing
7
+ import uuid as _uuid
8
+ from builtins import property as _property
9
+
10
+ import winrt._winrt
11
+ import winrt.system
12
+ import winrt.windows.devices.bluetooth as windows_devices_bluetooth
13
+ import winrt.windows.devices.enumeration as windows_devices_enumeration
14
+ import winrt.windows.foundation as windows_foundation
15
+ import winrt.windows.foundation.collections as windows_foundation_collections
16
+ import winrt.windows.storage.streams as windows_storage_streams
17
+
18
+ from winrt.windows.devices.bluetooth.genericattributeprofile import GattCharacteristicProperties, GattClientCharacteristicConfigurationDescriptorValue, GattCommunicationStatus, GattOpenStatus, GattProtectionLevel, GattRequestState, GattServiceProviderAdvertisementStatus, GattSessionStatus, GattSharingMode, GattWriteOption
19
+
20
+ Self = typing.TypeVar('Self')
21
+
22
+ @typing.final
23
+ class GattCharacteristic_Static(type):
24
+ def convert_short_id_to_uuid(cls, short_id: winrt.system.UInt16, /) -> _uuid.UUID: ...
25
+
26
+ @typing.final
27
+ class GattCharacteristic(winrt.system.Object, metaclass=GattCharacteristic_Static):
28
+ @staticmethod
29
+ def _from(obj: winrt.system.Object, /) -> GattCharacteristic: ...
30
+ def get_all_descriptors(self) -> typing.Optional[windows_foundation_collections.IVectorView[GattDescriptor]]: ...
31
+ def get_descriptors(self, descriptor_uuid: _uuid.UUID, /) -> typing.Optional[windows_foundation_collections.IVectorView[GattDescriptor]]: ...
32
+ @typing.overload
33
+ def get_descriptors_async(self) -> windows_foundation.IAsyncOperation[GattDescriptorsResult]: ...
34
+ @typing.overload
35
+ def get_descriptors_async(self, cache_mode: windows_devices_bluetooth.BluetoothCacheMode, /) -> windows_foundation.IAsyncOperation[GattDescriptorsResult]: ...
36
+ @typing.overload
37
+ def get_descriptors_for_uuid_async(self, descriptor_uuid: _uuid.UUID, /) -> windows_foundation.IAsyncOperation[GattDescriptorsResult]: ...
38
+ @typing.overload
39
+ def get_descriptors_for_uuid_async(self, descriptor_uuid: _uuid.UUID, cache_mode: windows_devices_bluetooth.BluetoothCacheMode, /) -> windows_foundation.IAsyncOperation[GattDescriptorsResult]: ...
40
+ def read_client_characteristic_configuration_descriptor_async(self) -> windows_foundation.IAsyncOperation[GattReadClientCharacteristicConfigurationDescriptorResult]: ...
41
+ @typing.overload
42
+ def read_value_async(self) -> windows_foundation.IAsyncOperation[GattReadResult]: ...
43
+ @typing.overload
44
+ def read_value_async(self, cache_mode: windows_devices_bluetooth.BluetoothCacheMode, /) -> windows_foundation.IAsyncOperation[GattReadResult]: ...
45
+ def write_client_characteristic_configuration_descriptor_async(self, client_characteristic_configuration_descriptor_value: GattClientCharacteristicConfigurationDescriptorValue, /) -> windows_foundation.IAsyncOperation[GattCommunicationStatus]: ...
46
+ def write_client_characteristic_configuration_descriptor_with_result_async(self, client_characteristic_configuration_descriptor_value: GattClientCharacteristicConfigurationDescriptorValue, /) -> windows_foundation.IAsyncOperation[GattWriteResult]: ...
47
+ @typing.overload
48
+ def write_value_async(self, value: typing.Optional[windows_storage_streams.IBuffer], /) -> windows_foundation.IAsyncOperation[GattCommunicationStatus]: ...
49
+ @typing.overload
50
+ def write_value_async(self, value: typing.Optional[windows_storage_streams.IBuffer], write_option: GattWriteOption, /) -> windows_foundation.IAsyncOperation[GattCommunicationStatus]: ...
51
+ @typing.overload
52
+ def write_value_with_result_async(self, value: typing.Optional[windows_storage_streams.IBuffer], /) -> windows_foundation.IAsyncOperation[GattWriteResult]: ...
53
+ @typing.overload
54
+ def write_value_with_result_async(self, value: typing.Optional[windows_storage_streams.IBuffer], write_option: GattWriteOption, /) -> windows_foundation.IAsyncOperation[GattWriteResult]: ...
55
+ def add_value_changed(self, value_changed_handler: windows_foundation.TypedEventHandler[GattCharacteristic, GattValueChangedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
56
+ def remove_value_changed(self, value_changed_event_cookie: windows_foundation.EventRegistrationToken, /) -> None: ...
57
+ @_property
58
+ def protection_level(self) -> GattProtectionLevel: ...
59
+ @protection_level.setter
60
+ def protection_level(self, value: GattProtectionLevel) -> None: ...
61
+ @_property
62
+ def attribute_handle(self) -> winrt.system.UInt16: ...
63
+ @_property
64
+ def characteristic_properties(self) -> GattCharacteristicProperties: ...
65
+ @_property
66
+ def presentation_formats(self) -> typing.Optional[windows_foundation_collections.IVectorView[GattPresentationFormat]]: ...
67
+ @_property
68
+ def user_description(self) -> str: ...
69
+ @_property
70
+ def uuid(self) -> _uuid.UUID: ...
71
+ @_property
72
+ def service(self) -> typing.Optional[GattDeviceService]: ...
73
+
74
+ @typing.final
75
+ class GattCharacteristicUuids_Static(type):
76
+ @_property
77
+ def heart_rate_measurement(cls) -> _uuid.UUID: ...
78
+ @_property
79
+ def battery_level(cls) -> _uuid.UUID: ...
80
+ @_property
81
+ def blood_pressure_feature(cls) -> _uuid.UUID: ...
82
+ @_property
83
+ def blood_pressure_measurement(cls) -> _uuid.UUID: ...
84
+ @_property
85
+ def body_sensor_location(cls) -> _uuid.UUID: ...
86
+ @_property
87
+ def csc_feature(cls) -> _uuid.UUID: ...
88
+ @_property
89
+ def csc_measurement(cls) -> _uuid.UUID: ...
90
+ @_property
91
+ def glucose_feature(cls) -> _uuid.UUID: ...
92
+ @_property
93
+ def glucose_measurement(cls) -> _uuid.UUID: ...
94
+ @_property
95
+ def glucose_measurement_context(cls) -> _uuid.UUID: ...
96
+ @_property
97
+ def heart_rate_control_point(cls) -> _uuid.UUID: ...
98
+ @_property
99
+ def intermediate_cuff_pressure(cls) -> _uuid.UUID: ...
100
+ @_property
101
+ def intermediate_temperature(cls) -> _uuid.UUID: ...
102
+ @_property
103
+ def measurement_interval(cls) -> _uuid.UUID: ...
104
+ @_property
105
+ def record_access_control_point(cls) -> _uuid.UUID: ...
106
+ @_property
107
+ def rsc_feature(cls) -> _uuid.UUID: ...
108
+ @_property
109
+ def rsc_measurement(cls) -> _uuid.UUID: ...
110
+ @_property
111
+ def s_c_control_point(cls) -> _uuid.UUID: ...
112
+ @_property
113
+ def sensor_location(cls) -> _uuid.UUID: ...
114
+ @_property
115
+ def temperature_measurement(cls) -> _uuid.UUID: ...
116
+ @_property
117
+ def temperature_type(cls) -> _uuid.UUID: ...
118
+ @_property
119
+ def gap_peripheral_preferred_connection_parameters(cls) -> _uuid.UUID: ...
120
+ @_property
121
+ def gap_peripheral_privacy_flag(cls) -> _uuid.UUID: ...
122
+ @_property
123
+ def gap_reconnection_address(cls) -> _uuid.UUID: ...
124
+ @_property
125
+ def gatt_service_changed(cls) -> _uuid.UUID: ...
126
+ @_property
127
+ def hardware_revision_string(cls) -> _uuid.UUID: ...
128
+ @_property
129
+ def hid_control_point(cls) -> _uuid.UUID: ...
130
+ @_property
131
+ def hid_information(cls) -> _uuid.UUID: ...
132
+ @_property
133
+ def ieee1107320601_regulatory_certification_data_list(cls) -> _uuid.UUID: ...
134
+ @_property
135
+ def ln_control_point(cls) -> _uuid.UUID: ...
136
+ @_property
137
+ def ln_feature(cls) -> _uuid.UUID: ...
138
+ @_property
139
+ def local_time_information(cls) -> _uuid.UUID: ...
140
+ @_property
141
+ def location_and_speed(cls) -> _uuid.UUID: ...
142
+ @_property
143
+ def manufacturer_name_string(cls) -> _uuid.UUID: ...
144
+ @_property
145
+ def model_number_string(cls) -> _uuid.UUID: ...
146
+ @_property
147
+ def navigation(cls) -> _uuid.UUID: ...
148
+ @_property
149
+ def new_alert(cls) -> _uuid.UUID: ...
150
+ @_property
151
+ def pnp_id(cls) -> _uuid.UUID: ...
152
+ @_property
153
+ def position_quality(cls) -> _uuid.UUID: ...
154
+ @_property
155
+ def protocol_mode(cls) -> _uuid.UUID: ...
156
+ @_property
157
+ def cycling_power_feature(cls) -> _uuid.UUID: ...
158
+ @_property
159
+ def report(cls) -> _uuid.UUID: ...
160
+ @_property
161
+ def report_map(cls) -> _uuid.UUID: ...
162
+ @_property
163
+ def ringer_control_point(cls) -> _uuid.UUID: ...
164
+ @_property
165
+ def ringer_setting(cls) -> _uuid.UUID: ...
166
+ @_property
167
+ def scan_interval_window(cls) -> _uuid.UUID: ...
168
+ @_property
169
+ def scan_refresh(cls) -> _uuid.UUID: ...
170
+ @_property
171
+ def serial_number_string(cls) -> _uuid.UUID: ...
172
+ @_property
173
+ def software_revision_string(cls) -> _uuid.UUID: ...
174
+ @_property
175
+ def support_unread_alert_category(cls) -> _uuid.UUID: ...
176
+ @_property
177
+ def supported_new_alert_category(cls) -> _uuid.UUID: ...
178
+ @_property
179
+ def system_id(cls) -> _uuid.UUID: ...
180
+ @_property
181
+ def time_accuracy(cls) -> _uuid.UUID: ...
182
+ @_property
183
+ def time_source(cls) -> _uuid.UUID: ...
184
+ @_property
185
+ def time_update_control_point(cls) -> _uuid.UUID: ...
186
+ @_property
187
+ def time_update_state(cls) -> _uuid.UUID: ...
188
+ @_property
189
+ def time_with_dst(cls) -> _uuid.UUID: ...
190
+ @_property
191
+ def time_zone(cls) -> _uuid.UUID: ...
192
+ @_property
193
+ def tx_power_level(cls) -> _uuid.UUID: ...
194
+ @_property
195
+ def unread_alert_status(cls) -> _uuid.UUID: ...
196
+ @_property
197
+ def alert_category_id(cls) -> _uuid.UUID: ...
198
+ @_property
199
+ def alert_category_id_bit_mask(cls) -> _uuid.UUID: ...
200
+ @_property
201
+ def alert_level(cls) -> _uuid.UUID: ...
202
+ @_property
203
+ def alert_notification_control_point(cls) -> _uuid.UUID: ...
204
+ @_property
205
+ def alert_status(cls) -> _uuid.UUID: ...
206
+ @_property
207
+ def boot_keyboard_input_report(cls) -> _uuid.UUID: ...
208
+ @_property
209
+ def boot_keyboard_output_report(cls) -> _uuid.UUID: ...
210
+ @_property
211
+ def boot_mouse_input_report(cls) -> _uuid.UUID: ...
212
+ @_property
213
+ def current_time(cls) -> _uuid.UUID: ...
214
+ @_property
215
+ def cycling_power_control_point(cls) -> _uuid.UUID: ...
216
+ @_property
217
+ def reference_time_information(cls) -> _uuid.UUID: ...
218
+ @_property
219
+ def cycling_power_measurement(cls) -> _uuid.UUID: ...
220
+ @_property
221
+ def cycling_power_vector(cls) -> _uuid.UUID: ...
222
+ @_property
223
+ def date_time(cls) -> _uuid.UUID: ...
224
+ @_property
225
+ def day_date_time(cls) -> _uuid.UUID: ...
226
+ @_property
227
+ def day_of_week(cls) -> _uuid.UUID: ...
228
+ @_property
229
+ def dst_offset(cls) -> _uuid.UUID: ...
230
+ @_property
231
+ def exact_time256(cls) -> _uuid.UUID: ...
232
+ @_property
233
+ def firmware_revision_string(cls) -> _uuid.UUID: ...
234
+ @_property
235
+ def gap_appearance(cls) -> _uuid.UUID: ...
236
+ @_property
237
+ def gap_device_name(cls) -> _uuid.UUID: ...
238
+
239
+ @typing.final
240
+ class GattCharacteristicUuids(winrt.system.Object, metaclass=GattCharacteristicUuids_Static):
241
+ pass
242
+
243
+ @typing.final
244
+ class GattCharacteristicsResult(winrt.system.Object):
245
+ @staticmethod
246
+ def _from(obj: winrt.system.Object, /) -> GattCharacteristicsResult: ...
247
+ @_property
248
+ def characteristics(self) -> typing.Optional[windows_foundation_collections.IVectorView[GattCharacteristic]]: ...
249
+ @_property
250
+ def protocol_error(self) -> typing.Optional[typing.Optional[winrt.system.UInt8]]: ...
251
+ @_property
252
+ def status(self) -> GattCommunicationStatus: ...
253
+
254
+ @typing.final
255
+ class GattClientNotificationResult(winrt.system.Object):
256
+ @staticmethod
257
+ def _from(obj: winrt.system.Object, /) -> GattClientNotificationResult: ...
258
+ @_property
259
+ def protocol_error(self) -> typing.Optional[typing.Optional[winrt.system.UInt8]]: ...
260
+ @_property
261
+ def status(self) -> GattCommunicationStatus: ...
262
+ @_property
263
+ def subscribed_client(self) -> typing.Optional[GattSubscribedClient]: ...
264
+ @_property
265
+ def bytes_sent(self) -> winrt.system.UInt16: ...
266
+
267
+ @typing.final
268
+ class GattDescriptor_Static(type):
269
+ def convert_short_id_to_uuid(cls, short_id: winrt.system.UInt16, /) -> _uuid.UUID: ...
270
+
271
+ @typing.final
272
+ class GattDescriptor(winrt.system.Object, metaclass=GattDescriptor_Static):
273
+ @staticmethod
274
+ def _from(obj: winrt.system.Object, /) -> GattDescriptor: ...
275
+ @typing.overload
276
+ def read_value_async(self) -> windows_foundation.IAsyncOperation[GattReadResult]: ...
277
+ @typing.overload
278
+ def read_value_async(self, cache_mode: windows_devices_bluetooth.BluetoothCacheMode, /) -> windows_foundation.IAsyncOperation[GattReadResult]: ...
279
+ def write_value_async(self, value: typing.Optional[windows_storage_streams.IBuffer], /) -> windows_foundation.IAsyncOperation[GattCommunicationStatus]: ...
280
+ def write_value_with_result_async(self, value: typing.Optional[windows_storage_streams.IBuffer], /) -> windows_foundation.IAsyncOperation[GattWriteResult]: ...
281
+ @_property
282
+ def protection_level(self) -> GattProtectionLevel: ...
283
+ @protection_level.setter
284
+ def protection_level(self, value: GattProtectionLevel) -> None: ...
285
+ @_property
286
+ def attribute_handle(self) -> winrt.system.UInt16: ...
287
+ @_property
288
+ def uuid(self) -> _uuid.UUID: ...
289
+
290
+ @typing.final
291
+ class GattDescriptorUuids_Static(type):
292
+ @_property
293
+ def characteristic_aggregate_format(cls) -> _uuid.UUID: ...
294
+ @_property
295
+ def characteristic_extended_properties(cls) -> _uuid.UUID: ...
296
+ @_property
297
+ def characteristic_presentation_format(cls) -> _uuid.UUID: ...
298
+ @_property
299
+ def characteristic_user_description(cls) -> _uuid.UUID: ...
300
+ @_property
301
+ def client_characteristic_configuration(cls) -> _uuid.UUID: ...
302
+ @_property
303
+ def server_characteristic_configuration(cls) -> _uuid.UUID: ...
304
+
305
+ @typing.final
306
+ class GattDescriptorUuids(winrt.system.Object, metaclass=GattDescriptorUuids_Static):
307
+ pass
308
+
309
+ @typing.final
310
+ class GattDescriptorsResult(winrt.system.Object):
311
+ @staticmethod
312
+ def _from(obj: winrt.system.Object, /) -> GattDescriptorsResult: ...
313
+ @_property
314
+ def descriptors(self) -> typing.Optional[windows_foundation_collections.IVectorView[GattDescriptor]]: ...
315
+ @_property
316
+ def protocol_error(self) -> typing.Optional[typing.Optional[winrt.system.UInt8]]: ...
317
+ @_property
318
+ def status(self) -> GattCommunicationStatus: ...
319
+
320
+ @typing.final
321
+ class GattDeviceService_Static(type):
322
+ def convert_short_id_to_uuid(cls, short_id: winrt.system.UInt16, /) -> _uuid.UUID: ...
323
+ @typing.overload
324
+ def from_id_async(cls, device_id: str, /) -> windows_foundation.IAsyncOperation[GattDeviceService]: ...
325
+ @typing.overload
326
+ def from_id_async(cls, device_id: str, sharing_mode: GattSharingMode, /) -> windows_foundation.IAsyncOperation[GattDeviceService]: ...
327
+ @typing.overload
328
+ def get_device_selector_for_bluetooth_device_id(cls, bluetooth_device_id: typing.Optional[windows_devices_bluetooth.BluetoothDeviceId], /) -> str: ...
329
+ @typing.overload
330
+ def get_device_selector_for_bluetooth_device_id(cls, bluetooth_device_id: typing.Optional[windows_devices_bluetooth.BluetoothDeviceId], cache_mode: windows_devices_bluetooth.BluetoothCacheMode, /) -> str: ...
331
+ @typing.overload
332
+ def get_device_selector_for_bluetooth_device_id_and_uuid(cls, bluetooth_device_id: typing.Optional[windows_devices_bluetooth.BluetoothDeviceId], service_uuid: _uuid.UUID, /) -> str: ...
333
+ @typing.overload
334
+ def get_device_selector_for_bluetooth_device_id_and_uuid(cls, bluetooth_device_id: typing.Optional[windows_devices_bluetooth.BluetoothDeviceId], service_uuid: _uuid.UUID, cache_mode: windows_devices_bluetooth.BluetoothCacheMode, /) -> str: ...
335
+ def get_device_selector_from_short_id(cls, service_short_id: winrt.system.UInt16, /) -> str: ...
336
+ def get_device_selector_from_uuid(cls, service_uuid: _uuid.UUID, /) -> str: ...
337
+
338
+ @typing.final
339
+ class GattDeviceService(winrt.system.Object, metaclass=GattDeviceService_Static):
340
+ def __enter__(self: Self) -> Self: ...
341
+ def __exit__(self, *args) -> None: ...
342
+ @staticmethod
343
+ def _from(obj: winrt.system.Object, /) -> GattDeviceService: ...
344
+ def close(self) -> None: ...
345
+ def get_all_characteristics(self) -> typing.Optional[windows_foundation_collections.IVectorView[GattCharacteristic]]: ...
346
+ def get_all_included_services(self) -> typing.Optional[windows_foundation_collections.IVectorView[GattDeviceService]]: ...
347
+ def get_characteristics(self, characteristic_uuid: _uuid.UUID, /) -> typing.Optional[windows_foundation_collections.IVectorView[GattCharacteristic]]: ...
348
+ @typing.overload
349
+ def get_characteristics_async(self) -> windows_foundation.IAsyncOperation[GattCharacteristicsResult]: ...
350
+ @typing.overload
351
+ def get_characteristics_async(self, cache_mode: windows_devices_bluetooth.BluetoothCacheMode, /) -> windows_foundation.IAsyncOperation[GattCharacteristicsResult]: ...
352
+ @typing.overload
353
+ def get_characteristics_for_uuid_async(self, characteristic_uuid: _uuid.UUID, /) -> windows_foundation.IAsyncOperation[GattCharacteristicsResult]: ...
354
+ @typing.overload
355
+ def get_characteristics_for_uuid_async(self, characteristic_uuid: _uuid.UUID, cache_mode: windows_devices_bluetooth.BluetoothCacheMode, /) -> windows_foundation.IAsyncOperation[GattCharacteristicsResult]: ...
356
+ def get_included_services(self, service_uuid: _uuid.UUID, /) -> typing.Optional[windows_foundation_collections.IVectorView[GattDeviceService]]: ...
357
+ @typing.overload
358
+ def get_included_services_async(self) -> windows_foundation.IAsyncOperation[GattDeviceServicesResult]: ...
359
+ @typing.overload
360
+ def get_included_services_async(self, cache_mode: windows_devices_bluetooth.BluetoothCacheMode, /) -> windows_foundation.IAsyncOperation[GattDeviceServicesResult]: ...
361
+ @typing.overload
362
+ def get_included_services_for_uuid_async(self, service_uuid: _uuid.UUID, /) -> windows_foundation.IAsyncOperation[GattDeviceServicesResult]: ...
363
+ @typing.overload
364
+ def get_included_services_for_uuid_async(self, service_uuid: _uuid.UUID, cache_mode: windows_devices_bluetooth.BluetoothCacheMode, /) -> windows_foundation.IAsyncOperation[GattDeviceServicesResult]: ...
365
+ def open_async(self, sharing_mode: GattSharingMode, /) -> windows_foundation.IAsyncOperation[GattOpenStatus]: ...
366
+ def request_access_async(self) -> windows_foundation.IAsyncOperation[windows_devices_enumeration.DeviceAccessStatus]: ...
367
+ @_property
368
+ def attribute_handle(self) -> winrt.system.UInt16: ...
369
+ @_property
370
+ def device_id(self) -> str: ...
371
+ @_property
372
+ def uuid(self) -> _uuid.UUID: ...
373
+ @_property
374
+ def device(self) -> typing.Optional[windows_devices_bluetooth.BluetoothLEDevice]: ...
375
+ @_property
376
+ def parent_services(self) -> typing.Optional[windows_foundation_collections.IVectorView[GattDeviceService]]: ...
377
+ @_property
378
+ def device_access_information(self) -> typing.Optional[windows_devices_enumeration.DeviceAccessInformation]: ...
379
+ @_property
380
+ def session(self) -> typing.Optional[GattSession]: ...
381
+ @_property
382
+ def sharing_mode(self) -> GattSharingMode: ...
383
+
384
+ @typing.final
385
+ class GattDeviceServicesResult(winrt.system.Object):
386
+ @staticmethod
387
+ def _from(obj: winrt.system.Object, /) -> GattDeviceServicesResult: ...
388
+ @_property
389
+ def protocol_error(self) -> typing.Optional[typing.Optional[winrt.system.UInt8]]: ...
390
+ @_property
391
+ def services(self) -> typing.Optional[windows_foundation_collections.IVectorView[GattDeviceService]]: ...
392
+ @_property
393
+ def status(self) -> GattCommunicationStatus: ...
394
+
395
+ @typing.final
396
+ class GattLocalCharacteristic(winrt.system.Object):
397
+ @staticmethod
398
+ def _from(obj: winrt.system.Object, /) -> GattLocalCharacteristic: ...
399
+ def create_descriptor_async(self, descriptor_uuid: _uuid.UUID, parameters: typing.Optional[GattLocalDescriptorParameters], /) -> windows_foundation.IAsyncOperation[GattLocalDescriptorResult]: ...
400
+ @typing.overload
401
+ def notify_value_async(self, value: typing.Optional[windows_storage_streams.IBuffer], /) -> windows_foundation.IAsyncOperation[windows_foundation_collections.IVectorView[GattClientNotificationResult]]: ...
402
+ @typing.overload
403
+ def notify_value_async(self, value: typing.Optional[windows_storage_streams.IBuffer], subscribed_client: typing.Optional[GattSubscribedClient], /) -> windows_foundation.IAsyncOperation[GattClientNotificationResult]: ...
404
+ def add_read_requested(self, handler: windows_foundation.TypedEventHandler[GattLocalCharacteristic, GattReadRequestedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
405
+ def remove_read_requested(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
406
+ def add_subscribed_clients_changed(self, handler: windows_foundation.TypedEventHandler[GattLocalCharacteristic, winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
407
+ def remove_subscribed_clients_changed(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
408
+ def add_write_requested(self, handler: windows_foundation.TypedEventHandler[GattLocalCharacteristic, GattWriteRequestedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
409
+ def remove_write_requested(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
410
+ @_property
411
+ def characteristic_properties(self) -> GattCharacteristicProperties: ...
412
+ @_property
413
+ def descriptors(self) -> typing.Optional[windows_foundation_collections.IVectorView[GattLocalDescriptor]]: ...
414
+ @_property
415
+ def presentation_formats(self) -> typing.Optional[windows_foundation_collections.IVectorView[GattPresentationFormat]]: ...
416
+ @_property
417
+ def read_protection_level(self) -> GattProtectionLevel: ...
418
+ @_property
419
+ def static_value(self) -> typing.Optional[windows_storage_streams.IBuffer]: ...
420
+ @_property
421
+ def subscribed_clients(self) -> typing.Optional[windows_foundation_collections.IVectorView[GattSubscribedClient]]: ...
422
+ @_property
423
+ def user_description(self) -> str: ...
424
+ @_property
425
+ def uuid(self) -> _uuid.UUID: ...
426
+ @_property
427
+ def write_protection_level(self) -> GattProtectionLevel: ...
428
+
429
+ @typing.final
430
+ class GattLocalCharacteristicParameters(winrt.system.Object):
431
+ @staticmethod
432
+ def _from(obj: winrt.system.Object, /) -> GattLocalCharacteristicParameters: ...
433
+ def __new__(cls: typing.Type[GattLocalCharacteristicParameters]) -> GattLocalCharacteristicParameters: ...
434
+ @_property
435
+ def write_protection_level(self) -> GattProtectionLevel: ...
436
+ @write_protection_level.setter
437
+ def write_protection_level(self, value: GattProtectionLevel) -> None: ...
438
+ @_property
439
+ def user_description(self) -> str: ...
440
+ @user_description.setter
441
+ def user_description(self, value: str) -> None: ...
442
+ @_property
443
+ def static_value(self) -> typing.Optional[windows_storage_streams.IBuffer]: ...
444
+ @static_value.setter
445
+ def static_value(self, value: typing.Optional[windows_storage_streams.IBuffer]) -> None: ...
446
+ @_property
447
+ def read_protection_level(self) -> GattProtectionLevel: ...
448
+ @read_protection_level.setter
449
+ def read_protection_level(self, value: GattProtectionLevel) -> None: ...
450
+ @_property
451
+ def characteristic_properties(self) -> GattCharacteristicProperties: ...
452
+ @characteristic_properties.setter
453
+ def characteristic_properties(self, value: GattCharacteristicProperties) -> None: ...
454
+ @_property
455
+ def presentation_formats(self) -> typing.Optional[windows_foundation_collections.IVector[GattPresentationFormat]]: ...
456
+
457
+ @typing.final
458
+ class GattLocalCharacteristicResult(winrt.system.Object):
459
+ @staticmethod
460
+ def _from(obj: winrt.system.Object, /) -> GattLocalCharacteristicResult: ...
461
+ @_property
462
+ def characteristic(self) -> typing.Optional[GattLocalCharacteristic]: ...
463
+ @_property
464
+ def error(self) -> windows_devices_bluetooth.BluetoothError: ...
465
+
466
+ @typing.final
467
+ class GattLocalDescriptor(winrt.system.Object):
468
+ @staticmethod
469
+ def _from(obj: winrt.system.Object, /) -> GattLocalDescriptor: ...
470
+ def add_read_requested(self, handler: windows_foundation.TypedEventHandler[GattLocalDescriptor, GattReadRequestedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
471
+ def remove_read_requested(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
472
+ def add_write_requested(self, handler: windows_foundation.TypedEventHandler[GattLocalDescriptor, GattWriteRequestedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
473
+ def remove_write_requested(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
474
+ @_property
475
+ def read_protection_level(self) -> GattProtectionLevel: ...
476
+ @_property
477
+ def static_value(self) -> typing.Optional[windows_storage_streams.IBuffer]: ...
478
+ @_property
479
+ def uuid(self) -> _uuid.UUID: ...
480
+ @_property
481
+ def write_protection_level(self) -> GattProtectionLevel: ...
482
+
483
+ @typing.final
484
+ class GattLocalDescriptorParameters(winrt.system.Object):
485
+ @staticmethod
486
+ def _from(obj: winrt.system.Object, /) -> GattLocalDescriptorParameters: ...
487
+ def __new__(cls: typing.Type[GattLocalDescriptorParameters]) -> GattLocalDescriptorParameters: ...
488
+ @_property
489
+ def write_protection_level(self) -> GattProtectionLevel: ...
490
+ @write_protection_level.setter
491
+ def write_protection_level(self, value: GattProtectionLevel) -> None: ...
492
+ @_property
493
+ def static_value(self) -> typing.Optional[windows_storage_streams.IBuffer]: ...
494
+ @static_value.setter
495
+ def static_value(self, value: typing.Optional[windows_storage_streams.IBuffer]) -> None: ...
496
+ @_property
497
+ def read_protection_level(self) -> GattProtectionLevel: ...
498
+ @read_protection_level.setter
499
+ def read_protection_level(self, value: GattProtectionLevel) -> None: ...
500
+
501
+ @typing.final
502
+ class GattLocalDescriptorResult(winrt.system.Object):
503
+ @staticmethod
504
+ def _from(obj: winrt.system.Object, /) -> GattLocalDescriptorResult: ...
505
+ @_property
506
+ def descriptor(self) -> typing.Optional[GattLocalDescriptor]: ...
507
+ @_property
508
+ def error(self) -> windows_devices_bluetooth.BluetoothError: ...
509
+
510
+ @typing.final
511
+ class GattLocalService(winrt.system.Object):
512
+ @staticmethod
513
+ def _from(obj: winrt.system.Object, /) -> GattLocalService: ...
514
+ def create_characteristic_async(self, characteristic_uuid: _uuid.UUID, parameters: typing.Optional[GattLocalCharacteristicParameters], /) -> windows_foundation.IAsyncOperation[GattLocalCharacteristicResult]: ...
515
+ @_property
516
+ def characteristics(self) -> typing.Optional[windows_foundation_collections.IVectorView[GattLocalCharacteristic]]: ...
517
+ @_property
518
+ def uuid(self) -> _uuid.UUID: ...
519
+
520
+ @typing.final
521
+ class GattPresentationFormat_Static(type):
522
+ def from_parts(cls, format_type: winrt.system.UInt8, exponent: winrt.system.Int32, unit: winrt.system.UInt16, namespace_id: winrt.system.UInt8, description: winrt.system.UInt16, /) -> typing.Optional[GattPresentationFormat]: ...
523
+ @_property
524
+ def bluetooth_sig_assigned_numbers(cls) -> winrt.system.UInt8: ...
525
+
526
+ @typing.final
527
+ class GattPresentationFormat(winrt.system.Object, metaclass=GattPresentationFormat_Static):
528
+ @staticmethod
529
+ def _from(obj: winrt.system.Object, /) -> GattPresentationFormat: ...
530
+ @_property
531
+ def description(self) -> winrt.system.UInt16: ...
532
+ @_property
533
+ def exponent(self) -> winrt.system.Int32: ...
534
+ @_property
535
+ def format_type(self) -> winrt.system.UInt8: ...
536
+ @_property
537
+ def namespace(self) -> winrt.system.UInt8: ...
538
+ @_property
539
+ def unit(self) -> winrt.system.UInt16: ...
540
+
541
+ @typing.final
542
+ class GattPresentationFormatTypes_Static(type):
543
+ @_property
544
+ def bit2(cls) -> winrt.system.UInt8: ...
545
+ @_property
546
+ def boolean(cls) -> winrt.system.UInt8: ...
547
+ @_property
548
+ def d_uint16(cls) -> winrt.system.UInt8: ...
549
+ @_property
550
+ def float(cls) -> winrt.system.UInt8: ...
551
+ @_property
552
+ def float32(cls) -> winrt.system.UInt8: ...
553
+ @_property
554
+ def float64(cls) -> winrt.system.UInt8: ...
555
+ @_property
556
+ def nibble(cls) -> winrt.system.UInt8: ...
557
+ @_property
558
+ def s_float(cls) -> winrt.system.UInt8: ...
559
+ @_property
560
+ def s_int12(cls) -> winrt.system.UInt8: ...
561
+ @_property
562
+ def s_int128(cls) -> winrt.system.UInt8: ...
563
+ @_property
564
+ def s_int16(cls) -> winrt.system.UInt8: ...
565
+ @_property
566
+ def s_int24(cls) -> winrt.system.UInt8: ...
567
+ @_property
568
+ def s_int32(cls) -> winrt.system.UInt8: ...
569
+ @_property
570
+ def s_int48(cls) -> winrt.system.UInt8: ...
571
+ @_property
572
+ def s_int64(cls) -> winrt.system.UInt8: ...
573
+ @_property
574
+ def s_int8(cls) -> winrt.system.UInt8: ...
575
+ @_property
576
+ def struct(cls) -> winrt.system.UInt8: ...
577
+ @_property
578
+ def uint12(cls) -> winrt.system.UInt8: ...
579
+ @_property
580
+ def uint128(cls) -> winrt.system.UInt8: ...
581
+ @_property
582
+ def uint16(cls) -> winrt.system.UInt8: ...
583
+ @_property
584
+ def uint24(cls) -> winrt.system.UInt8: ...
585
+ @_property
586
+ def uint32(cls) -> winrt.system.UInt8: ...
587
+ @_property
588
+ def uint48(cls) -> winrt.system.UInt8: ...
589
+ @_property
590
+ def uint64(cls) -> winrt.system.UInt8: ...
591
+ @_property
592
+ def uint8(cls) -> winrt.system.UInt8: ...
593
+ @_property
594
+ def utf16(cls) -> winrt.system.UInt8: ...
595
+ @_property
596
+ def utf8(cls) -> winrt.system.UInt8: ...
597
+
598
+ @typing.final
599
+ class GattPresentationFormatTypes(winrt.system.Object, metaclass=GattPresentationFormatTypes_Static):
600
+ pass
601
+
602
+ @typing.final
603
+ class GattProtocolError_Static(type):
604
+ @_property
605
+ def attribute_not_found(cls) -> winrt.system.UInt8: ...
606
+ @_property
607
+ def attribute_not_long(cls) -> winrt.system.UInt8: ...
608
+ @_property
609
+ def insufficient_authentication(cls) -> winrt.system.UInt8: ...
610
+ @_property
611
+ def insufficient_authorization(cls) -> winrt.system.UInt8: ...
612
+ @_property
613
+ def insufficient_encryption(cls) -> winrt.system.UInt8: ...
614
+ @_property
615
+ def insufficient_encryption_key_size(cls) -> winrt.system.UInt8: ...
616
+ @_property
617
+ def insufficient_resources(cls) -> winrt.system.UInt8: ...
618
+ @_property
619
+ def invalid_attribute_value_length(cls) -> winrt.system.UInt8: ...
620
+ @_property
621
+ def invalid_handle(cls) -> winrt.system.UInt8: ...
622
+ @_property
623
+ def invalid_offset(cls) -> winrt.system.UInt8: ...
624
+ @_property
625
+ def invalid_pdu(cls) -> winrt.system.UInt8: ...
626
+ @_property
627
+ def prepare_queue_full(cls) -> winrt.system.UInt8: ...
628
+ @_property
629
+ def read_not_permitted(cls) -> winrt.system.UInt8: ...
630
+ @_property
631
+ def request_not_supported(cls) -> winrt.system.UInt8: ...
632
+ @_property
633
+ def unlikely_error(cls) -> winrt.system.UInt8: ...
634
+ @_property
635
+ def unsupported_group_type(cls) -> winrt.system.UInt8: ...
636
+ @_property
637
+ def write_not_permitted(cls) -> winrt.system.UInt8: ...
638
+
639
+ @typing.final
640
+ class GattProtocolError(winrt.system.Object, metaclass=GattProtocolError_Static):
641
+ pass
642
+
643
+ @typing.final
644
+ class GattReadClientCharacteristicConfigurationDescriptorResult(winrt.system.Object):
645
+ @staticmethod
646
+ def _from(obj: winrt.system.Object, /) -> GattReadClientCharacteristicConfigurationDescriptorResult: ...
647
+ @_property
648
+ def client_characteristic_configuration_descriptor(self) -> GattClientCharacteristicConfigurationDescriptorValue: ...
649
+ @_property
650
+ def status(self) -> GattCommunicationStatus: ...
651
+ @_property
652
+ def protocol_error(self) -> typing.Optional[typing.Optional[winrt.system.UInt8]]: ...
653
+
654
+ @typing.final
655
+ class GattReadRequest(winrt.system.Object):
656
+ @staticmethod
657
+ def _from(obj: winrt.system.Object, /) -> GattReadRequest: ...
658
+ def respond_with_protocol_error(self, protocol_error: winrt.system.UInt8, /) -> None: ...
659
+ def respond_with_value(self, value: typing.Optional[windows_storage_streams.IBuffer], /) -> None: ...
660
+ def add_state_changed(self, handler: windows_foundation.TypedEventHandler[GattReadRequest, GattRequestStateChangedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
661
+ def remove_state_changed(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
662
+ @_property
663
+ def length(self) -> winrt.system.UInt32: ...
664
+ @_property
665
+ def offset(self) -> winrt.system.UInt32: ...
666
+ @_property
667
+ def state(self) -> GattRequestState: ...
668
+
669
+ @typing.final
670
+ class GattReadRequestedEventArgs(winrt.system.Object):
671
+ @staticmethod
672
+ def _from(obj: winrt.system.Object, /) -> GattReadRequestedEventArgs: ...
673
+ def get_deferral(self) -> typing.Optional[windows_foundation.Deferral]: ...
674
+ def get_request_async(self) -> windows_foundation.IAsyncOperation[GattReadRequest]: ...
675
+ @_property
676
+ def session(self) -> typing.Optional[GattSession]: ...
677
+
678
+ @typing.final
679
+ class GattReadResult(winrt.system.Object):
680
+ @staticmethod
681
+ def _from(obj: winrt.system.Object, /) -> GattReadResult: ...
682
+ @_property
683
+ def status(self) -> GattCommunicationStatus: ...
684
+ @_property
685
+ def value(self) -> typing.Optional[windows_storage_streams.IBuffer]: ...
686
+ @_property
687
+ def protocol_error(self) -> typing.Optional[typing.Optional[winrt.system.UInt8]]: ...
688
+
689
+ @typing.final
690
+ class GattReliableWriteTransaction(winrt.system.Object):
691
+ @staticmethod
692
+ def _from(obj: winrt.system.Object, /) -> GattReliableWriteTransaction: ...
693
+ def __new__(cls: typing.Type[GattReliableWriteTransaction]) -> GattReliableWriteTransaction: ...
694
+ def commit_async(self) -> windows_foundation.IAsyncOperation[GattCommunicationStatus]: ...
695
+ def commit_with_result_async(self) -> windows_foundation.IAsyncOperation[GattWriteResult]: ...
696
+ def write_value(self, characteristic: typing.Optional[GattCharacteristic], value: typing.Optional[windows_storage_streams.IBuffer], /) -> None: ...
697
+
698
+ @typing.final
699
+ class GattRequestStateChangedEventArgs(winrt.system.Object):
700
+ @staticmethod
701
+ def _from(obj: winrt.system.Object, /) -> GattRequestStateChangedEventArgs: ...
702
+ @_property
703
+ def error(self) -> windows_devices_bluetooth.BluetoothError: ...
704
+ @_property
705
+ def state(self) -> GattRequestState: ...
706
+
707
+ @typing.final
708
+ class GattServiceProvider_Static(type):
709
+ def create_async(cls, service_uuid: _uuid.UUID, /) -> windows_foundation.IAsyncOperation[GattServiceProviderResult]: ...
710
+
711
+ @typing.final
712
+ class GattServiceProvider(winrt.system.Object, metaclass=GattServiceProvider_Static):
713
+ @staticmethod
714
+ def _from(obj: winrt.system.Object, /) -> GattServiceProvider: ...
715
+ @typing.overload
716
+ def start_advertising(self) -> None: ...
717
+ @typing.overload
718
+ def start_advertising(self, parameters: typing.Optional[GattServiceProviderAdvertisingParameters], /) -> None: ...
719
+ def stop_advertising(self) -> None: ...
720
+ def add_advertisement_status_changed(self, handler: windows_foundation.TypedEventHandler[GattServiceProvider, GattServiceProviderAdvertisementStatusChangedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
721
+ def remove_advertisement_status_changed(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
722
+ @_property
723
+ def advertisement_status(self) -> GattServiceProviderAdvertisementStatus: ...
724
+ @_property
725
+ def service(self) -> typing.Optional[GattLocalService]: ...
726
+
727
+ @typing.final
728
+ class GattServiceProviderAdvertisementStatusChangedEventArgs(winrt.system.Object):
729
+ @staticmethod
730
+ def _from(obj: winrt.system.Object, /) -> GattServiceProviderAdvertisementStatusChangedEventArgs: ...
731
+ @_property
732
+ def error(self) -> windows_devices_bluetooth.BluetoothError: ...
733
+ @_property
734
+ def status(self) -> GattServiceProviderAdvertisementStatus: ...
735
+
736
+ @typing.final
737
+ class GattServiceProviderAdvertisingParameters(winrt.system.Object):
738
+ @staticmethod
739
+ def _from(obj: winrt.system.Object, /) -> GattServiceProviderAdvertisingParameters: ...
740
+ def __new__(cls: typing.Type[GattServiceProviderAdvertisingParameters]) -> GattServiceProviderAdvertisingParameters: ...
741
+ @_property
742
+ def is_discoverable(self) -> bool: ...
743
+ @is_discoverable.setter
744
+ def is_discoverable(self, value: bool) -> None: ...
745
+ @_property
746
+ def is_connectable(self) -> bool: ...
747
+ @is_connectable.setter
748
+ def is_connectable(self, value: bool) -> None: ...
749
+ @_property
750
+ def service_data(self) -> typing.Optional[windows_storage_streams.IBuffer]: ...
751
+ @service_data.setter
752
+ def service_data(self, value: typing.Optional[windows_storage_streams.IBuffer]) -> None: ...
753
+
754
+ @typing.final
755
+ class GattServiceProviderResult(winrt.system.Object):
756
+ @staticmethod
757
+ def _from(obj: winrt.system.Object, /) -> GattServiceProviderResult: ...
758
+ @_property
759
+ def error(self) -> windows_devices_bluetooth.BluetoothError: ...
760
+ @_property
761
+ def service_provider(self) -> typing.Optional[GattServiceProvider]: ...
762
+
763
+ @typing.final
764
+ class GattServiceUuids_Static(type):
765
+ @_property
766
+ def battery(cls) -> _uuid.UUID: ...
767
+ @_property
768
+ def blood_pressure(cls) -> _uuid.UUID: ...
769
+ @_property
770
+ def cycling_speed_and_cadence(cls) -> _uuid.UUID: ...
771
+ @_property
772
+ def generic_access(cls) -> _uuid.UUID: ...
773
+ @_property
774
+ def generic_attribute(cls) -> _uuid.UUID: ...
775
+ @_property
776
+ def glucose(cls) -> _uuid.UUID: ...
777
+ @_property
778
+ def health_thermometer(cls) -> _uuid.UUID: ...
779
+ @_property
780
+ def heart_rate(cls) -> _uuid.UUID: ...
781
+ @_property
782
+ def running_speed_and_cadence(cls) -> _uuid.UUID: ...
783
+ @_property
784
+ def alert_notification(cls) -> _uuid.UUID: ...
785
+ @_property
786
+ def current_time(cls) -> _uuid.UUID: ...
787
+ @_property
788
+ def cycling_power(cls) -> _uuid.UUID: ...
789
+ @_property
790
+ def device_information(cls) -> _uuid.UUID: ...
791
+ @_property
792
+ def human_interface_device(cls) -> _uuid.UUID: ...
793
+ @_property
794
+ def immediate_alert(cls) -> _uuid.UUID: ...
795
+ @_property
796
+ def link_loss(cls) -> _uuid.UUID: ...
797
+ @_property
798
+ def location_and_navigation(cls) -> _uuid.UUID: ...
799
+ @_property
800
+ def next_dst_change(cls) -> _uuid.UUID: ...
801
+ @_property
802
+ def phone_alert_status(cls) -> _uuid.UUID: ...
803
+ @_property
804
+ def reference_time_update(cls) -> _uuid.UUID: ...
805
+ @_property
806
+ def scan_parameters(cls) -> _uuid.UUID: ...
807
+ @_property
808
+ def tx_power(cls) -> _uuid.UUID: ...
809
+
810
+ @typing.final
811
+ class GattServiceUuids(winrt.system.Object, metaclass=GattServiceUuids_Static):
812
+ pass
813
+
814
+ @typing.final
815
+ class GattSession_Static(type):
816
+ def from_device_id_async(cls, device_id: typing.Optional[windows_devices_bluetooth.BluetoothDeviceId], /) -> windows_foundation.IAsyncOperation[GattSession]: ...
817
+
818
+ @typing.final
819
+ class GattSession(winrt.system.Object, metaclass=GattSession_Static):
820
+ def __enter__(self: Self) -> Self: ...
821
+ def __exit__(self, *args) -> None: ...
822
+ @staticmethod
823
+ def _from(obj: winrt.system.Object, /) -> GattSession: ...
824
+ def close(self) -> None: ...
825
+ def add_max_pdu_size_changed(self, handler: windows_foundation.TypedEventHandler[GattSession, winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
826
+ def remove_max_pdu_size_changed(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
827
+ def add_session_status_changed(self, handler: windows_foundation.TypedEventHandler[GattSession, GattSessionStatusChangedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
828
+ def remove_session_status_changed(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
829
+ @_property
830
+ def maintain_connection(self) -> bool: ...
831
+ @maintain_connection.setter
832
+ def maintain_connection(self, value: bool) -> None: ...
833
+ @_property
834
+ def can_maintain_connection(self) -> bool: ...
835
+ @_property
836
+ def device_id(self) -> typing.Optional[windows_devices_bluetooth.BluetoothDeviceId]: ...
837
+ @_property
838
+ def max_pdu_size(self) -> winrt.system.UInt16: ...
839
+ @_property
840
+ def session_status(self) -> GattSessionStatus: ...
841
+
842
+ @typing.final
843
+ class GattSessionStatusChangedEventArgs(winrt.system.Object):
844
+ @staticmethod
845
+ def _from(obj: winrt.system.Object, /) -> GattSessionStatusChangedEventArgs: ...
846
+ @_property
847
+ def error(self) -> windows_devices_bluetooth.BluetoothError: ...
848
+ @_property
849
+ def status(self) -> GattSessionStatus: ...
850
+
851
+ @typing.final
852
+ class GattSubscribedClient(winrt.system.Object):
853
+ @staticmethod
854
+ def _from(obj: winrt.system.Object, /) -> GattSubscribedClient: ...
855
+ def add_max_notification_size_changed(self, handler: windows_foundation.TypedEventHandler[GattSubscribedClient, winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
856
+ def remove_max_notification_size_changed(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
857
+ @_property
858
+ def max_notification_size(self) -> winrt.system.UInt16: ...
859
+ @_property
860
+ def session(self) -> typing.Optional[GattSession]: ...
861
+
862
+ @typing.final
863
+ class GattValueChangedEventArgs(winrt.system.Object):
864
+ @staticmethod
865
+ def _from(obj: winrt.system.Object, /) -> GattValueChangedEventArgs: ...
866
+ @_property
867
+ def characteristic_value(self) -> typing.Optional[windows_storage_streams.IBuffer]: ...
868
+ @_property
869
+ def timestamp(self) -> datetime.datetime: ...
870
+
871
+ @typing.final
872
+ class GattWriteRequest(winrt.system.Object):
873
+ @staticmethod
874
+ def _from(obj: winrt.system.Object, /) -> GattWriteRequest: ...
875
+ def respond(self) -> None: ...
876
+ def respond_with_protocol_error(self, protocol_error: winrt.system.UInt8, /) -> None: ...
877
+ def add_state_changed(self, handler: windows_foundation.TypedEventHandler[GattWriteRequest, GattRequestStateChangedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
878
+ def remove_state_changed(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
879
+ @_property
880
+ def offset(self) -> winrt.system.UInt32: ...
881
+ @_property
882
+ def option(self) -> GattWriteOption: ...
883
+ @_property
884
+ def state(self) -> GattRequestState: ...
885
+ @_property
886
+ def value(self) -> typing.Optional[windows_storage_streams.IBuffer]: ...
887
+
888
+ @typing.final
889
+ class GattWriteRequestedEventArgs(winrt.system.Object):
890
+ @staticmethod
891
+ def _from(obj: winrt.system.Object, /) -> GattWriteRequestedEventArgs: ...
892
+ def get_deferral(self) -> typing.Optional[windows_foundation.Deferral]: ...
893
+ def get_request_async(self) -> windows_foundation.IAsyncOperation[GattWriteRequest]: ...
894
+ @_property
895
+ def session(self) -> typing.Optional[GattSession]: ...
896
+
897
+ @typing.final
898
+ class GattWriteResult(winrt.system.Object):
899
+ @staticmethod
900
+ def _from(obj: winrt.system.Object, /) -> GattWriteResult: ...
901
+ @_property
902
+ def protocol_error(self) -> typing.Optional[typing.Optional[winrt.system.UInt8]]: ...
903
+ @_property
904
+ def status(self) -> GattCommunicationStatus: ...
905
+
@@ -0,0 +1,158 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
+
3
+ import enum
4
+
5
+ import winrt.system
6
+ from winrt import _winrt_windows_devices_bluetooth_genericattributeprofile
7
+
8
+ __all__ = [
9
+ "GattCharacteristicProperties",
10
+ "GattClientCharacteristicConfigurationDescriptorValue",
11
+ "GattCommunicationStatus",
12
+ "GattOpenStatus",
13
+ "GattProtectionLevel",
14
+ "GattRequestState",
15
+ "GattServiceProviderAdvertisementStatus",
16
+ "GattSessionStatus",
17
+ "GattSharingMode",
18
+ "GattWriteOption",
19
+ "GattCharacteristic",
20
+ "GattCharacteristicUuids",
21
+ "GattCharacteristicsResult",
22
+ "GattClientNotificationResult",
23
+ "GattDescriptor",
24
+ "GattDescriptorUuids",
25
+ "GattDescriptorsResult",
26
+ "GattDeviceService",
27
+ "GattDeviceServicesResult",
28
+ "GattLocalCharacteristic",
29
+ "GattLocalCharacteristicParameters",
30
+ "GattLocalCharacteristicResult",
31
+ "GattLocalDescriptor",
32
+ "GattLocalDescriptorParameters",
33
+ "GattLocalDescriptorResult",
34
+ "GattLocalService",
35
+ "GattPresentationFormat",
36
+ "GattPresentationFormatTypes",
37
+ "GattProtocolError",
38
+ "GattReadClientCharacteristicConfigurationDescriptorResult",
39
+ "GattReadRequest",
40
+ "GattReadRequestedEventArgs",
41
+ "GattReadResult",
42
+ "GattReliableWriteTransaction",
43
+ "GattRequestStateChangedEventArgs",
44
+ "GattServiceProvider",
45
+ "GattServiceProviderAdvertisementStatusChangedEventArgs",
46
+ "GattServiceProviderAdvertisingParameters",
47
+ "GattServiceProviderResult",
48
+ "GattServiceUuids",
49
+ "GattSession",
50
+ "GattSessionStatusChangedEventArgs",
51
+ "GattSubscribedClient",
52
+ "GattValueChangedEventArgs",
53
+ "GattWriteRequest",
54
+ "GattWriteRequestedEventArgs",
55
+ "GattWriteResult",
56
+ ]
57
+
58
+ class GattCharacteristicProperties(enum.IntFlag):
59
+ NONE = 0x0
60
+ BROADCAST = 0x1
61
+ READ = 0x2
62
+ WRITE_WITHOUT_RESPONSE = 0x4
63
+ WRITE = 0x8
64
+ NOTIFY = 0x10
65
+ INDICATE = 0x20
66
+ AUTHENTICATED_SIGNED_WRITES = 0x40
67
+ EXTENDED_PROPERTIES = 0x80
68
+ RELIABLE_WRITES = 0x100
69
+ WRITABLE_AUXILIARIES = 0x200
70
+
71
+ class GattClientCharacteristicConfigurationDescriptorValue(enum.IntEnum):
72
+ NONE = 0
73
+ NOTIFY = 1
74
+ INDICATE = 2
75
+
76
+ class GattCommunicationStatus(enum.IntEnum):
77
+ SUCCESS = 0
78
+ UNREACHABLE = 1
79
+ PROTOCOL_ERROR = 2
80
+ ACCESS_DENIED = 3
81
+
82
+ class GattOpenStatus(enum.IntEnum):
83
+ UNSPECIFIED = 0
84
+ SUCCESS = 1
85
+ ALREADY_OPENED = 2
86
+ NOT_FOUND = 3
87
+ SHARING_VIOLATION = 4
88
+ ACCESS_DENIED = 5
89
+
90
+ class GattProtectionLevel(enum.IntEnum):
91
+ PLAIN = 0
92
+ AUTHENTICATION_REQUIRED = 1
93
+ ENCRYPTION_REQUIRED = 2
94
+ ENCRYPTION_AND_AUTHENTICATION_REQUIRED = 3
95
+
96
+ class GattRequestState(enum.IntEnum):
97
+ PENDING = 0
98
+ COMPLETED = 1
99
+ CANCELED = 2
100
+
101
+ class GattServiceProviderAdvertisementStatus(enum.IntEnum):
102
+ CREATED = 0
103
+ STOPPED = 1
104
+ STARTED = 2
105
+ ABORTED = 3
106
+ STARTED_WITHOUT_ALL_ADVERTISEMENT_DATA = 4
107
+
108
+ class GattSessionStatus(enum.IntEnum):
109
+ CLOSED = 0
110
+ ACTIVE = 1
111
+
112
+ class GattSharingMode(enum.IntEnum):
113
+ UNSPECIFIED = 0
114
+ EXCLUSIVE = 1
115
+ SHARED_READ_ONLY = 2
116
+ SHARED_READ_AND_WRITE = 3
117
+
118
+ class GattWriteOption(enum.IntEnum):
119
+ WRITE_WITH_RESPONSE = 0
120
+ WRITE_WITHOUT_RESPONSE = 1
121
+
122
+ GattCharacteristic = _winrt_windows_devices_bluetooth_genericattributeprofile.GattCharacteristic
123
+ GattCharacteristicUuids = _winrt_windows_devices_bluetooth_genericattributeprofile.GattCharacteristicUuids
124
+ GattCharacteristicsResult = _winrt_windows_devices_bluetooth_genericattributeprofile.GattCharacteristicsResult
125
+ GattClientNotificationResult = _winrt_windows_devices_bluetooth_genericattributeprofile.GattClientNotificationResult
126
+ GattDescriptor = _winrt_windows_devices_bluetooth_genericattributeprofile.GattDescriptor
127
+ GattDescriptorUuids = _winrt_windows_devices_bluetooth_genericattributeprofile.GattDescriptorUuids
128
+ GattDescriptorsResult = _winrt_windows_devices_bluetooth_genericattributeprofile.GattDescriptorsResult
129
+ GattDeviceService = _winrt_windows_devices_bluetooth_genericattributeprofile.GattDeviceService
130
+ GattDeviceServicesResult = _winrt_windows_devices_bluetooth_genericattributeprofile.GattDeviceServicesResult
131
+ GattLocalCharacteristic = _winrt_windows_devices_bluetooth_genericattributeprofile.GattLocalCharacteristic
132
+ GattLocalCharacteristicParameters = _winrt_windows_devices_bluetooth_genericattributeprofile.GattLocalCharacteristicParameters
133
+ GattLocalCharacteristicResult = _winrt_windows_devices_bluetooth_genericattributeprofile.GattLocalCharacteristicResult
134
+ GattLocalDescriptor = _winrt_windows_devices_bluetooth_genericattributeprofile.GattLocalDescriptor
135
+ GattLocalDescriptorParameters = _winrt_windows_devices_bluetooth_genericattributeprofile.GattLocalDescriptorParameters
136
+ GattLocalDescriptorResult = _winrt_windows_devices_bluetooth_genericattributeprofile.GattLocalDescriptorResult
137
+ GattLocalService = _winrt_windows_devices_bluetooth_genericattributeprofile.GattLocalService
138
+ GattPresentationFormat = _winrt_windows_devices_bluetooth_genericattributeprofile.GattPresentationFormat
139
+ GattPresentationFormatTypes = _winrt_windows_devices_bluetooth_genericattributeprofile.GattPresentationFormatTypes
140
+ GattProtocolError = _winrt_windows_devices_bluetooth_genericattributeprofile.GattProtocolError
141
+ GattReadClientCharacteristicConfigurationDescriptorResult = _winrt_windows_devices_bluetooth_genericattributeprofile.GattReadClientCharacteristicConfigurationDescriptorResult
142
+ GattReadRequest = _winrt_windows_devices_bluetooth_genericattributeprofile.GattReadRequest
143
+ GattReadRequestedEventArgs = _winrt_windows_devices_bluetooth_genericattributeprofile.GattReadRequestedEventArgs
144
+ GattReadResult = _winrt_windows_devices_bluetooth_genericattributeprofile.GattReadResult
145
+ GattReliableWriteTransaction = _winrt_windows_devices_bluetooth_genericattributeprofile.GattReliableWriteTransaction
146
+ GattRequestStateChangedEventArgs = _winrt_windows_devices_bluetooth_genericattributeprofile.GattRequestStateChangedEventArgs
147
+ GattServiceProvider = _winrt_windows_devices_bluetooth_genericattributeprofile.GattServiceProvider
148
+ GattServiceProviderAdvertisementStatusChangedEventArgs = _winrt_windows_devices_bluetooth_genericattributeprofile.GattServiceProviderAdvertisementStatusChangedEventArgs
149
+ GattServiceProviderAdvertisingParameters = _winrt_windows_devices_bluetooth_genericattributeprofile.GattServiceProviderAdvertisingParameters
150
+ GattServiceProviderResult = _winrt_windows_devices_bluetooth_genericattributeprofile.GattServiceProviderResult
151
+ GattServiceUuids = _winrt_windows_devices_bluetooth_genericattributeprofile.GattServiceUuids
152
+ GattSession = _winrt_windows_devices_bluetooth_genericattributeprofile.GattSession
153
+ GattSessionStatusChangedEventArgs = _winrt_windows_devices_bluetooth_genericattributeprofile.GattSessionStatusChangedEventArgs
154
+ GattSubscribedClient = _winrt_windows_devices_bluetooth_genericattributeprofile.GattSubscribedClient
155
+ GattValueChangedEventArgs = _winrt_windows_devices_bluetooth_genericattributeprofile.GattValueChangedEventArgs
156
+ GattWriteRequest = _winrt_windows_devices_bluetooth_genericattributeprofile.GattWriteRequest
157
+ GattWriteRequestedEventArgs = _winrt_windows_devices_bluetooth_genericattributeprofile.GattWriteRequestedEventArgs
158
+ GattWriteResult = _winrt_windows_devices_bluetooth_genericattributeprofile.GattWriteResult
@@ -0,0 +1,29 @@
1
+ Metadata-Version: 2.1
2
+ Name: winrt-Windows.Devices.Bluetooth.GenericAttributeProfile
3
+ Version: 2.2.0
4
+ Summary: Python projection of Windows Runtime (WinRT) APIs
5
+ License: MIT
6
+ Project-URL: Documentation, https://pywinrt.readthedocs.io
7
+ Project-URL: Repository, https://github.com/pywinrt/pywinrt
8
+ Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
9
+ Classifier: Operating System :: Microsoft :: Windows
10
+ Classifier: Programming Language :: Python :: 3
11
+ Classifier: Programming Language :: Python :: Implementation :: CPython
12
+ Classifier: Intended Audience :: Developers
13
+ Requires-Python: <3.14,>=3.9
14
+ Description-Content-Type: text/markdown
15
+ Requires-Dist: winrt-runtime ==2.2.0
16
+ Provides-Extra: all
17
+ Requires-Dist: winrt-Windows.Devices.Bluetooth[all] ==2.2.0 ; extra == 'all'
18
+ Requires-Dist: winrt-Windows.Devices.Enumeration[all] ==2.2.0 ; extra == 'all'
19
+ Requires-Dist: winrt-Windows.Foundation[all] ==2.2.0 ; extra == 'all'
20
+ Requires-Dist: winrt-Windows.Foundation.Collections[all] ==2.2.0 ; extra == 'all'
21
+ Requires-Dist: winrt-Windows.Storage.Streams[all] ==2.2.0 ; extra == 'all'
22
+
23
+ <!-- warning: Please don't edit this file. It was automatically generated. -->
24
+
25
+ # winrt-Windows.Devices.Bluetooth.GenericAttributeProfile
26
+
27
+ Windows Runtime (WinRT) APIs for for the `Windows.Devices.Bluetooth.GenericAttributeProfile` namespace.
28
+
29
+ This package provides the `winrt.windows.devices.bluetooth.genericattributeprofile` module.
@@ -0,0 +1,8 @@
1
+ winrt/_winrt_windows_devices_bluetooth_genericattributeprofile.cp313-win_arm64.pyd,sha256=dv3IBKmSiv1aHQGIIO9FVATE56GOpPHCuw7XfZJxqyQ,894976
2
+ winrt/_winrt_windows_devices_bluetooth_genericattributeprofile.pyi,sha256=FpCEi9cVhw-L22rAELnKoaKk2Bu_LdfbTYaqOhcblQk,42197
3
+ winrt/windows/devices/bluetooth/genericattributeprofile/__init__.py,sha256=31GfcoxJtnjMOpKS3B-7GgEOVkA7kfnL87LdwmRO4hg,7232
4
+ winrt/windows/devices/bluetooth/genericattributeprofile/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
+ winrt_Windows.Devices.Bluetooth.GenericAttributeProfile-2.2.0.dist-info/METADATA,sha256=YrXpZ93Qzqv_Q1HBkWfCywLJt7UAIozRpf89DDfZKA0,1464
6
+ winrt_Windows.Devices.Bluetooth.GenericAttributeProfile-2.2.0.dist-info/WHEEL,sha256=Bc3zGnBzvnkuBaMd-KCqScACPFmA-93PSEDjeXqCzu8,101
7
+ winrt_Windows.Devices.Bluetooth.GenericAttributeProfile-2.2.0.dist-info/top_level.txt,sha256=BzwQb4dZRt0NxCXi10ARjWsox7Asmtf_lXrw_KR-D_E,6
8
+ winrt_Windows.Devices.Bluetooth.GenericAttributeProfile-2.2.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (73.0.0)
3
+ Root-Is-Purelib: false
4
+ Tag: cp313-cp313-win_arm64
5
+