@capgo/capacitor-bluetooth-low-energy 1.0.0

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.
package/dist/docs.json ADDED
@@ -0,0 +1,2856 @@
1
+ {
2
+ "api": {
3
+ "name": "BluetoothLowEnergyPlugin",
4
+ "slug": "bluetoothlowenergyplugin",
5
+ "docs": "Capacitor Bluetooth Low Energy Plugin for BLE communication.",
6
+ "tags": [
7
+ {
8
+ "text": "1.0.0",
9
+ "name": "since"
10
+ }
11
+ ],
12
+ "methods": [
13
+ {
14
+ "name": "initialize",
15
+ "signature": "(options?: InitializeOptions | undefined) => Promise<void>",
16
+ "parameters": [
17
+ {
18
+ "name": "options",
19
+ "docs": "- Initialization options",
20
+ "type": "InitializeOptions | undefined"
21
+ }
22
+ ],
23
+ "returns": "Promise<void>",
24
+ "tags": [
25
+ {
26
+ "name": "param",
27
+ "text": "options - Initialization options"
28
+ },
29
+ {
30
+ "name": "returns",
31
+ "text": "Promise that resolves when initialization is complete"
32
+ },
33
+ {
34
+ "name": "throws",
35
+ "text": "Error if initialization fails"
36
+ },
37
+ {
38
+ "name": "since",
39
+ "text": "1.0.0"
40
+ },
41
+ {
42
+ "name": "example",
43
+ "text": "```typescript\nawait BluetoothLowEnergy.initialize({ mode: 'central' });\n```"
44
+ }
45
+ ],
46
+ "docs": "Initialize the BLE plugin.\nMust be called before any other method.",
47
+ "complexTypes": [
48
+ "InitializeOptions"
49
+ ],
50
+ "slug": "initialize"
51
+ },
52
+ {
53
+ "name": "isAvailable",
54
+ "signature": "() => Promise<IsAvailableResult>",
55
+ "parameters": [],
56
+ "returns": "Promise<IsAvailableResult>",
57
+ "tags": [
58
+ {
59
+ "name": "returns",
60
+ "text": "Promise that resolves with availability status"
61
+ },
62
+ {
63
+ "name": "since",
64
+ "text": "1.0.0"
65
+ },
66
+ {
67
+ "name": "example",
68
+ "text": "```typescript\nconst { available } = await BluetoothLowEnergy.isAvailable();\n```"
69
+ }
70
+ ],
71
+ "docs": "Check if Bluetooth is available on the device.",
72
+ "complexTypes": [
73
+ "IsAvailableResult"
74
+ ],
75
+ "slug": "isavailable"
76
+ },
77
+ {
78
+ "name": "isEnabled",
79
+ "signature": "() => Promise<IsEnabledResult>",
80
+ "parameters": [],
81
+ "returns": "Promise<IsEnabledResult>",
82
+ "tags": [
83
+ {
84
+ "name": "returns",
85
+ "text": "Promise that resolves with enabled status"
86
+ },
87
+ {
88
+ "name": "since",
89
+ "text": "1.0.0"
90
+ },
91
+ {
92
+ "name": "example",
93
+ "text": "```typescript\nconst { enabled } = await BluetoothLowEnergy.isEnabled();\n```"
94
+ }
95
+ ],
96
+ "docs": "Check if Bluetooth is enabled on the device.",
97
+ "complexTypes": [
98
+ "IsEnabledResult"
99
+ ],
100
+ "slug": "isenabled"
101
+ },
102
+ {
103
+ "name": "isLocationEnabled",
104
+ "signature": "() => Promise<IsLocationEnabledResult>",
105
+ "parameters": [],
106
+ "returns": "Promise<IsLocationEnabledResult>",
107
+ "tags": [
108
+ {
109
+ "name": "returns",
110
+ "text": "Promise that resolves with location enabled status"
111
+ },
112
+ {
113
+ "name": "since",
114
+ "text": "1.0.0"
115
+ },
116
+ {
117
+ "name": "example",
118
+ "text": "```typescript\nconst { enabled } = await BluetoothLowEnergy.isLocationEnabled();\n```"
119
+ }
120
+ ],
121
+ "docs": "Check if location services are enabled (Android only).",
122
+ "complexTypes": [
123
+ "IsLocationEnabledResult"
124
+ ],
125
+ "slug": "islocationenabled"
126
+ },
127
+ {
128
+ "name": "openAppSettings",
129
+ "signature": "() => Promise<void>",
130
+ "parameters": [],
131
+ "returns": "Promise<void>",
132
+ "tags": [
133
+ {
134
+ "name": "returns",
135
+ "text": "Promise that resolves when settings are opened"
136
+ },
137
+ {
138
+ "name": "since",
139
+ "text": "1.0.0"
140
+ },
141
+ {
142
+ "name": "example",
143
+ "text": "```typescript\nawait BluetoothLowEnergy.openAppSettings();\n```"
144
+ }
145
+ ],
146
+ "docs": "Open the app settings page.",
147
+ "complexTypes": [],
148
+ "slug": "openappsettings"
149
+ },
150
+ {
151
+ "name": "openBluetoothSettings",
152
+ "signature": "() => Promise<void>",
153
+ "parameters": [],
154
+ "returns": "Promise<void>",
155
+ "tags": [
156
+ {
157
+ "name": "returns",
158
+ "text": "Promise that resolves when settings are opened"
159
+ },
160
+ {
161
+ "name": "since",
162
+ "text": "1.0.0"
163
+ },
164
+ {
165
+ "name": "example",
166
+ "text": "```typescript\nawait BluetoothLowEnergy.openBluetoothSettings();\n```"
167
+ }
168
+ ],
169
+ "docs": "Open the Bluetooth settings page (Android only).",
170
+ "complexTypes": [],
171
+ "slug": "openbluetoothsettings"
172
+ },
173
+ {
174
+ "name": "openLocationSettings",
175
+ "signature": "() => Promise<void>",
176
+ "parameters": [],
177
+ "returns": "Promise<void>",
178
+ "tags": [
179
+ {
180
+ "name": "returns",
181
+ "text": "Promise that resolves when settings are opened"
182
+ },
183
+ {
184
+ "name": "since",
185
+ "text": "1.0.0"
186
+ },
187
+ {
188
+ "name": "example",
189
+ "text": "```typescript\nawait BluetoothLowEnergy.openLocationSettings();\n```"
190
+ }
191
+ ],
192
+ "docs": "Open the location settings page (Android only).",
193
+ "complexTypes": [],
194
+ "slug": "openlocationsettings"
195
+ },
196
+ {
197
+ "name": "checkPermissions",
198
+ "signature": "() => Promise<PermissionStatus>",
199
+ "parameters": [],
200
+ "returns": "Promise<PermissionStatus>",
201
+ "tags": [
202
+ {
203
+ "name": "returns",
204
+ "text": "Promise that resolves with permission status"
205
+ },
206
+ {
207
+ "name": "since",
208
+ "text": "1.0.0"
209
+ },
210
+ {
211
+ "name": "example",
212
+ "text": "```typescript\nconst { bluetooth, location } = await BluetoothLowEnergy.checkPermissions();\n```"
213
+ }
214
+ ],
215
+ "docs": "Check the current permission status.",
216
+ "complexTypes": [
217
+ "PermissionStatus"
218
+ ],
219
+ "slug": "checkpermissions"
220
+ },
221
+ {
222
+ "name": "requestPermissions",
223
+ "signature": "() => Promise<PermissionStatus>",
224
+ "parameters": [],
225
+ "returns": "Promise<PermissionStatus>",
226
+ "tags": [
227
+ {
228
+ "name": "returns",
229
+ "text": "Promise that resolves with permission status"
230
+ },
231
+ {
232
+ "name": "since",
233
+ "text": "1.0.0"
234
+ },
235
+ {
236
+ "name": "example",
237
+ "text": "```typescript\nconst { bluetooth, location } = await BluetoothLowEnergy.requestPermissions();\n```"
238
+ }
239
+ ],
240
+ "docs": "Request Bluetooth permissions.",
241
+ "complexTypes": [
242
+ "PermissionStatus"
243
+ ],
244
+ "slug": "requestpermissions"
245
+ },
246
+ {
247
+ "name": "startScan",
248
+ "signature": "(options?: StartScanOptions | undefined) => Promise<void>",
249
+ "parameters": [
250
+ {
251
+ "name": "options",
252
+ "docs": "- Scan options",
253
+ "type": "StartScanOptions | undefined"
254
+ }
255
+ ],
256
+ "returns": "Promise<void>",
257
+ "tags": [
258
+ {
259
+ "name": "param",
260
+ "text": "options - Scan options"
261
+ },
262
+ {
263
+ "name": "returns",
264
+ "text": "Promise that resolves when scanning starts"
265
+ },
266
+ {
267
+ "name": "since",
268
+ "text": "1.0.0"
269
+ },
270
+ {
271
+ "name": "example",
272
+ "text": "```typescript\nawait BluetoothLowEnergy.startScan({\n services: ['180D'], // Heart Rate Service\n timeout: 10000\n});\n```"
273
+ }
274
+ ],
275
+ "docs": "Start scanning for BLE devices.",
276
+ "complexTypes": [
277
+ "StartScanOptions"
278
+ ],
279
+ "slug": "startscan"
280
+ },
281
+ {
282
+ "name": "stopScan",
283
+ "signature": "() => Promise<void>",
284
+ "parameters": [],
285
+ "returns": "Promise<void>",
286
+ "tags": [
287
+ {
288
+ "name": "returns",
289
+ "text": "Promise that resolves when scanning stops"
290
+ },
291
+ {
292
+ "name": "since",
293
+ "text": "1.0.0"
294
+ },
295
+ {
296
+ "name": "example",
297
+ "text": "```typescript\nawait BluetoothLowEnergy.stopScan();\n```"
298
+ }
299
+ ],
300
+ "docs": "Stop scanning for BLE devices.",
301
+ "complexTypes": [],
302
+ "slug": "stopscan"
303
+ },
304
+ {
305
+ "name": "connect",
306
+ "signature": "(options: ConnectOptions) => Promise<void>",
307
+ "parameters": [
308
+ {
309
+ "name": "options",
310
+ "docs": "- Connection options",
311
+ "type": "ConnectOptions"
312
+ }
313
+ ],
314
+ "returns": "Promise<void>",
315
+ "tags": [
316
+ {
317
+ "name": "param",
318
+ "text": "options - Connection options"
319
+ },
320
+ {
321
+ "name": "returns",
322
+ "text": "Promise that resolves when connected"
323
+ },
324
+ {
325
+ "name": "since",
326
+ "text": "1.0.0"
327
+ },
328
+ {
329
+ "name": "example",
330
+ "text": "```typescript\nawait BluetoothLowEnergy.connect({ deviceId: 'AA:BB:CC:DD:EE:FF' });\n```"
331
+ }
332
+ ],
333
+ "docs": "Connect to a BLE device.",
334
+ "complexTypes": [
335
+ "ConnectOptions"
336
+ ],
337
+ "slug": "connect"
338
+ },
339
+ {
340
+ "name": "disconnect",
341
+ "signature": "(options: DisconnectOptions) => Promise<void>",
342
+ "parameters": [
343
+ {
344
+ "name": "options",
345
+ "docs": "- Disconnect options",
346
+ "type": "DisconnectOptions"
347
+ }
348
+ ],
349
+ "returns": "Promise<void>",
350
+ "tags": [
351
+ {
352
+ "name": "param",
353
+ "text": "options - Disconnect options"
354
+ },
355
+ {
356
+ "name": "returns",
357
+ "text": "Promise that resolves when disconnected"
358
+ },
359
+ {
360
+ "name": "since",
361
+ "text": "1.0.0"
362
+ },
363
+ {
364
+ "name": "example",
365
+ "text": "```typescript\nawait BluetoothLowEnergy.disconnect({ deviceId: 'AA:BB:CC:DD:EE:FF' });\n```"
366
+ }
367
+ ],
368
+ "docs": "Disconnect from a BLE device.",
369
+ "complexTypes": [
370
+ "DisconnectOptions"
371
+ ],
372
+ "slug": "disconnect"
373
+ },
374
+ {
375
+ "name": "createBond",
376
+ "signature": "(options: CreateBondOptions) => Promise<void>",
377
+ "parameters": [
378
+ {
379
+ "name": "options",
380
+ "docs": "- Bond options",
381
+ "type": "CreateBondOptions"
382
+ }
383
+ ],
384
+ "returns": "Promise<void>",
385
+ "tags": [
386
+ {
387
+ "name": "param",
388
+ "text": "options - Bond options"
389
+ },
390
+ {
391
+ "name": "returns",
392
+ "text": "Promise that resolves when bond is created"
393
+ },
394
+ {
395
+ "name": "since",
396
+ "text": "1.0.0"
397
+ },
398
+ {
399
+ "name": "example",
400
+ "text": "```typescript\nawait BluetoothLowEnergy.createBond({ deviceId: 'AA:BB:CC:DD:EE:FF' });\n```"
401
+ }
402
+ ],
403
+ "docs": "Create a bond with a BLE device (Android only).",
404
+ "complexTypes": [
405
+ "CreateBondOptions"
406
+ ],
407
+ "slug": "createbond"
408
+ },
409
+ {
410
+ "name": "isBonded",
411
+ "signature": "(options: IsBondedOptions) => Promise<IsBondedResult>",
412
+ "parameters": [
413
+ {
414
+ "name": "options",
415
+ "docs": "- Bond check options",
416
+ "type": "IsBondedOptions"
417
+ }
418
+ ],
419
+ "returns": "Promise<IsBondedResult>",
420
+ "tags": [
421
+ {
422
+ "name": "param",
423
+ "text": "options - Bond check options"
424
+ },
425
+ {
426
+ "name": "returns",
427
+ "text": "Promise that resolves with bonded status"
428
+ },
429
+ {
430
+ "name": "since",
431
+ "text": "1.0.0"
432
+ },
433
+ {
434
+ "name": "example",
435
+ "text": "```typescript\nconst { bonded } = await BluetoothLowEnergy.isBonded({ deviceId: 'AA:BB:CC:DD:EE:FF' });\n```"
436
+ }
437
+ ],
438
+ "docs": "Check if a device is bonded (Android only).",
439
+ "complexTypes": [
440
+ "IsBondedResult",
441
+ "IsBondedOptions"
442
+ ],
443
+ "slug": "isbonded"
444
+ },
445
+ {
446
+ "name": "discoverServices",
447
+ "signature": "(options: DiscoverServicesOptions) => Promise<void>",
448
+ "parameters": [
449
+ {
450
+ "name": "options",
451
+ "docs": "- Discover options",
452
+ "type": "DiscoverServicesOptions"
453
+ }
454
+ ],
455
+ "returns": "Promise<void>",
456
+ "tags": [
457
+ {
458
+ "name": "param",
459
+ "text": "options - Discover options"
460
+ },
461
+ {
462
+ "name": "returns",
463
+ "text": "Promise that resolves when discovery is complete"
464
+ },
465
+ {
466
+ "name": "since",
467
+ "text": "1.0.0"
468
+ },
469
+ {
470
+ "name": "example",
471
+ "text": "```typescript\nawait BluetoothLowEnergy.discoverServices({ deviceId: 'AA:BB:CC:DD:EE:FF' });\n```"
472
+ }
473
+ ],
474
+ "docs": "Discover services on a connected device.",
475
+ "complexTypes": [
476
+ "DiscoverServicesOptions"
477
+ ],
478
+ "slug": "discoverservices"
479
+ },
480
+ {
481
+ "name": "getServices",
482
+ "signature": "(options: GetServicesOptions) => Promise<GetServicesResult>",
483
+ "parameters": [
484
+ {
485
+ "name": "options",
486
+ "docs": "- Get services options",
487
+ "type": "GetServicesOptions"
488
+ }
489
+ ],
490
+ "returns": "Promise<GetServicesResult>",
491
+ "tags": [
492
+ {
493
+ "name": "param",
494
+ "text": "options - Get services options"
495
+ },
496
+ {
497
+ "name": "returns",
498
+ "text": "Promise that resolves with services list"
499
+ },
500
+ {
501
+ "name": "since",
502
+ "text": "1.0.0"
503
+ },
504
+ {
505
+ "name": "example",
506
+ "text": "```typescript\nconst { services } = await BluetoothLowEnergy.getServices({ deviceId: 'AA:BB:CC:DD:EE:FF' });\n```"
507
+ }
508
+ ],
509
+ "docs": "Get discovered services for a device.",
510
+ "complexTypes": [
511
+ "GetServicesResult",
512
+ "GetServicesOptions"
513
+ ],
514
+ "slug": "getservices"
515
+ },
516
+ {
517
+ "name": "getConnectedDevices",
518
+ "signature": "() => Promise<GetConnectedDevicesResult>",
519
+ "parameters": [],
520
+ "returns": "Promise<GetConnectedDevicesResult>",
521
+ "tags": [
522
+ {
523
+ "name": "returns",
524
+ "text": "Promise that resolves with connected devices"
525
+ },
526
+ {
527
+ "name": "since",
528
+ "text": "1.0.0"
529
+ },
530
+ {
531
+ "name": "example",
532
+ "text": "```typescript\nconst { devices } = await BluetoothLowEnergy.getConnectedDevices();\n```"
533
+ }
534
+ ],
535
+ "docs": "Get a list of connected devices.",
536
+ "complexTypes": [
537
+ "GetConnectedDevicesResult"
538
+ ],
539
+ "slug": "getconnecteddevices"
540
+ },
541
+ {
542
+ "name": "readCharacteristic",
543
+ "signature": "(options: ReadCharacteristicOptions) => Promise<ReadCharacteristicResult>",
544
+ "parameters": [
545
+ {
546
+ "name": "options",
547
+ "docs": "- Read options",
548
+ "type": "ReadCharacteristicOptions"
549
+ }
550
+ ],
551
+ "returns": "Promise<ReadCharacteristicResult>",
552
+ "tags": [
553
+ {
554
+ "name": "param",
555
+ "text": "options - Read options"
556
+ },
557
+ {
558
+ "name": "returns",
559
+ "text": "Promise that resolves with the characteristic value"
560
+ },
561
+ {
562
+ "name": "since",
563
+ "text": "1.0.0"
564
+ },
565
+ {
566
+ "name": "example",
567
+ "text": "```typescript\nconst { value } = await BluetoothLowEnergy.readCharacteristic({\n deviceId: 'AA:BB:CC:DD:EE:FF',\n service: '180D',\n characteristic: '2A37'\n});\n```"
568
+ }
569
+ ],
570
+ "docs": "Read a characteristic value.",
571
+ "complexTypes": [
572
+ "ReadCharacteristicResult",
573
+ "ReadCharacteristicOptions"
574
+ ],
575
+ "slug": "readcharacteristic"
576
+ },
577
+ {
578
+ "name": "writeCharacteristic",
579
+ "signature": "(options: WriteCharacteristicOptions) => Promise<void>",
580
+ "parameters": [
581
+ {
582
+ "name": "options",
583
+ "docs": "- Write options",
584
+ "type": "WriteCharacteristicOptions"
585
+ }
586
+ ],
587
+ "returns": "Promise<void>",
588
+ "tags": [
589
+ {
590
+ "name": "param",
591
+ "text": "options - Write options"
592
+ },
593
+ {
594
+ "name": "returns",
595
+ "text": "Promise that resolves when write is complete"
596
+ },
597
+ {
598
+ "name": "since",
599
+ "text": "1.0.0"
600
+ },
601
+ {
602
+ "name": "example",
603
+ "text": "```typescript\nawait BluetoothLowEnergy.writeCharacteristic({\n deviceId: 'AA:BB:CC:DD:EE:FF',\n service: '180D',\n characteristic: '2A39',\n value: [0x01]\n});\n```"
604
+ }
605
+ ],
606
+ "docs": "Write a value to a characteristic.",
607
+ "complexTypes": [
608
+ "WriteCharacteristicOptions"
609
+ ],
610
+ "slug": "writecharacteristic"
611
+ },
612
+ {
613
+ "name": "startCharacteristicNotifications",
614
+ "signature": "(options: StartCharacteristicNotificationsOptions) => Promise<void>",
615
+ "parameters": [
616
+ {
617
+ "name": "options",
618
+ "docs": "- Notification options",
619
+ "type": "StartCharacteristicNotificationsOptions"
620
+ }
621
+ ],
622
+ "returns": "Promise<void>",
623
+ "tags": [
624
+ {
625
+ "name": "param",
626
+ "text": "options - Notification options"
627
+ },
628
+ {
629
+ "name": "returns",
630
+ "text": "Promise that resolves when notifications start"
631
+ },
632
+ {
633
+ "name": "since",
634
+ "text": "1.0.0"
635
+ },
636
+ {
637
+ "name": "example",
638
+ "text": "```typescript\nawait BluetoothLowEnergy.startCharacteristicNotifications({\n deviceId: 'AA:BB:CC:DD:EE:FF',\n service: '180D',\n characteristic: '2A37'\n});\n```"
639
+ }
640
+ ],
641
+ "docs": "Start notifications for a characteristic.",
642
+ "complexTypes": [
643
+ "StartCharacteristicNotificationsOptions"
644
+ ],
645
+ "slug": "startcharacteristicnotifications"
646
+ },
647
+ {
648
+ "name": "stopCharacteristicNotifications",
649
+ "signature": "(options: StopCharacteristicNotificationsOptions) => Promise<void>",
650
+ "parameters": [
651
+ {
652
+ "name": "options",
653
+ "docs": "- Stop notification options",
654
+ "type": "StopCharacteristicNotificationsOptions"
655
+ }
656
+ ],
657
+ "returns": "Promise<void>",
658
+ "tags": [
659
+ {
660
+ "name": "param",
661
+ "text": "options - Stop notification options"
662
+ },
663
+ {
664
+ "name": "returns",
665
+ "text": "Promise that resolves when notifications stop"
666
+ },
667
+ {
668
+ "name": "since",
669
+ "text": "1.0.0"
670
+ },
671
+ {
672
+ "name": "example",
673
+ "text": "```typescript\nawait BluetoothLowEnergy.stopCharacteristicNotifications({\n deviceId: 'AA:BB:CC:DD:EE:FF',\n service: '180D',\n characteristic: '2A37'\n});\n```"
674
+ }
675
+ ],
676
+ "docs": "Stop notifications for a characteristic.",
677
+ "complexTypes": [
678
+ "StopCharacteristicNotificationsOptions"
679
+ ],
680
+ "slug": "stopcharacteristicnotifications"
681
+ },
682
+ {
683
+ "name": "readDescriptor",
684
+ "signature": "(options: ReadDescriptorOptions) => Promise<ReadDescriptorResult>",
685
+ "parameters": [
686
+ {
687
+ "name": "options",
688
+ "docs": "- Read descriptor options",
689
+ "type": "ReadDescriptorOptions"
690
+ }
691
+ ],
692
+ "returns": "Promise<ReadDescriptorResult>",
693
+ "tags": [
694
+ {
695
+ "name": "param",
696
+ "text": "options - Read descriptor options"
697
+ },
698
+ {
699
+ "name": "returns",
700
+ "text": "Promise that resolves with the descriptor value"
701
+ },
702
+ {
703
+ "name": "since",
704
+ "text": "1.0.0"
705
+ },
706
+ {
707
+ "name": "example",
708
+ "text": "```typescript\nconst { value } = await BluetoothLowEnergy.readDescriptor({\n deviceId: 'AA:BB:CC:DD:EE:FF',\n service: '180D',\n characteristic: '2A37',\n descriptor: '2902'\n});\n```"
709
+ }
710
+ ],
711
+ "docs": "Read a descriptor value.",
712
+ "complexTypes": [
713
+ "ReadDescriptorResult",
714
+ "ReadDescriptorOptions"
715
+ ],
716
+ "slug": "readdescriptor"
717
+ },
718
+ {
719
+ "name": "writeDescriptor",
720
+ "signature": "(options: WriteDescriptorOptions) => Promise<void>",
721
+ "parameters": [
722
+ {
723
+ "name": "options",
724
+ "docs": "- Write descriptor options",
725
+ "type": "WriteDescriptorOptions"
726
+ }
727
+ ],
728
+ "returns": "Promise<void>",
729
+ "tags": [
730
+ {
731
+ "name": "param",
732
+ "text": "options - Write descriptor options"
733
+ },
734
+ {
735
+ "name": "returns",
736
+ "text": "Promise that resolves when write is complete"
737
+ },
738
+ {
739
+ "name": "since",
740
+ "text": "1.0.0"
741
+ },
742
+ {
743
+ "name": "example",
744
+ "text": "```typescript\nawait BluetoothLowEnergy.writeDescriptor({\n deviceId: 'AA:BB:CC:DD:EE:FF',\n service: '180D',\n characteristic: '2A37',\n descriptor: '2902',\n value: [0x01, 0x00]\n});\n```"
745
+ }
746
+ ],
747
+ "docs": "Write a value to a descriptor.",
748
+ "complexTypes": [
749
+ "WriteDescriptorOptions"
750
+ ],
751
+ "slug": "writedescriptor"
752
+ },
753
+ {
754
+ "name": "readRssi",
755
+ "signature": "(options: ReadRssiOptions) => Promise<ReadRssiResult>",
756
+ "parameters": [
757
+ {
758
+ "name": "options",
759
+ "docs": "- Read RSSI options",
760
+ "type": "ReadRssiOptions"
761
+ }
762
+ ],
763
+ "returns": "Promise<ReadRssiResult>",
764
+ "tags": [
765
+ {
766
+ "name": "param",
767
+ "text": "options - Read RSSI options"
768
+ },
769
+ {
770
+ "name": "returns",
771
+ "text": "Promise that resolves with the RSSI value"
772
+ },
773
+ {
774
+ "name": "since",
775
+ "text": "1.0.0"
776
+ },
777
+ {
778
+ "name": "example",
779
+ "text": "```typescript\nconst { rssi } = await BluetoothLowEnergy.readRssi({ deviceId: 'AA:BB:CC:DD:EE:FF' });\n```"
780
+ }
781
+ ],
782
+ "docs": "Read the RSSI (signal strength) of a connected device.",
783
+ "complexTypes": [
784
+ "ReadRssiResult",
785
+ "ReadRssiOptions"
786
+ ],
787
+ "slug": "readrssi"
788
+ },
789
+ {
790
+ "name": "requestMtu",
791
+ "signature": "(options: RequestMtuOptions) => Promise<RequestMtuResult>",
792
+ "parameters": [
793
+ {
794
+ "name": "options",
795
+ "docs": "- Request MTU options",
796
+ "type": "RequestMtuOptions"
797
+ }
798
+ ],
799
+ "returns": "Promise<RequestMtuResult>",
800
+ "tags": [
801
+ {
802
+ "name": "param",
803
+ "text": "options - Request MTU options"
804
+ },
805
+ {
806
+ "name": "returns",
807
+ "text": "Promise that resolves with the new MTU value"
808
+ },
809
+ {
810
+ "name": "since",
811
+ "text": "1.0.0"
812
+ },
813
+ {
814
+ "name": "example",
815
+ "text": "```typescript\nconst { mtu } = await BluetoothLowEnergy.requestMtu({\n deviceId: 'AA:BB:CC:DD:EE:FF',\n mtu: 512\n});\n```"
816
+ }
817
+ ],
818
+ "docs": "Request MTU size change (Android only).",
819
+ "complexTypes": [
820
+ "RequestMtuResult",
821
+ "RequestMtuOptions"
822
+ ],
823
+ "slug": "requestmtu"
824
+ },
825
+ {
826
+ "name": "requestConnectionPriority",
827
+ "signature": "(options: RequestConnectionPriorityOptions) => Promise<void>",
828
+ "parameters": [
829
+ {
830
+ "name": "options",
831
+ "docs": "- Request priority options",
832
+ "type": "RequestConnectionPriorityOptions"
833
+ }
834
+ ],
835
+ "returns": "Promise<void>",
836
+ "tags": [
837
+ {
838
+ "name": "param",
839
+ "text": "options - Request priority options"
840
+ },
841
+ {
842
+ "name": "returns",
843
+ "text": "Promise that resolves when priority is set"
844
+ },
845
+ {
846
+ "name": "since",
847
+ "text": "1.0.0"
848
+ },
849
+ {
850
+ "name": "example",
851
+ "text": "```typescript\nawait BluetoothLowEnergy.requestConnectionPriority({\n deviceId: 'AA:BB:CC:DD:EE:FF',\n priority: 'high'\n});\n```"
852
+ }
853
+ ],
854
+ "docs": "Request connection priority (Android only).",
855
+ "complexTypes": [
856
+ "RequestConnectionPriorityOptions"
857
+ ],
858
+ "slug": "requestconnectionpriority"
859
+ },
860
+ {
861
+ "name": "startAdvertising",
862
+ "signature": "(options: StartAdvertisingOptions) => Promise<void>",
863
+ "parameters": [
864
+ {
865
+ "name": "options",
866
+ "docs": "- Advertising options",
867
+ "type": "StartAdvertisingOptions"
868
+ }
869
+ ],
870
+ "returns": "Promise<void>",
871
+ "tags": [
872
+ {
873
+ "name": "param",
874
+ "text": "options - Advertising options"
875
+ },
876
+ {
877
+ "name": "returns",
878
+ "text": "Promise that resolves when advertising starts"
879
+ },
880
+ {
881
+ "name": "since",
882
+ "text": "1.0.0"
883
+ },
884
+ {
885
+ "name": "example",
886
+ "text": "```typescript\nawait BluetoothLowEnergy.startAdvertising({\n name: 'MyDevice',\n services: ['180D']\n});\n```"
887
+ }
888
+ ],
889
+ "docs": "Start advertising as a peripheral (BLE server).",
890
+ "complexTypes": [
891
+ "StartAdvertisingOptions"
892
+ ],
893
+ "slug": "startadvertising"
894
+ },
895
+ {
896
+ "name": "stopAdvertising",
897
+ "signature": "() => Promise<void>",
898
+ "parameters": [],
899
+ "returns": "Promise<void>",
900
+ "tags": [
901
+ {
902
+ "name": "returns",
903
+ "text": "Promise that resolves when advertising stops"
904
+ },
905
+ {
906
+ "name": "since",
907
+ "text": "1.0.0"
908
+ },
909
+ {
910
+ "name": "example",
911
+ "text": "```typescript\nawait BluetoothLowEnergy.stopAdvertising();\n```"
912
+ }
913
+ ],
914
+ "docs": "Stop advertising.",
915
+ "complexTypes": [],
916
+ "slug": "stopadvertising"
917
+ },
918
+ {
919
+ "name": "startForegroundService",
920
+ "signature": "(options: StartForegroundServiceOptions) => Promise<void>",
921
+ "parameters": [
922
+ {
923
+ "name": "options",
924
+ "docs": "- Foreground service options",
925
+ "type": "StartForegroundServiceOptions"
926
+ }
927
+ ],
928
+ "returns": "Promise<void>",
929
+ "tags": [
930
+ {
931
+ "name": "param",
932
+ "text": "options - Foreground service options"
933
+ },
934
+ {
935
+ "name": "returns",
936
+ "text": "Promise that resolves when service starts"
937
+ },
938
+ {
939
+ "name": "since",
940
+ "text": "1.0.0"
941
+ },
942
+ {
943
+ "name": "example",
944
+ "text": "```typescript\nawait BluetoothLowEnergy.startForegroundService({\n title: 'BLE Connection',\n body: 'Maintaining connection...'\n});\n```"
945
+ }
946
+ ],
947
+ "docs": "Start a foreground service to maintain BLE connections in background (Android only).",
948
+ "complexTypes": [
949
+ "StartForegroundServiceOptions"
950
+ ],
951
+ "slug": "startforegroundservice"
952
+ },
953
+ {
954
+ "name": "stopForegroundService",
955
+ "signature": "() => Promise<void>",
956
+ "parameters": [],
957
+ "returns": "Promise<void>",
958
+ "tags": [
959
+ {
960
+ "name": "returns",
961
+ "text": "Promise that resolves when service stops"
962
+ },
963
+ {
964
+ "name": "since",
965
+ "text": "1.0.0"
966
+ },
967
+ {
968
+ "name": "example",
969
+ "text": "```typescript\nawait BluetoothLowEnergy.stopForegroundService();\n```"
970
+ }
971
+ ],
972
+ "docs": "Stop the foreground service (Android only).",
973
+ "complexTypes": [],
974
+ "slug": "stopforegroundservice"
975
+ },
976
+ {
977
+ "name": "getPluginVersion",
978
+ "signature": "() => Promise<GetPluginVersionResult>",
979
+ "parameters": [],
980
+ "returns": "Promise<GetPluginVersionResult>",
981
+ "tags": [
982
+ {
983
+ "name": "returns",
984
+ "text": "Promise that resolves with the plugin version"
985
+ },
986
+ {
987
+ "name": "since",
988
+ "text": "1.0.0"
989
+ },
990
+ {
991
+ "name": "example",
992
+ "text": "```typescript\nconst { version } = await BluetoothLowEnergy.getPluginVersion();\n```"
993
+ }
994
+ ],
995
+ "docs": "Get the native Capacitor plugin version.",
996
+ "complexTypes": [
997
+ "GetPluginVersionResult"
998
+ ],
999
+ "slug": "getpluginversion"
1000
+ },
1001
+ {
1002
+ "name": "addListener",
1003
+ "signature": "(eventName: 'deviceScanned', listenerFunc: (event: DeviceScannedEvent) => void) => Promise<PluginListenerHandle>",
1004
+ "parameters": [
1005
+ {
1006
+ "name": "eventName",
1007
+ "docs": "- The event name",
1008
+ "type": "'deviceScanned'"
1009
+ },
1010
+ {
1011
+ "name": "listenerFunc",
1012
+ "docs": "- The listener function",
1013
+ "type": "(event: DeviceScannedEvent) => void"
1014
+ }
1015
+ ],
1016
+ "returns": "Promise<PluginListenerHandle>",
1017
+ "tags": [
1018
+ {
1019
+ "name": "param",
1020
+ "text": "eventName - The event name"
1021
+ },
1022
+ {
1023
+ "name": "param",
1024
+ "text": "listenerFunc - The listener function"
1025
+ },
1026
+ {
1027
+ "name": "returns",
1028
+ "text": "Promise that resolves with a handle to remove the listener"
1029
+ },
1030
+ {
1031
+ "name": "since",
1032
+ "text": "1.0.0"
1033
+ }
1034
+ ],
1035
+ "docs": "Add a listener for device scanned events.",
1036
+ "complexTypes": [
1037
+ "PluginListenerHandle",
1038
+ "DeviceScannedEvent"
1039
+ ],
1040
+ "slug": "addlistenerdevicescanned-"
1041
+ },
1042
+ {
1043
+ "name": "addListener",
1044
+ "signature": "(eventName: 'deviceConnected', listenerFunc: (event: DeviceConnectedEvent) => void) => Promise<PluginListenerHandle>",
1045
+ "parameters": [
1046
+ {
1047
+ "name": "eventName",
1048
+ "docs": "- The event name",
1049
+ "type": "'deviceConnected'"
1050
+ },
1051
+ {
1052
+ "name": "listenerFunc",
1053
+ "docs": "- The listener function",
1054
+ "type": "(event: DeviceConnectedEvent) => void"
1055
+ }
1056
+ ],
1057
+ "returns": "Promise<PluginListenerHandle>",
1058
+ "tags": [
1059
+ {
1060
+ "name": "param",
1061
+ "text": "eventName - The event name"
1062
+ },
1063
+ {
1064
+ "name": "param",
1065
+ "text": "listenerFunc - The listener function"
1066
+ },
1067
+ {
1068
+ "name": "returns",
1069
+ "text": "Promise that resolves with a handle to remove the listener"
1070
+ },
1071
+ {
1072
+ "name": "since",
1073
+ "text": "1.0.0"
1074
+ }
1075
+ ],
1076
+ "docs": "Add a listener for device connected events.",
1077
+ "complexTypes": [
1078
+ "PluginListenerHandle",
1079
+ "DeviceConnectedEvent"
1080
+ ],
1081
+ "slug": "addlistenerdeviceconnected-"
1082
+ },
1083
+ {
1084
+ "name": "addListener",
1085
+ "signature": "(eventName: 'deviceDisconnected', listenerFunc: (event: DeviceDisconnectedEvent) => void) => Promise<PluginListenerHandle>",
1086
+ "parameters": [
1087
+ {
1088
+ "name": "eventName",
1089
+ "docs": "- The event name",
1090
+ "type": "'deviceDisconnected'"
1091
+ },
1092
+ {
1093
+ "name": "listenerFunc",
1094
+ "docs": "- The listener function",
1095
+ "type": "(event: DeviceDisconnectedEvent) => void"
1096
+ }
1097
+ ],
1098
+ "returns": "Promise<PluginListenerHandle>",
1099
+ "tags": [
1100
+ {
1101
+ "name": "param",
1102
+ "text": "eventName - The event name"
1103
+ },
1104
+ {
1105
+ "name": "param",
1106
+ "text": "listenerFunc - The listener function"
1107
+ },
1108
+ {
1109
+ "name": "returns",
1110
+ "text": "Promise that resolves with a handle to remove the listener"
1111
+ },
1112
+ {
1113
+ "name": "since",
1114
+ "text": "1.0.0"
1115
+ }
1116
+ ],
1117
+ "docs": "Add a listener for device disconnected events.",
1118
+ "complexTypes": [
1119
+ "PluginListenerHandle",
1120
+ "DeviceDisconnectedEvent"
1121
+ ],
1122
+ "slug": "addlistenerdevicedisconnected-"
1123
+ },
1124
+ {
1125
+ "name": "addListener",
1126
+ "signature": "(eventName: 'characteristicChanged', listenerFunc: (event: CharacteristicChangedEvent) => void) => Promise<PluginListenerHandle>",
1127
+ "parameters": [
1128
+ {
1129
+ "name": "eventName",
1130
+ "docs": "- The event name",
1131
+ "type": "'characteristicChanged'"
1132
+ },
1133
+ {
1134
+ "name": "listenerFunc",
1135
+ "docs": "- The listener function",
1136
+ "type": "(event: CharacteristicChangedEvent) => void"
1137
+ }
1138
+ ],
1139
+ "returns": "Promise<PluginListenerHandle>",
1140
+ "tags": [
1141
+ {
1142
+ "name": "param",
1143
+ "text": "eventName - The event name"
1144
+ },
1145
+ {
1146
+ "name": "param",
1147
+ "text": "listenerFunc - The listener function"
1148
+ },
1149
+ {
1150
+ "name": "returns",
1151
+ "text": "Promise that resolves with a handle to remove the listener"
1152
+ },
1153
+ {
1154
+ "name": "since",
1155
+ "text": "1.0.0"
1156
+ }
1157
+ ],
1158
+ "docs": "Add a listener for characteristic changed events.",
1159
+ "complexTypes": [
1160
+ "PluginListenerHandle",
1161
+ "CharacteristicChangedEvent"
1162
+ ],
1163
+ "slug": "addlistenercharacteristicchanged-"
1164
+ },
1165
+ {
1166
+ "name": "removeAllListeners",
1167
+ "signature": "() => Promise<void>",
1168
+ "parameters": [],
1169
+ "returns": "Promise<void>",
1170
+ "tags": [
1171
+ {
1172
+ "name": "returns",
1173
+ "text": "Promise that resolves when all listeners are removed"
1174
+ },
1175
+ {
1176
+ "name": "since",
1177
+ "text": "1.0.0"
1178
+ }
1179
+ ],
1180
+ "docs": "Remove all listeners for this plugin.",
1181
+ "complexTypes": [],
1182
+ "slug": "removealllisteners"
1183
+ }
1184
+ ],
1185
+ "properties": []
1186
+ },
1187
+ "interfaces": [
1188
+ {
1189
+ "name": "InitializeOptions",
1190
+ "slug": "initializeoptions",
1191
+ "docs": "Initialization options for the plugin.",
1192
+ "tags": [
1193
+ {
1194
+ "text": "1.0.0",
1195
+ "name": "since"
1196
+ }
1197
+ ],
1198
+ "methods": [],
1199
+ "properties": [
1200
+ {
1201
+ "name": "mode",
1202
+ "tags": [
1203
+ {
1204
+ "text": "'central'",
1205
+ "name": "default"
1206
+ },
1207
+ {
1208
+ "text": "1.0.0",
1209
+ "name": "since"
1210
+ }
1211
+ ],
1212
+ "docs": "The mode to initialize the plugin in.\n- 'central': Act as a BLE central (client)\n- 'peripheral': Act as a BLE peripheral (server)",
1213
+ "complexTypes": [],
1214
+ "type": "'central' | 'peripheral' | undefined"
1215
+ }
1216
+ ]
1217
+ },
1218
+ {
1219
+ "name": "IsAvailableResult",
1220
+ "slug": "isavailableresult",
1221
+ "docs": "Result of the isAvailable method.",
1222
+ "tags": [
1223
+ {
1224
+ "text": "1.0.0",
1225
+ "name": "since"
1226
+ }
1227
+ ],
1228
+ "methods": [],
1229
+ "properties": [
1230
+ {
1231
+ "name": "available",
1232
+ "tags": [
1233
+ {
1234
+ "text": "1.0.0",
1235
+ "name": "since"
1236
+ }
1237
+ ],
1238
+ "docs": "Whether Bluetooth is available on the device.",
1239
+ "complexTypes": [],
1240
+ "type": "boolean"
1241
+ }
1242
+ ]
1243
+ },
1244
+ {
1245
+ "name": "IsEnabledResult",
1246
+ "slug": "isenabledresult",
1247
+ "docs": "Result of the isEnabled method.",
1248
+ "tags": [
1249
+ {
1250
+ "text": "1.0.0",
1251
+ "name": "since"
1252
+ }
1253
+ ],
1254
+ "methods": [],
1255
+ "properties": [
1256
+ {
1257
+ "name": "enabled",
1258
+ "tags": [
1259
+ {
1260
+ "text": "1.0.0",
1261
+ "name": "since"
1262
+ }
1263
+ ],
1264
+ "docs": "Whether Bluetooth is enabled on the device.",
1265
+ "complexTypes": [],
1266
+ "type": "boolean"
1267
+ }
1268
+ ]
1269
+ },
1270
+ {
1271
+ "name": "IsLocationEnabledResult",
1272
+ "slug": "islocationenabledresult",
1273
+ "docs": "Result of the isLocationEnabled method.",
1274
+ "tags": [
1275
+ {
1276
+ "text": "1.0.0",
1277
+ "name": "since"
1278
+ }
1279
+ ],
1280
+ "methods": [],
1281
+ "properties": [
1282
+ {
1283
+ "name": "enabled",
1284
+ "tags": [
1285
+ {
1286
+ "text": "1.0.0",
1287
+ "name": "since"
1288
+ }
1289
+ ],
1290
+ "docs": "Whether location services are enabled on the device.",
1291
+ "complexTypes": [],
1292
+ "type": "boolean"
1293
+ }
1294
+ ]
1295
+ },
1296
+ {
1297
+ "name": "PermissionStatus",
1298
+ "slug": "permissionstatus",
1299
+ "docs": "Permission status for Bluetooth and location.",
1300
+ "tags": [
1301
+ {
1302
+ "text": "1.0.0",
1303
+ "name": "since"
1304
+ }
1305
+ ],
1306
+ "methods": [],
1307
+ "properties": [
1308
+ {
1309
+ "name": "bluetooth",
1310
+ "tags": [
1311
+ {
1312
+ "text": "1.0.0",
1313
+ "name": "since"
1314
+ }
1315
+ ],
1316
+ "docs": "Bluetooth permission status.",
1317
+ "complexTypes": [
1318
+ "PermissionState"
1319
+ ],
1320
+ "type": "PermissionState"
1321
+ },
1322
+ {
1323
+ "name": "location",
1324
+ "tags": [
1325
+ {
1326
+ "text": "1.0.0",
1327
+ "name": "since"
1328
+ }
1329
+ ],
1330
+ "docs": "Location permission status (Android only).",
1331
+ "complexTypes": [
1332
+ "PermissionState"
1333
+ ],
1334
+ "type": "PermissionState"
1335
+ }
1336
+ ]
1337
+ },
1338
+ {
1339
+ "name": "StartScanOptions",
1340
+ "slug": "startscanoptions",
1341
+ "docs": "Options for starting a scan.",
1342
+ "tags": [
1343
+ {
1344
+ "text": "1.0.0",
1345
+ "name": "since"
1346
+ }
1347
+ ],
1348
+ "methods": [],
1349
+ "properties": [
1350
+ {
1351
+ "name": "services",
1352
+ "tags": [
1353
+ {
1354
+ "text": "1.0.0",
1355
+ "name": "since"
1356
+ }
1357
+ ],
1358
+ "docs": "List of service UUIDs to filter by.\nOnly devices advertising these services will be returned.",
1359
+ "complexTypes": [],
1360
+ "type": "string[] | undefined"
1361
+ },
1362
+ {
1363
+ "name": "timeout",
1364
+ "tags": [
1365
+ {
1366
+ "text": "0",
1367
+ "name": "default"
1368
+ },
1369
+ {
1370
+ "text": "1.0.0",
1371
+ "name": "since"
1372
+ }
1373
+ ],
1374
+ "docs": "Scan timeout in milliseconds.\nSet to 0 for no timeout.",
1375
+ "complexTypes": [],
1376
+ "type": "number | undefined"
1377
+ },
1378
+ {
1379
+ "name": "allowDuplicates",
1380
+ "tags": [
1381
+ {
1382
+ "text": "false",
1383
+ "name": "default"
1384
+ },
1385
+ {
1386
+ "text": "1.0.0",
1387
+ "name": "since"
1388
+ }
1389
+ ],
1390
+ "docs": "Whether to allow duplicate scan results.",
1391
+ "complexTypes": [],
1392
+ "type": "boolean | undefined"
1393
+ }
1394
+ ]
1395
+ },
1396
+ {
1397
+ "name": "ConnectOptions",
1398
+ "slug": "connectoptions",
1399
+ "docs": "Options for connecting to a device.",
1400
+ "tags": [
1401
+ {
1402
+ "text": "1.0.0",
1403
+ "name": "since"
1404
+ }
1405
+ ],
1406
+ "methods": [],
1407
+ "properties": [
1408
+ {
1409
+ "name": "deviceId",
1410
+ "tags": [
1411
+ {
1412
+ "text": "1.0.0",
1413
+ "name": "since"
1414
+ }
1415
+ ],
1416
+ "docs": "The device ID (MAC address on Android, UUID on iOS).",
1417
+ "complexTypes": [],
1418
+ "type": "string"
1419
+ },
1420
+ {
1421
+ "name": "autoConnect",
1422
+ "tags": [
1423
+ {
1424
+ "text": "false",
1425
+ "name": "default"
1426
+ },
1427
+ {
1428
+ "text": "1.0.0",
1429
+ "name": "since"
1430
+ }
1431
+ ],
1432
+ "docs": "Whether to automatically connect when the device becomes available.",
1433
+ "complexTypes": [],
1434
+ "type": "boolean | undefined"
1435
+ }
1436
+ ]
1437
+ },
1438
+ {
1439
+ "name": "DisconnectOptions",
1440
+ "slug": "disconnectoptions",
1441
+ "docs": "Options for disconnecting from a device.",
1442
+ "tags": [
1443
+ {
1444
+ "text": "1.0.0",
1445
+ "name": "since"
1446
+ }
1447
+ ],
1448
+ "methods": [],
1449
+ "properties": [
1450
+ {
1451
+ "name": "deviceId",
1452
+ "tags": [
1453
+ {
1454
+ "text": "1.0.0",
1455
+ "name": "since"
1456
+ }
1457
+ ],
1458
+ "docs": "The device ID to disconnect from.",
1459
+ "complexTypes": [],
1460
+ "type": "string"
1461
+ }
1462
+ ]
1463
+ },
1464
+ {
1465
+ "name": "CreateBondOptions",
1466
+ "slug": "createbondoptions",
1467
+ "docs": "Options for creating a bond.",
1468
+ "tags": [
1469
+ {
1470
+ "text": "1.0.0",
1471
+ "name": "since"
1472
+ }
1473
+ ],
1474
+ "methods": [],
1475
+ "properties": [
1476
+ {
1477
+ "name": "deviceId",
1478
+ "tags": [
1479
+ {
1480
+ "text": "1.0.0",
1481
+ "name": "since"
1482
+ }
1483
+ ],
1484
+ "docs": "The device ID to bond with.",
1485
+ "complexTypes": [],
1486
+ "type": "string"
1487
+ }
1488
+ ]
1489
+ },
1490
+ {
1491
+ "name": "IsBondedResult",
1492
+ "slug": "isbondedresult",
1493
+ "docs": "Result of the isBonded method.",
1494
+ "tags": [
1495
+ {
1496
+ "text": "1.0.0",
1497
+ "name": "since"
1498
+ }
1499
+ ],
1500
+ "methods": [],
1501
+ "properties": [
1502
+ {
1503
+ "name": "bonded",
1504
+ "tags": [
1505
+ {
1506
+ "text": "1.0.0",
1507
+ "name": "since"
1508
+ }
1509
+ ],
1510
+ "docs": "Whether the device is bonded.",
1511
+ "complexTypes": [],
1512
+ "type": "boolean"
1513
+ }
1514
+ ]
1515
+ },
1516
+ {
1517
+ "name": "IsBondedOptions",
1518
+ "slug": "isbondedoptions",
1519
+ "docs": "Options for checking bond status.",
1520
+ "tags": [
1521
+ {
1522
+ "text": "1.0.0",
1523
+ "name": "since"
1524
+ }
1525
+ ],
1526
+ "methods": [],
1527
+ "properties": [
1528
+ {
1529
+ "name": "deviceId",
1530
+ "tags": [
1531
+ {
1532
+ "text": "1.0.0",
1533
+ "name": "since"
1534
+ }
1535
+ ],
1536
+ "docs": "The device ID to check.",
1537
+ "complexTypes": [],
1538
+ "type": "string"
1539
+ }
1540
+ ]
1541
+ },
1542
+ {
1543
+ "name": "DiscoverServicesOptions",
1544
+ "slug": "discoverservicesoptions",
1545
+ "docs": "Options for discovering services.",
1546
+ "tags": [
1547
+ {
1548
+ "text": "1.0.0",
1549
+ "name": "since"
1550
+ }
1551
+ ],
1552
+ "methods": [],
1553
+ "properties": [
1554
+ {
1555
+ "name": "deviceId",
1556
+ "tags": [
1557
+ {
1558
+ "text": "1.0.0",
1559
+ "name": "since"
1560
+ }
1561
+ ],
1562
+ "docs": "The device ID to discover services on.",
1563
+ "complexTypes": [],
1564
+ "type": "string"
1565
+ }
1566
+ ]
1567
+ },
1568
+ {
1569
+ "name": "GetServicesResult",
1570
+ "slug": "getservicesresult",
1571
+ "docs": "Result of the getServices method.",
1572
+ "tags": [
1573
+ {
1574
+ "text": "1.0.0",
1575
+ "name": "since"
1576
+ }
1577
+ ],
1578
+ "methods": [],
1579
+ "properties": [
1580
+ {
1581
+ "name": "services",
1582
+ "tags": [
1583
+ {
1584
+ "text": "1.0.0",
1585
+ "name": "since"
1586
+ }
1587
+ ],
1588
+ "docs": "List of discovered services.",
1589
+ "complexTypes": [
1590
+ "BleService"
1591
+ ],
1592
+ "type": "BleService[]"
1593
+ }
1594
+ ]
1595
+ },
1596
+ {
1597
+ "name": "BleService",
1598
+ "slug": "bleservice",
1599
+ "docs": "A BLE service.",
1600
+ "tags": [
1601
+ {
1602
+ "text": "1.0.0",
1603
+ "name": "since"
1604
+ }
1605
+ ],
1606
+ "methods": [],
1607
+ "properties": [
1608
+ {
1609
+ "name": "uuid",
1610
+ "tags": [
1611
+ {
1612
+ "text": "1.0.0",
1613
+ "name": "since"
1614
+ }
1615
+ ],
1616
+ "docs": "The service UUID.",
1617
+ "complexTypes": [],
1618
+ "type": "string"
1619
+ },
1620
+ {
1621
+ "name": "characteristics",
1622
+ "tags": [
1623
+ {
1624
+ "text": "1.0.0",
1625
+ "name": "since"
1626
+ }
1627
+ ],
1628
+ "docs": "List of characteristics in this service.",
1629
+ "complexTypes": [
1630
+ "BleCharacteristic"
1631
+ ],
1632
+ "type": "BleCharacteristic[]"
1633
+ }
1634
+ ]
1635
+ },
1636
+ {
1637
+ "name": "BleCharacteristic",
1638
+ "slug": "blecharacteristic",
1639
+ "docs": "A BLE characteristic.",
1640
+ "tags": [
1641
+ {
1642
+ "text": "1.0.0",
1643
+ "name": "since"
1644
+ }
1645
+ ],
1646
+ "methods": [],
1647
+ "properties": [
1648
+ {
1649
+ "name": "uuid",
1650
+ "tags": [
1651
+ {
1652
+ "text": "1.0.0",
1653
+ "name": "since"
1654
+ }
1655
+ ],
1656
+ "docs": "The characteristic UUID.",
1657
+ "complexTypes": [],
1658
+ "type": "string"
1659
+ },
1660
+ {
1661
+ "name": "properties",
1662
+ "tags": [
1663
+ {
1664
+ "text": "1.0.0",
1665
+ "name": "since"
1666
+ }
1667
+ ],
1668
+ "docs": "Properties of this characteristic.",
1669
+ "complexTypes": [
1670
+ "CharacteristicProperties"
1671
+ ],
1672
+ "type": "CharacteristicProperties"
1673
+ },
1674
+ {
1675
+ "name": "descriptors",
1676
+ "tags": [
1677
+ {
1678
+ "text": "1.0.0",
1679
+ "name": "since"
1680
+ }
1681
+ ],
1682
+ "docs": "List of descriptors in this characteristic.",
1683
+ "complexTypes": [
1684
+ "BleDescriptor"
1685
+ ],
1686
+ "type": "BleDescriptor[]"
1687
+ }
1688
+ ]
1689
+ },
1690
+ {
1691
+ "name": "CharacteristicProperties",
1692
+ "slug": "characteristicproperties",
1693
+ "docs": "Properties of a BLE characteristic.",
1694
+ "tags": [
1695
+ {
1696
+ "text": "1.0.0",
1697
+ "name": "since"
1698
+ }
1699
+ ],
1700
+ "methods": [],
1701
+ "properties": [
1702
+ {
1703
+ "name": "broadcast",
1704
+ "tags": [
1705
+ {
1706
+ "text": "1.0.0",
1707
+ "name": "since"
1708
+ }
1709
+ ],
1710
+ "docs": "Whether the characteristic supports broadcast.",
1711
+ "complexTypes": [],
1712
+ "type": "boolean"
1713
+ },
1714
+ {
1715
+ "name": "read",
1716
+ "tags": [
1717
+ {
1718
+ "text": "1.0.0",
1719
+ "name": "since"
1720
+ }
1721
+ ],
1722
+ "docs": "Whether the characteristic supports read.",
1723
+ "complexTypes": [],
1724
+ "type": "boolean"
1725
+ },
1726
+ {
1727
+ "name": "writeWithoutResponse",
1728
+ "tags": [
1729
+ {
1730
+ "text": "1.0.0",
1731
+ "name": "since"
1732
+ }
1733
+ ],
1734
+ "docs": "Whether the characteristic supports write without response.",
1735
+ "complexTypes": [],
1736
+ "type": "boolean"
1737
+ },
1738
+ {
1739
+ "name": "write",
1740
+ "tags": [
1741
+ {
1742
+ "text": "1.0.0",
1743
+ "name": "since"
1744
+ }
1745
+ ],
1746
+ "docs": "Whether the characteristic supports write.",
1747
+ "complexTypes": [],
1748
+ "type": "boolean"
1749
+ },
1750
+ {
1751
+ "name": "notify",
1752
+ "tags": [
1753
+ {
1754
+ "text": "1.0.0",
1755
+ "name": "since"
1756
+ }
1757
+ ],
1758
+ "docs": "Whether the characteristic supports notify.",
1759
+ "complexTypes": [],
1760
+ "type": "boolean"
1761
+ },
1762
+ {
1763
+ "name": "indicate",
1764
+ "tags": [
1765
+ {
1766
+ "text": "1.0.0",
1767
+ "name": "since"
1768
+ }
1769
+ ],
1770
+ "docs": "Whether the characteristic supports indicate.",
1771
+ "complexTypes": [],
1772
+ "type": "boolean"
1773
+ },
1774
+ {
1775
+ "name": "authenticatedSignedWrites",
1776
+ "tags": [
1777
+ {
1778
+ "text": "1.0.0",
1779
+ "name": "since"
1780
+ }
1781
+ ],
1782
+ "docs": "Whether the characteristic supports authenticated signed writes.",
1783
+ "complexTypes": [],
1784
+ "type": "boolean"
1785
+ },
1786
+ {
1787
+ "name": "extendedProperties",
1788
+ "tags": [
1789
+ {
1790
+ "text": "1.0.0",
1791
+ "name": "since"
1792
+ }
1793
+ ],
1794
+ "docs": "Whether the characteristic has extended properties.",
1795
+ "complexTypes": [],
1796
+ "type": "boolean"
1797
+ }
1798
+ ]
1799
+ },
1800
+ {
1801
+ "name": "BleDescriptor",
1802
+ "slug": "bledescriptor",
1803
+ "docs": "A BLE descriptor.",
1804
+ "tags": [
1805
+ {
1806
+ "text": "1.0.0",
1807
+ "name": "since"
1808
+ }
1809
+ ],
1810
+ "methods": [],
1811
+ "properties": [
1812
+ {
1813
+ "name": "uuid",
1814
+ "tags": [
1815
+ {
1816
+ "text": "1.0.0",
1817
+ "name": "since"
1818
+ }
1819
+ ],
1820
+ "docs": "The descriptor UUID.",
1821
+ "complexTypes": [],
1822
+ "type": "string"
1823
+ }
1824
+ ]
1825
+ },
1826
+ {
1827
+ "name": "GetServicesOptions",
1828
+ "slug": "getservicesoptions",
1829
+ "docs": "Options for getting services.",
1830
+ "tags": [
1831
+ {
1832
+ "text": "1.0.0",
1833
+ "name": "since"
1834
+ }
1835
+ ],
1836
+ "methods": [],
1837
+ "properties": [
1838
+ {
1839
+ "name": "deviceId",
1840
+ "tags": [
1841
+ {
1842
+ "text": "1.0.0",
1843
+ "name": "since"
1844
+ }
1845
+ ],
1846
+ "docs": "The device ID to get services for.",
1847
+ "complexTypes": [],
1848
+ "type": "string"
1849
+ }
1850
+ ]
1851
+ },
1852
+ {
1853
+ "name": "GetConnectedDevicesResult",
1854
+ "slug": "getconnecteddevicesresult",
1855
+ "docs": "Result of the getConnectedDevices method.",
1856
+ "tags": [
1857
+ {
1858
+ "text": "1.0.0",
1859
+ "name": "since"
1860
+ }
1861
+ ],
1862
+ "methods": [],
1863
+ "properties": [
1864
+ {
1865
+ "name": "devices",
1866
+ "tags": [
1867
+ {
1868
+ "text": "1.0.0",
1869
+ "name": "since"
1870
+ }
1871
+ ],
1872
+ "docs": "List of connected devices.",
1873
+ "complexTypes": [
1874
+ "BleDevice"
1875
+ ],
1876
+ "type": "BleDevice[]"
1877
+ }
1878
+ ]
1879
+ },
1880
+ {
1881
+ "name": "BleDevice",
1882
+ "slug": "bledevice",
1883
+ "docs": "A BLE device.",
1884
+ "tags": [
1885
+ {
1886
+ "text": "1.0.0",
1887
+ "name": "since"
1888
+ }
1889
+ ],
1890
+ "methods": [],
1891
+ "properties": [
1892
+ {
1893
+ "name": "deviceId",
1894
+ "tags": [
1895
+ {
1896
+ "text": "1.0.0",
1897
+ "name": "since"
1898
+ }
1899
+ ],
1900
+ "docs": "The device ID (MAC address on Android, UUID on iOS).",
1901
+ "complexTypes": [],
1902
+ "type": "string"
1903
+ },
1904
+ {
1905
+ "name": "name",
1906
+ "tags": [
1907
+ {
1908
+ "text": "1.0.0",
1909
+ "name": "since"
1910
+ }
1911
+ ],
1912
+ "docs": "The device name (may be null if not available).",
1913
+ "complexTypes": [],
1914
+ "type": "string | null"
1915
+ },
1916
+ {
1917
+ "name": "rssi",
1918
+ "tags": [
1919
+ {
1920
+ "text": "1.0.0",
1921
+ "name": "since"
1922
+ }
1923
+ ],
1924
+ "docs": "The RSSI (signal strength) at time of discovery.",
1925
+ "complexTypes": [],
1926
+ "type": "number | undefined"
1927
+ },
1928
+ {
1929
+ "name": "manufacturerData",
1930
+ "tags": [
1931
+ {
1932
+ "text": "1.0.0",
1933
+ "name": "since"
1934
+ }
1935
+ ],
1936
+ "docs": "Manufacturer data from advertisement (as hex string).",
1937
+ "complexTypes": [],
1938
+ "type": "string | undefined"
1939
+ },
1940
+ {
1941
+ "name": "serviceUuids",
1942
+ "tags": [
1943
+ {
1944
+ "text": "1.0.0",
1945
+ "name": "since"
1946
+ }
1947
+ ],
1948
+ "docs": "Service UUIDs advertised by the device.",
1949
+ "complexTypes": [],
1950
+ "type": "string[] | undefined"
1951
+ }
1952
+ ]
1953
+ },
1954
+ {
1955
+ "name": "ReadCharacteristicResult",
1956
+ "slug": "readcharacteristicresult",
1957
+ "docs": "Result of reading a characteristic.",
1958
+ "tags": [
1959
+ {
1960
+ "text": "1.0.0",
1961
+ "name": "since"
1962
+ }
1963
+ ],
1964
+ "methods": [],
1965
+ "properties": [
1966
+ {
1967
+ "name": "value",
1968
+ "tags": [
1969
+ {
1970
+ "text": "1.0.0",
1971
+ "name": "since"
1972
+ }
1973
+ ],
1974
+ "docs": "The characteristic value as an array of bytes.",
1975
+ "complexTypes": [],
1976
+ "type": "number[]"
1977
+ }
1978
+ ]
1979
+ },
1980
+ {
1981
+ "name": "ReadCharacteristicOptions",
1982
+ "slug": "readcharacteristicoptions",
1983
+ "docs": "Options for reading a characteristic.",
1984
+ "tags": [
1985
+ {
1986
+ "text": "1.0.0",
1987
+ "name": "since"
1988
+ }
1989
+ ],
1990
+ "methods": [],
1991
+ "properties": [
1992
+ {
1993
+ "name": "deviceId",
1994
+ "tags": [
1995
+ {
1996
+ "text": "1.0.0",
1997
+ "name": "since"
1998
+ }
1999
+ ],
2000
+ "docs": "The device ID.",
2001
+ "complexTypes": [],
2002
+ "type": "string"
2003
+ },
2004
+ {
2005
+ "name": "service",
2006
+ "tags": [
2007
+ {
2008
+ "text": "1.0.0",
2009
+ "name": "since"
2010
+ }
2011
+ ],
2012
+ "docs": "The service UUID.",
2013
+ "complexTypes": [],
2014
+ "type": "string"
2015
+ },
2016
+ {
2017
+ "name": "characteristic",
2018
+ "tags": [
2019
+ {
2020
+ "text": "1.0.0",
2021
+ "name": "since"
2022
+ }
2023
+ ],
2024
+ "docs": "The characteristic UUID.",
2025
+ "complexTypes": [],
2026
+ "type": "string"
2027
+ }
2028
+ ]
2029
+ },
2030
+ {
2031
+ "name": "WriteCharacteristicOptions",
2032
+ "slug": "writecharacteristicoptions",
2033
+ "docs": "Options for writing to a characteristic.",
2034
+ "tags": [
2035
+ {
2036
+ "text": "1.0.0",
2037
+ "name": "since"
2038
+ }
2039
+ ],
2040
+ "methods": [],
2041
+ "properties": [
2042
+ {
2043
+ "name": "deviceId",
2044
+ "tags": [
2045
+ {
2046
+ "text": "1.0.0",
2047
+ "name": "since"
2048
+ }
2049
+ ],
2050
+ "docs": "The device ID.",
2051
+ "complexTypes": [],
2052
+ "type": "string"
2053
+ },
2054
+ {
2055
+ "name": "service",
2056
+ "tags": [
2057
+ {
2058
+ "text": "1.0.0",
2059
+ "name": "since"
2060
+ }
2061
+ ],
2062
+ "docs": "The service UUID.",
2063
+ "complexTypes": [],
2064
+ "type": "string"
2065
+ },
2066
+ {
2067
+ "name": "characteristic",
2068
+ "tags": [
2069
+ {
2070
+ "text": "1.0.0",
2071
+ "name": "since"
2072
+ }
2073
+ ],
2074
+ "docs": "The characteristic UUID.",
2075
+ "complexTypes": [],
2076
+ "type": "string"
2077
+ },
2078
+ {
2079
+ "name": "value",
2080
+ "tags": [
2081
+ {
2082
+ "text": "1.0.0",
2083
+ "name": "since"
2084
+ }
2085
+ ],
2086
+ "docs": "The value to write as an array of bytes.",
2087
+ "complexTypes": [],
2088
+ "type": "number[]"
2089
+ },
2090
+ {
2091
+ "name": "type",
2092
+ "tags": [
2093
+ {
2094
+ "text": "'withResponse'",
2095
+ "name": "default"
2096
+ },
2097
+ {
2098
+ "text": "1.0.0",
2099
+ "name": "since"
2100
+ }
2101
+ ],
2102
+ "docs": "Write type.",
2103
+ "complexTypes": [],
2104
+ "type": "'withResponse' | 'withoutResponse' | undefined"
2105
+ }
2106
+ ]
2107
+ },
2108
+ {
2109
+ "name": "StartCharacteristicNotificationsOptions",
2110
+ "slug": "startcharacteristicnotificationsoptions",
2111
+ "docs": "Options for starting characteristic notifications.",
2112
+ "tags": [
2113
+ {
2114
+ "text": "1.0.0",
2115
+ "name": "since"
2116
+ }
2117
+ ],
2118
+ "methods": [],
2119
+ "properties": [
2120
+ {
2121
+ "name": "deviceId",
2122
+ "tags": [
2123
+ {
2124
+ "text": "1.0.0",
2125
+ "name": "since"
2126
+ }
2127
+ ],
2128
+ "docs": "The device ID.",
2129
+ "complexTypes": [],
2130
+ "type": "string"
2131
+ },
2132
+ {
2133
+ "name": "service",
2134
+ "tags": [
2135
+ {
2136
+ "text": "1.0.0",
2137
+ "name": "since"
2138
+ }
2139
+ ],
2140
+ "docs": "The service UUID.",
2141
+ "complexTypes": [],
2142
+ "type": "string"
2143
+ },
2144
+ {
2145
+ "name": "characteristic",
2146
+ "tags": [
2147
+ {
2148
+ "text": "1.0.0",
2149
+ "name": "since"
2150
+ }
2151
+ ],
2152
+ "docs": "The characteristic UUID.",
2153
+ "complexTypes": [],
2154
+ "type": "string"
2155
+ }
2156
+ ]
2157
+ },
2158
+ {
2159
+ "name": "StopCharacteristicNotificationsOptions",
2160
+ "slug": "stopcharacteristicnotificationsoptions",
2161
+ "docs": "Options for stopping characteristic notifications.",
2162
+ "tags": [
2163
+ {
2164
+ "text": "1.0.0",
2165
+ "name": "since"
2166
+ }
2167
+ ],
2168
+ "methods": [],
2169
+ "properties": [
2170
+ {
2171
+ "name": "deviceId",
2172
+ "tags": [
2173
+ {
2174
+ "text": "1.0.0",
2175
+ "name": "since"
2176
+ }
2177
+ ],
2178
+ "docs": "The device ID.",
2179
+ "complexTypes": [],
2180
+ "type": "string"
2181
+ },
2182
+ {
2183
+ "name": "service",
2184
+ "tags": [
2185
+ {
2186
+ "text": "1.0.0",
2187
+ "name": "since"
2188
+ }
2189
+ ],
2190
+ "docs": "The service UUID.",
2191
+ "complexTypes": [],
2192
+ "type": "string"
2193
+ },
2194
+ {
2195
+ "name": "characteristic",
2196
+ "tags": [
2197
+ {
2198
+ "text": "1.0.0",
2199
+ "name": "since"
2200
+ }
2201
+ ],
2202
+ "docs": "The characteristic UUID.",
2203
+ "complexTypes": [],
2204
+ "type": "string"
2205
+ }
2206
+ ]
2207
+ },
2208
+ {
2209
+ "name": "ReadDescriptorResult",
2210
+ "slug": "readdescriptorresult",
2211
+ "docs": "Result of reading a descriptor.",
2212
+ "tags": [
2213
+ {
2214
+ "text": "1.0.0",
2215
+ "name": "since"
2216
+ }
2217
+ ],
2218
+ "methods": [],
2219
+ "properties": [
2220
+ {
2221
+ "name": "value",
2222
+ "tags": [
2223
+ {
2224
+ "text": "1.0.0",
2225
+ "name": "since"
2226
+ }
2227
+ ],
2228
+ "docs": "The descriptor value as an array of bytes.",
2229
+ "complexTypes": [],
2230
+ "type": "number[]"
2231
+ }
2232
+ ]
2233
+ },
2234
+ {
2235
+ "name": "ReadDescriptorOptions",
2236
+ "slug": "readdescriptoroptions",
2237
+ "docs": "Options for reading a descriptor.",
2238
+ "tags": [
2239
+ {
2240
+ "text": "1.0.0",
2241
+ "name": "since"
2242
+ }
2243
+ ],
2244
+ "methods": [],
2245
+ "properties": [
2246
+ {
2247
+ "name": "deviceId",
2248
+ "tags": [
2249
+ {
2250
+ "text": "1.0.0",
2251
+ "name": "since"
2252
+ }
2253
+ ],
2254
+ "docs": "The device ID.",
2255
+ "complexTypes": [],
2256
+ "type": "string"
2257
+ },
2258
+ {
2259
+ "name": "service",
2260
+ "tags": [
2261
+ {
2262
+ "text": "1.0.0",
2263
+ "name": "since"
2264
+ }
2265
+ ],
2266
+ "docs": "The service UUID.",
2267
+ "complexTypes": [],
2268
+ "type": "string"
2269
+ },
2270
+ {
2271
+ "name": "characteristic",
2272
+ "tags": [
2273
+ {
2274
+ "text": "1.0.0",
2275
+ "name": "since"
2276
+ }
2277
+ ],
2278
+ "docs": "The characteristic UUID.",
2279
+ "complexTypes": [],
2280
+ "type": "string"
2281
+ },
2282
+ {
2283
+ "name": "descriptor",
2284
+ "tags": [
2285
+ {
2286
+ "text": "1.0.0",
2287
+ "name": "since"
2288
+ }
2289
+ ],
2290
+ "docs": "The descriptor UUID.",
2291
+ "complexTypes": [],
2292
+ "type": "string"
2293
+ }
2294
+ ]
2295
+ },
2296
+ {
2297
+ "name": "WriteDescriptorOptions",
2298
+ "slug": "writedescriptoroptions",
2299
+ "docs": "Options for writing to a descriptor.",
2300
+ "tags": [
2301
+ {
2302
+ "text": "1.0.0",
2303
+ "name": "since"
2304
+ }
2305
+ ],
2306
+ "methods": [],
2307
+ "properties": [
2308
+ {
2309
+ "name": "deviceId",
2310
+ "tags": [
2311
+ {
2312
+ "text": "1.0.0",
2313
+ "name": "since"
2314
+ }
2315
+ ],
2316
+ "docs": "The device ID.",
2317
+ "complexTypes": [],
2318
+ "type": "string"
2319
+ },
2320
+ {
2321
+ "name": "service",
2322
+ "tags": [
2323
+ {
2324
+ "text": "1.0.0",
2325
+ "name": "since"
2326
+ }
2327
+ ],
2328
+ "docs": "The service UUID.",
2329
+ "complexTypes": [],
2330
+ "type": "string"
2331
+ },
2332
+ {
2333
+ "name": "characteristic",
2334
+ "tags": [
2335
+ {
2336
+ "text": "1.0.0",
2337
+ "name": "since"
2338
+ }
2339
+ ],
2340
+ "docs": "The characteristic UUID.",
2341
+ "complexTypes": [],
2342
+ "type": "string"
2343
+ },
2344
+ {
2345
+ "name": "descriptor",
2346
+ "tags": [
2347
+ {
2348
+ "text": "1.0.0",
2349
+ "name": "since"
2350
+ }
2351
+ ],
2352
+ "docs": "The descriptor UUID.",
2353
+ "complexTypes": [],
2354
+ "type": "string"
2355
+ },
2356
+ {
2357
+ "name": "value",
2358
+ "tags": [
2359
+ {
2360
+ "text": "1.0.0",
2361
+ "name": "since"
2362
+ }
2363
+ ],
2364
+ "docs": "The value to write as an array of bytes.",
2365
+ "complexTypes": [],
2366
+ "type": "number[]"
2367
+ }
2368
+ ]
2369
+ },
2370
+ {
2371
+ "name": "ReadRssiResult",
2372
+ "slug": "readrssiresult",
2373
+ "docs": "Result of reading RSSI.",
2374
+ "tags": [
2375
+ {
2376
+ "text": "1.0.0",
2377
+ "name": "since"
2378
+ }
2379
+ ],
2380
+ "methods": [],
2381
+ "properties": [
2382
+ {
2383
+ "name": "rssi",
2384
+ "tags": [
2385
+ {
2386
+ "text": "1.0.0",
2387
+ "name": "since"
2388
+ }
2389
+ ],
2390
+ "docs": "The RSSI value in dBm.",
2391
+ "complexTypes": [],
2392
+ "type": "number"
2393
+ }
2394
+ ]
2395
+ },
2396
+ {
2397
+ "name": "ReadRssiOptions",
2398
+ "slug": "readrssioptions",
2399
+ "docs": "Options for reading RSSI.",
2400
+ "tags": [
2401
+ {
2402
+ "text": "1.0.0",
2403
+ "name": "since"
2404
+ }
2405
+ ],
2406
+ "methods": [],
2407
+ "properties": [
2408
+ {
2409
+ "name": "deviceId",
2410
+ "tags": [
2411
+ {
2412
+ "text": "1.0.0",
2413
+ "name": "since"
2414
+ }
2415
+ ],
2416
+ "docs": "The device ID.",
2417
+ "complexTypes": [],
2418
+ "type": "string"
2419
+ }
2420
+ ]
2421
+ },
2422
+ {
2423
+ "name": "RequestMtuResult",
2424
+ "slug": "requestmturesult",
2425
+ "docs": "Result of requesting MTU.",
2426
+ "tags": [
2427
+ {
2428
+ "text": "1.0.0",
2429
+ "name": "since"
2430
+ }
2431
+ ],
2432
+ "methods": [],
2433
+ "properties": [
2434
+ {
2435
+ "name": "mtu",
2436
+ "tags": [
2437
+ {
2438
+ "text": "1.0.0",
2439
+ "name": "since"
2440
+ }
2441
+ ],
2442
+ "docs": "The negotiated MTU size.",
2443
+ "complexTypes": [],
2444
+ "type": "number"
2445
+ }
2446
+ ]
2447
+ },
2448
+ {
2449
+ "name": "RequestMtuOptions",
2450
+ "slug": "requestmtuoptions",
2451
+ "docs": "Options for requesting MTU.",
2452
+ "tags": [
2453
+ {
2454
+ "text": "1.0.0",
2455
+ "name": "since"
2456
+ }
2457
+ ],
2458
+ "methods": [],
2459
+ "properties": [
2460
+ {
2461
+ "name": "deviceId",
2462
+ "tags": [
2463
+ {
2464
+ "text": "1.0.0",
2465
+ "name": "since"
2466
+ }
2467
+ ],
2468
+ "docs": "The device ID.",
2469
+ "complexTypes": [],
2470
+ "type": "string"
2471
+ },
2472
+ {
2473
+ "name": "mtu",
2474
+ "tags": [
2475
+ {
2476
+ "text": "1.0.0",
2477
+ "name": "since"
2478
+ }
2479
+ ],
2480
+ "docs": "The requested MTU size.",
2481
+ "complexTypes": [],
2482
+ "type": "number"
2483
+ }
2484
+ ]
2485
+ },
2486
+ {
2487
+ "name": "RequestConnectionPriorityOptions",
2488
+ "slug": "requestconnectionpriorityoptions",
2489
+ "docs": "Options for requesting connection priority.",
2490
+ "tags": [
2491
+ {
2492
+ "text": "1.0.0",
2493
+ "name": "since"
2494
+ }
2495
+ ],
2496
+ "methods": [],
2497
+ "properties": [
2498
+ {
2499
+ "name": "deviceId",
2500
+ "tags": [
2501
+ {
2502
+ "text": "1.0.0",
2503
+ "name": "since"
2504
+ }
2505
+ ],
2506
+ "docs": "The device ID.",
2507
+ "complexTypes": [],
2508
+ "type": "string"
2509
+ },
2510
+ {
2511
+ "name": "priority",
2512
+ "tags": [
2513
+ {
2514
+ "text": "1.0.0",
2515
+ "name": "since"
2516
+ }
2517
+ ],
2518
+ "docs": "The requested connection priority.",
2519
+ "complexTypes": [],
2520
+ "type": "'low' | 'balanced' | 'high'"
2521
+ }
2522
+ ]
2523
+ },
2524
+ {
2525
+ "name": "StartAdvertisingOptions",
2526
+ "slug": "startadvertisingoptions",
2527
+ "docs": "Options for starting advertising.",
2528
+ "tags": [
2529
+ {
2530
+ "text": "1.0.0",
2531
+ "name": "since"
2532
+ }
2533
+ ],
2534
+ "methods": [],
2535
+ "properties": [
2536
+ {
2537
+ "name": "name",
2538
+ "tags": [
2539
+ {
2540
+ "text": "1.0.0",
2541
+ "name": "since"
2542
+ }
2543
+ ],
2544
+ "docs": "The device name to advertise.",
2545
+ "complexTypes": [],
2546
+ "type": "string | undefined"
2547
+ },
2548
+ {
2549
+ "name": "services",
2550
+ "tags": [
2551
+ {
2552
+ "text": "1.0.0",
2553
+ "name": "since"
2554
+ }
2555
+ ],
2556
+ "docs": "Service UUIDs to advertise.",
2557
+ "complexTypes": [],
2558
+ "type": "string[] | undefined"
2559
+ },
2560
+ {
2561
+ "name": "includeName",
2562
+ "tags": [
2563
+ {
2564
+ "text": "true",
2565
+ "name": "default"
2566
+ },
2567
+ {
2568
+ "text": "1.0.0",
2569
+ "name": "since"
2570
+ }
2571
+ ],
2572
+ "docs": "Whether to include the device name in the advertisement.",
2573
+ "complexTypes": [],
2574
+ "type": "boolean | undefined"
2575
+ },
2576
+ {
2577
+ "name": "includeTxPowerLevel",
2578
+ "tags": [
2579
+ {
2580
+ "text": "false",
2581
+ "name": "default"
2582
+ },
2583
+ {
2584
+ "text": "1.0.0",
2585
+ "name": "since"
2586
+ }
2587
+ ],
2588
+ "docs": "Whether to include TX power level in the advertisement.",
2589
+ "complexTypes": [],
2590
+ "type": "boolean | undefined"
2591
+ }
2592
+ ]
2593
+ },
2594
+ {
2595
+ "name": "StartForegroundServiceOptions",
2596
+ "slug": "startforegroundserviceoptions",
2597
+ "docs": "Options for starting the foreground service.",
2598
+ "tags": [
2599
+ {
2600
+ "text": "1.0.0",
2601
+ "name": "since"
2602
+ }
2603
+ ],
2604
+ "methods": [],
2605
+ "properties": [
2606
+ {
2607
+ "name": "title",
2608
+ "tags": [
2609
+ {
2610
+ "text": "1.0.0",
2611
+ "name": "since"
2612
+ }
2613
+ ],
2614
+ "docs": "The notification title.",
2615
+ "complexTypes": [],
2616
+ "type": "string"
2617
+ },
2618
+ {
2619
+ "name": "body",
2620
+ "tags": [
2621
+ {
2622
+ "text": "1.0.0",
2623
+ "name": "since"
2624
+ }
2625
+ ],
2626
+ "docs": "The notification body.",
2627
+ "complexTypes": [],
2628
+ "type": "string"
2629
+ },
2630
+ {
2631
+ "name": "smallIcon",
2632
+ "tags": [
2633
+ {
2634
+ "text": "1.0.0",
2635
+ "name": "since"
2636
+ }
2637
+ ],
2638
+ "docs": "The notification small icon resource name.",
2639
+ "complexTypes": [],
2640
+ "type": "string | undefined"
2641
+ }
2642
+ ]
2643
+ },
2644
+ {
2645
+ "name": "GetPluginVersionResult",
2646
+ "slug": "getpluginversionresult",
2647
+ "docs": "Result of getPluginVersion.",
2648
+ "tags": [
2649
+ {
2650
+ "text": "1.0.0",
2651
+ "name": "since"
2652
+ }
2653
+ ],
2654
+ "methods": [],
2655
+ "properties": [
2656
+ {
2657
+ "name": "version",
2658
+ "tags": [
2659
+ {
2660
+ "text": "1.0.0",
2661
+ "name": "since"
2662
+ }
2663
+ ],
2664
+ "docs": "The plugin version.",
2665
+ "complexTypes": [],
2666
+ "type": "string"
2667
+ }
2668
+ ]
2669
+ },
2670
+ {
2671
+ "name": "PluginListenerHandle",
2672
+ "slug": "pluginlistenerhandle",
2673
+ "docs": "",
2674
+ "tags": [],
2675
+ "methods": [],
2676
+ "properties": [
2677
+ {
2678
+ "name": "remove",
2679
+ "tags": [],
2680
+ "docs": "",
2681
+ "complexTypes": [],
2682
+ "type": "() => Promise<void>"
2683
+ }
2684
+ ]
2685
+ },
2686
+ {
2687
+ "name": "DeviceScannedEvent",
2688
+ "slug": "devicescannedevent",
2689
+ "docs": "Event emitted when a device is scanned.",
2690
+ "tags": [
2691
+ {
2692
+ "text": "1.0.0",
2693
+ "name": "since"
2694
+ }
2695
+ ],
2696
+ "methods": [],
2697
+ "properties": [
2698
+ {
2699
+ "name": "device",
2700
+ "tags": [
2701
+ {
2702
+ "text": "1.0.0",
2703
+ "name": "since"
2704
+ }
2705
+ ],
2706
+ "docs": "The scanned device.",
2707
+ "complexTypes": [
2708
+ "BleDevice"
2709
+ ],
2710
+ "type": "BleDevice"
2711
+ }
2712
+ ]
2713
+ },
2714
+ {
2715
+ "name": "DeviceConnectedEvent",
2716
+ "slug": "deviceconnectedevent",
2717
+ "docs": "Event emitted when a device is connected.",
2718
+ "tags": [
2719
+ {
2720
+ "text": "1.0.0",
2721
+ "name": "since"
2722
+ }
2723
+ ],
2724
+ "methods": [],
2725
+ "properties": [
2726
+ {
2727
+ "name": "deviceId",
2728
+ "tags": [
2729
+ {
2730
+ "text": "1.0.0",
2731
+ "name": "since"
2732
+ }
2733
+ ],
2734
+ "docs": "The device ID.",
2735
+ "complexTypes": [],
2736
+ "type": "string"
2737
+ }
2738
+ ]
2739
+ },
2740
+ {
2741
+ "name": "DeviceDisconnectedEvent",
2742
+ "slug": "devicedisconnectedevent",
2743
+ "docs": "Event emitted when a device is disconnected.",
2744
+ "tags": [
2745
+ {
2746
+ "text": "1.0.0",
2747
+ "name": "since"
2748
+ }
2749
+ ],
2750
+ "methods": [],
2751
+ "properties": [
2752
+ {
2753
+ "name": "deviceId",
2754
+ "tags": [
2755
+ {
2756
+ "text": "1.0.0",
2757
+ "name": "since"
2758
+ }
2759
+ ],
2760
+ "docs": "The device ID.",
2761
+ "complexTypes": [],
2762
+ "type": "string"
2763
+ }
2764
+ ]
2765
+ },
2766
+ {
2767
+ "name": "CharacteristicChangedEvent",
2768
+ "slug": "characteristicchangedevent",
2769
+ "docs": "Event emitted when a characteristic value changes.",
2770
+ "tags": [
2771
+ {
2772
+ "text": "1.0.0",
2773
+ "name": "since"
2774
+ }
2775
+ ],
2776
+ "methods": [],
2777
+ "properties": [
2778
+ {
2779
+ "name": "deviceId",
2780
+ "tags": [
2781
+ {
2782
+ "text": "1.0.0",
2783
+ "name": "since"
2784
+ }
2785
+ ],
2786
+ "docs": "The device ID.",
2787
+ "complexTypes": [],
2788
+ "type": "string"
2789
+ },
2790
+ {
2791
+ "name": "service",
2792
+ "tags": [
2793
+ {
2794
+ "text": "1.0.0",
2795
+ "name": "since"
2796
+ }
2797
+ ],
2798
+ "docs": "The service UUID.",
2799
+ "complexTypes": [],
2800
+ "type": "string"
2801
+ },
2802
+ {
2803
+ "name": "characteristic",
2804
+ "tags": [
2805
+ {
2806
+ "text": "1.0.0",
2807
+ "name": "since"
2808
+ }
2809
+ ],
2810
+ "docs": "The characteristic UUID.",
2811
+ "complexTypes": [],
2812
+ "type": "string"
2813
+ },
2814
+ {
2815
+ "name": "value",
2816
+ "tags": [
2817
+ {
2818
+ "text": "1.0.0",
2819
+ "name": "since"
2820
+ }
2821
+ ],
2822
+ "docs": "The new value as an array of bytes.",
2823
+ "complexTypes": [],
2824
+ "type": "number[]"
2825
+ }
2826
+ ]
2827
+ }
2828
+ ],
2829
+ "enums": [],
2830
+ "typeAliases": [
2831
+ {
2832
+ "name": "PermissionState",
2833
+ "slug": "permissionstate",
2834
+ "docs": "",
2835
+ "types": [
2836
+ {
2837
+ "text": "'prompt'",
2838
+ "complexTypes": []
2839
+ },
2840
+ {
2841
+ "text": "'prompt-with-rationale'",
2842
+ "complexTypes": []
2843
+ },
2844
+ {
2845
+ "text": "'granted'",
2846
+ "complexTypes": []
2847
+ },
2848
+ {
2849
+ "text": "'denied'",
2850
+ "complexTypes": []
2851
+ }
2852
+ ]
2853
+ }
2854
+ ],
2855
+ "pluginConfigs": []
2856
+ }