react-native-bluebreeze 0.0.12 → 1.0.1

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.
Files changed (96) hide show
  1. package/README.md +97 -13
  2. package/android/build.gradle +9 -3
  3. package/android/generated/jni/CMakeLists.txt +1 -9
  4. package/android/generated/jni/RNBlueBreezeSpec-generated.cpp +1 -1
  5. package/android/generated/jni/react/renderer/components/RNBlueBreezeSpec/RNBlueBreezeSpecJSI.h +234 -279
  6. package/android/src/main/java/com/bluebreeze/BlueBreezeModule.kt +140 -120
  7. package/ios/BlueBreezeImpl.swift +30 -24
  8. package/ios/Bluebreeze.h +1 -1
  9. package/ios/Bluebreeze.mm +2 -7
  10. package/ios/generated/{RNBlueBreezeSpecJSI.h → ReactCodegen/RNBlueBreezeSpecJSI.h} +234 -279
  11. package/lib/commonjs/implementation/bluebreeze_characteristic.js +42 -11
  12. package/lib/commonjs/implementation/bluebreeze_characteristic.js.map +1 -1
  13. package/lib/commonjs/implementation/bluebreeze_connection_status.js +2 -0
  14. package/lib/commonjs/implementation/bluebreeze_connection_status.js.map +1 -0
  15. package/lib/commonjs/implementation/bluebreeze_device.js +53 -13
  16. package/lib/commonjs/implementation/bluebreeze_device.js.map +1 -1
  17. package/lib/commonjs/implementation/bluebreeze_scan_result.js +19 -0
  18. package/lib/commonjs/implementation/bluebreeze_scan_result.js.map +1 -1
  19. package/lib/commonjs/implementation/bluebreeze_service.js +9 -0
  20. package/lib/commonjs/implementation/bluebreeze_service.js.map +1 -1
  21. package/lib/commonjs/implementation/native_bridge.js +108 -0
  22. package/lib/commonjs/implementation/native_bridge.js.map +1 -0
  23. package/lib/commonjs/index.js +29 -100
  24. package/lib/commonjs/index.js.map +1 -1
  25. package/lib/commonjs/package.json +1 -0
  26. package/lib/module/implementation/bluebreeze_characteristic.js +43 -10
  27. package/lib/module/implementation/bluebreeze_characteristic.js.map +1 -1
  28. package/lib/module/implementation/bluebreeze_connection_status.js +2 -0
  29. package/lib/module/implementation/bluebreeze_connection_status.js.map +1 -0
  30. package/lib/module/implementation/bluebreeze_device.js +54 -12
  31. package/lib/module/implementation/bluebreeze_device.js.map +1 -1
  32. package/lib/module/implementation/bluebreeze_scan_result.js +19 -0
  33. package/lib/module/implementation/bluebreeze_scan_result.js.map +1 -1
  34. package/lib/module/implementation/bluebreeze_service.js +9 -0
  35. package/lib/module/implementation/bluebreeze_service.js.map +1 -1
  36. package/lib/module/implementation/native_bridge.js +99 -0
  37. package/lib/module/implementation/native_bridge.js.map +1 -0
  38. package/lib/module/index.js +29 -100
  39. package/lib/module/index.js.map +1 -1
  40. package/lib/module/package.json +1 -0
  41. package/lib/typescript/commonjs/src/NativeBlueBreeze.d.ts +1 -1
  42. package/lib/typescript/commonjs/src/NativeBlueBreeze.d.ts.map +1 -1
  43. package/lib/typescript/commonjs/src/implementation/bluebreeze_authorization.d.ts +10 -1
  44. package/lib/typescript/commonjs/src/implementation/bluebreeze_authorization.d.ts.map +1 -1
  45. package/lib/typescript/commonjs/src/implementation/bluebreeze_characteristic.d.ts +29 -0
  46. package/lib/typescript/commonjs/src/implementation/bluebreeze_characteristic.d.ts.map +1 -1
  47. package/lib/typescript/commonjs/src/implementation/bluebreeze_connection_status.d.ts +7 -0
  48. package/lib/typescript/commonjs/src/implementation/bluebreeze_connection_status.d.ts.map +1 -0
  49. package/lib/typescript/commonjs/src/implementation/bluebreeze_device.d.ts +42 -1
  50. package/lib/typescript/commonjs/src/implementation/bluebreeze_device.d.ts.map +1 -1
  51. package/lib/typescript/commonjs/src/implementation/bluebreeze_scan_result.d.ts +11 -0
  52. package/lib/typescript/commonjs/src/implementation/bluebreeze_scan_result.d.ts.map +1 -1
  53. package/lib/typescript/commonjs/src/implementation/bluebreeze_service.d.ts +6 -0
  54. package/lib/typescript/commonjs/src/implementation/bluebreeze_service.d.ts.map +1 -1
  55. package/lib/typescript/commonjs/src/implementation/bluebreeze_state.d.ts +16 -1
  56. package/lib/typescript/commonjs/src/implementation/bluebreeze_state.d.ts.map +1 -1
  57. package/lib/typescript/commonjs/src/implementation/native_bridge.d.ts +17 -0
  58. package/lib/typescript/commonjs/src/implementation/native_bridge.d.ts.map +1 -0
  59. package/lib/typescript/commonjs/src/index.d.ts +0 -13
  60. package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
  61. package/lib/typescript/module/src/NativeBlueBreeze.d.ts +1 -1
  62. package/lib/typescript/module/src/NativeBlueBreeze.d.ts.map +1 -1
  63. package/lib/typescript/module/src/implementation/bluebreeze_authorization.d.ts +10 -1
  64. package/lib/typescript/module/src/implementation/bluebreeze_authorization.d.ts.map +1 -1
  65. package/lib/typescript/module/src/implementation/bluebreeze_characteristic.d.ts +29 -0
  66. package/lib/typescript/module/src/implementation/bluebreeze_characteristic.d.ts.map +1 -1
  67. package/lib/typescript/module/src/implementation/bluebreeze_connection_status.d.ts +7 -0
  68. package/lib/typescript/module/src/implementation/bluebreeze_connection_status.d.ts.map +1 -0
  69. package/lib/typescript/module/src/implementation/bluebreeze_device.d.ts +43 -2
  70. package/lib/typescript/module/src/implementation/bluebreeze_device.d.ts.map +1 -1
  71. package/lib/typescript/module/src/implementation/bluebreeze_scan_result.d.ts +12 -1
  72. package/lib/typescript/module/src/implementation/bluebreeze_scan_result.d.ts.map +1 -1
  73. package/lib/typescript/module/src/implementation/bluebreeze_service.d.ts +7 -1
  74. package/lib/typescript/module/src/implementation/bluebreeze_service.d.ts.map +1 -1
  75. package/lib/typescript/module/src/implementation/bluebreeze_state.d.ts +16 -1
  76. package/lib/typescript/module/src/implementation/bluebreeze_state.d.ts.map +1 -1
  77. package/lib/typescript/module/src/implementation/native_bridge.d.ts +17 -0
  78. package/lib/typescript/module/src/implementation/native_bridge.d.ts.map +1 -0
  79. package/lib/typescript/module/src/index.d.ts +6 -19
  80. package/lib/typescript/module/src/index.d.ts.map +1 -1
  81. package/package.json +13 -23
  82. package/react-native-bluebreeze.podspec +1 -1
  83. package/src/NativeBlueBreeze.ts +1 -1
  84. package/src/implementation/bluebreeze_authorization.ts +10 -1
  85. package/src/implementation/bluebreeze_characteristic.ts +48 -10
  86. package/src/implementation/bluebreeze_connection_status.ts +6 -0
  87. package/src/implementation/bluebreeze_device.ts +62 -13
  88. package/src/implementation/bluebreeze_scan_result.ts +18 -0
  89. package/src/implementation/bluebreeze_service.ts +8 -0
  90. package/src/implementation/bluebreeze_state.ts +16 -1
  91. package/src/implementation/native_bridge.ts +196 -0
  92. package/src/index.tsx +24 -202
  93. package/android/generated/jni/react/renderer/components/RNBlueBreezeSpec/RNBlueBreezeSpecJSI-generated.cpp +0 -179
  94. package/ios/generated/RNBlueBreezeSpecJSI-generated.cpp +0 -179
  95. /package/ios/generated/{RNBlueBreezeSpec → ReactCodegen/RNBlueBreezeSpec}/RNBlueBreezeSpec-generated.mm +0 -0
  96. /package/ios/generated/{RNBlueBreezeSpec → ReactCodegen/RNBlueBreezeSpec}/RNBlueBreezeSpec.h +0 -0
package/src/index.tsx CHANGED
@@ -5,11 +5,11 @@ import { BBDevice } from './implementation/bluebreeze_device'
5
5
  import { BBScanResult } from './implementation/bluebreeze_scan_result'
6
6
  import { BBService } from './implementation/bluebreeze_service'
7
7
  import type { BBState } from './implementation/bluebreeze_state'
8
- import NativeBlueBreeze, { type SpecDevice, type SpecDeviceCharacteristic, type SpecDeviceService, type SpecScanResult } from './NativeBlueBreeze'
9
-
8
+ import NativeBlueBreeze, { type SpecDevice, type SpecScanResult } from './NativeBlueBreeze'
10
9
 
11
10
  // State
12
11
 
12
+ /** The power/availability state of the device's Bluetooth adapter. */
13
13
  const state = new StateValueEmitter<BBState>(NativeBlueBreeze.state() as BBState)
14
14
 
15
15
  NativeBlueBreeze.stateEmitter((value) => {
@@ -18,41 +18,60 @@ NativeBlueBreeze.stateEmitter((value) => {
18
18
 
19
19
  // Authorization to use BLE
20
20
 
21
+ /** Whether this app is currently allowed to use Bluetooth. */
21
22
  const authorizationStatus = new StateValueEmitter<BBAuthorization>(NativeBlueBreeze.authorizationStatus() as BBAuthorization)
22
23
 
23
24
  NativeBlueBreeze.authorizationStatusEmitter((value) => {
24
25
  authorizationStatus.add(value as BBAuthorization)
25
26
  })
26
27
 
28
+ /** Requests Bluetooth authorization from the user, if not already granted or permanently denied. */
27
29
  const authorizationRequest = NativeBlueBreeze.authorizationRequest
28
30
 
31
+ /** Opens the OS settings screen for this app, for a user to grant Bluetooth authorization after denying it. */
29
32
  const authorizationOpenSettings = NativeBlueBreeze.authorizationOpenSettings
30
33
 
31
34
  // Scanning
32
35
 
36
+ /** Whether a BLE scan is currently running. */
33
37
  const scanEnabled = new StateValueEmitter<boolean>(NativeBlueBreeze.scanEnabled())
34
38
 
35
39
  NativeBlueBreeze.scanEnabledEmitter((value) => {
36
40
  scanEnabled.add(value)
37
41
  })
38
42
 
43
+ /** Emits every advertisement seen while scanning, including repeat sightings of the same device. */
39
44
  const scanResults = new ValueEmitter<BBScanResult>()
40
45
 
41
46
  NativeBlueBreeze.scanResultEmitter((value) => {
42
- const device = devices.value?.get(value.id)
47
+ let device = devices.value?.get(value.id)
48
+
49
+ // The native "device discovered" and "scan result" events are emitted independently.
50
+ // We register a new device locally rather than dropping the result.
43
51
  if (device == undefined) {
44
- return
52
+ device = convertDevice(value)
53
+ devices.add(new Map(devices.value).set(value.id, device))
45
54
  }
46
55
 
47
56
  scanResults.add(convertScanResult(device, value))
48
57
  })
49
58
 
59
+ /**
60
+ * Starts a BLE scan.
61
+ * @param ids Service UUIDs to filter for. When omitted, every nearby advertisement is reported.
62
+ */
50
63
  const scanStart = (ids: string[] | undefined = undefined) => NativeBlueBreeze.scanStart(ids)
51
64
 
65
+ /** Stops the current BLE scan. */
52
66
  const scanStop = NativeBlueBreeze.scanStop
53
67
 
54
- // Device
68
+ // Devices
55
69
 
70
+ /**
71
+ * Every device seen so far, either via scanning or a prior connection this session, keyed by
72
+ * platform device ID. A device is added here the moment it's first seen in a scan result and
73
+ * stays here for the app's lifetime.
74
+ */
56
75
  const devices = new StateValueEmitter<Map<string, BBDevice>>(
57
76
  new Map(
58
77
  NativeBlueBreeze.devices().map((d) => [
@@ -73,162 +92,6 @@ NativeBlueBreeze.devicesEmitter((value) => {
73
92
  )
74
93
  })
75
94
 
76
- // Device services
77
-
78
- const _deviceServices = new Map<string, StateValueEmitter<BBService[]>>()
79
-
80
- const deviceServices = (id: string): StateValueEmitter<BBService[]> => {
81
- return mapGetOrSet(
82
- _deviceServices,
83
- id,
84
- () => new StateValueEmitter<BBService[]>(
85
- NativeBlueBreeze.deviceServices(id).map(
86
- (s) => convertDeviceService(id, s)
87
- )
88
- )
89
- )
90
- }
91
-
92
- NativeBlueBreeze.deviceServicesEmitter((value) => {
93
- deviceServices(value.id).add(
94
- value.value.map((s) => convertDeviceService(value.id, s))
95
- )
96
- })
97
-
98
- // Device connection status
99
-
100
- const _deviceConnectionStatus = new Map<string, StateValueEmitter<string>>()
101
-
102
- const deviceConnectionStatus = (id: string): StateValueEmitter<string> => {
103
- return mapGetOrSet(
104
- _deviceConnectionStatus,
105
- id,
106
- () => new StateValueEmitter<string>(
107
- NativeBlueBreeze.deviceConnectionStatus(id)
108
- )
109
- )
110
- }
111
-
112
- NativeBlueBreeze.deviceConnectionStatusEmitter((value) => {
113
- deviceConnectionStatus(value.id).add(value.value)
114
- })
115
-
116
- // Device MTU
117
-
118
- const _deviceMTU = new Map<string, StateValueEmitter<number>>()
119
-
120
- const deviceMTU = (id: string): StateValueEmitter<number> => {
121
- return mapGetOrSet(
122
- _deviceMTU,
123
- id,
124
- () => new StateValueEmitter<number>(
125
- NativeBlueBreeze.deviceMTU(id)
126
- )
127
- )
128
- }
129
-
130
- NativeBlueBreeze.deviceMTUEmitter((value) => {
131
- deviceMTU(value.id).add(value.value)
132
- })
133
-
134
- // Device operation
135
-
136
- const deviceConnect = NativeBlueBreeze.deviceConnect
137
-
138
- const deviceDisconnect = NativeBlueBreeze.deviceDisconnect
139
-
140
- const deviceDiscoverServices = NativeBlueBreeze.deviceDiscoverServices
141
-
142
- const deviceRequestMTU = NativeBlueBreeze.deviceRequestMTU
143
-
144
- // Device characteristic notify enabled
145
-
146
- const _deviceCharacteristicNotifyEnabled = new Map<string, Map<string, Map<string, StateValueEmitter<boolean>>>>()
147
-
148
- const deviceCharacteristicNotifyEnabled = (
149
- id: string,
150
- serviceId: string,
151
- characteristicId: string
152
- ): StateValueEmitter<boolean> => {
153
- const deviceMap = mapGetOrSet(
154
- _deviceCharacteristicNotifyEnabled,
155
- id,
156
- () => new Map<string, Map<string, StateValueEmitter<boolean>>>()
157
- )
158
-
159
- const serviceMap = mapGetOrSet(
160
- deviceMap,
161
- serviceId,
162
- () => new Map<string, StateValueEmitter<boolean>>()
163
- )
164
-
165
- return mapGetOrSet(
166
- serviceMap,
167
- characteristicId,
168
- () => new StateValueEmitter<boolean>(
169
- NativeBlueBreeze.deviceCharacteristicNotifyEnabled(id, serviceId, characteristicId)
170
- )
171
- )
172
- }
173
-
174
- NativeBlueBreeze.deviceCharacteristicNotifyEnabledEmitter((value) => {
175
- deviceCharacteristicNotifyEnabled(value.id, value.serviceId, value.characteristicId).add(value.value)
176
- })
177
-
178
- // Device characteristic data
179
-
180
- const _deviceCharacteristicData = new Map<string, Map<string, Map<string, StateValueEmitter<number[]>>>>()
181
-
182
- const deviceCharacteristicData = (
183
- id: string,
184
- serviceId: string,
185
- characteristicId: string
186
- ): StateValueEmitter<number[]> => {
187
- const deviceMap = mapGetOrSet(
188
- _deviceCharacteristicData,
189
- id,
190
- () => new Map<string, Map<string, StateValueEmitter<number[]>>>()
191
- )
192
-
193
- const serviceMap = mapGetOrSet(
194
- deviceMap,
195
- serviceId,
196
- () => new Map<string, StateValueEmitter<number[]>>()
197
- )
198
-
199
- return mapGetOrSet(
200
- serviceMap,
201
- characteristicId,
202
- () => new StateValueEmitter<number[]>(
203
- NativeBlueBreeze.deviceCharacteristicData(id, serviceId, characteristicId)
204
- )
205
- )
206
- }
207
-
208
- NativeBlueBreeze.deviceCharacteristicDataEmitter((value) => {
209
- deviceCharacteristicData(value.id, value.serviceId, value.characteristicId).add(value.value)
210
- })
211
-
212
- // Device characteristic operations
213
-
214
- const deviceCharacteristicRead = NativeBlueBreeze.deviceCharacteristicRead
215
-
216
- const deviceCharacteristicWrite = NativeBlueBreeze.deviceCharacteristicWrite
217
-
218
- const deviceCharacteristicSubscribe = NativeBlueBreeze.deviceCharacteristicSubscribe
219
-
220
- const deviceCharacteristicUnsubscribe = NativeBlueBreeze.deviceCharacteristicUnsubscribe
221
-
222
- // Map helper
223
-
224
- function mapGetOrSet<T>(map: Map<string, T>, key: string, defaultValue: () => T): T {
225
- if (map.get(key) == undefined) {
226
- map.set(key, defaultValue())
227
- }
228
-
229
- return map.get(key)!
230
- }
231
-
232
95
  // Object decoders
233
96
 
234
97
  const convertDevice = (device: SpecDevice): BBDevice => {
@@ -254,33 +117,6 @@ const convertScanResult = (
254
117
  )
255
118
  }
256
119
 
257
- const convertDeviceService = (
258
- deviceId: string,
259
- service: SpecDeviceService
260
- ): BBService => {
261
- return new BBService(
262
- service.id,
263
- service.name,
264
- service.characteristics.map(
265
- (c) => convertDeviceCharacteristic(deviceId, service.id, c)
266
- )
267
- )
268
- }
269
-
270
- const convertDeviceCharacteristic = (
271
- deviceId: string,
272
- serviceId: string,
273
- characteristic: SpecDeviceCharacteristic
274
- ): BBCharacteristic => {
275
- return new BBCharacteristic(
276
- deviceId,
277
- serviceId,
278
- characteristic.id,
279
- characteristic.name,
280
- characteristic.properties,
281
- )
282
- }
283
-
284
120
  // Export
285
121
 
286
122
  export default {
@@ -293,19 +129,6 @@ export default {
293
129
  scanStart,
294
130
  scanStop,
295
131
  devices,
296
- deviceServices,
297
- deviceConnectionStatus,
298
- deviceMTU,
299
- deviceConnect,
300
- deviceDisconnect,
301
- deviceDiscoverServices,
302
- deviceRequestMTU,
303
- deviceCharacteristicNotifyEnabled,
304
- deviceCharacteristicData,
305
- deviceCharacteristicRead,
306
- deviceCharacteristicWrite,
307
- deviceCharacteristicSubscribe,
308
- deviceCharacteristicUnsubscribe,
309
132
  }
310
133
 
311
134
  export {
@@ -316,4 +139,3 @@ export {
316
139
  type BBAuthorization,
317
140
  type BBState
318
141
  }
319
-
@@ -1,179 +0,0 @@
1
- /**
2
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
3
- *
4
- * Do not edit this file as changes may cause incorrect behavior and will be lost
5
- * once the code is regenerated.
6
- *
7
- * @generated by codegen project: GenerateModuleCpp.js
8
- */
9
-
10
- #include "RNBlueBreezeSpecJSI.h"
11
-
12
- namespace facebook::react {
13
-
14
- static jsi::Value __hostFunction_NativeBlueBreezeCxxSpecJSI_state(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
15
- return static_cast<NativeBlueBreezeCxxSpecJSI *>(&turboModule)->state(
16
- rt
17
- );
18
- }
19
- static jsi::Value __hostFunction_NativeBlueBreezeCxxSpecJSI_authorizationStatus(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
20
- return static_cast<NativeBlueBreezeCxxSpecJSI *>(&turboModule)->authorizationStatus(
21
- rt
22
- );
23
- }
24
- static jsi::Value __hostFunction_NativeBlueBreezeCxxSpecJSI_authorizationRequest(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
25
- static_cast<NativeBlueBreezeCxxSpecJSI *>(&turboModule)->authorizationRequest(
26
- rt
27
- );
28
- return jsi::Value::undefined();
29
- }
30
- static jsi::Value __hostFunction_NativeBlueBreezeCxxSpecJSI_authorizationOpenSettings(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
31
- static_cast<NativeBlueBreezeCxxSpecJSI *>(&turboModule)->authorizationOpenSettings(
32
- rt
33
- );
34
- return jsi::Value::undefined();
35
- }
36
- static jsi::Value __hostFunction_NativeBlueBreezeCxxSpecJSI_scanEnabled(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
37
- return static_cast<NativeBlueBreezeCxxSpecJSI *>(&turboModule)->scanEnabled(
38
- rt
39
- );
40
- }
41
- static jsi::Value __hostFunction_NativeBlueBreezeCxxSpecJSI_scanStart(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
42
- static_cast<NativeBlueBreezeCxxSpecJSI *>(&turboModule)->scanStart(
43
- rt,
44
- count <= 0 || args[0].isUndefined() ? std::nullopt : std::make_optional(args[0].asObject(rt).asArray(rt))
45
- );
46
- return jsi::Value::undefined();
47
- }
48
- static jsi::Value __hostFunction_NativeBlueBreezeCxxSpecJSI_scanStop(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
49
- static_cast<NativeBlueBreezeCxxSpecJSI *>(&turboModule)->scanStop(
50
- rt
51
- );
52
- return jsi::Value::undefined();
53
- }
54
- static jsi::Value __hostFunction_NativeBlueBreezeCxxSpecJSI_devices(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
55
- return static_cast<NativeBlueBreezeCxxSpecJSI *>(&turboModule)->devices(
56
- rt
57
- );
58
- }
59
- static jsi::Value __hostFunction_NativeBlueBreezeCxxSpecJSI_deviceServices(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
60
- return static_cast<NativeBlueBreezeCxxSpecJSI *>(&turboModule)->deviceServices(
61
- rt,
62
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt)
63
- );
64
- }
65
- static jsi::Value __hostFunction_NativeBlueBreezeCxxSpecJSI_deviceConnectionStatus(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
66
- return static_cast<NativeBlueBreezeCxxSpecJSI *>(&turboModule)->deviceConnectionStatus(
67
- rt,
68
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt)
69
- );
70
- }
71
- static jsi::Value __hostFunction_NativeBlueBreezeCxxSpecJSI_deviceMTU(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
72
- return static_cast<NativeBlueBreezeCxxSpecJSI *>(&turboModule)->deviceMTU(
73
- rt,
74
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt)
75
- );
76
- }
77
- static jsi::Value __hostFunction_NativeBlueBreezeCxxSpecJSI_deviceConnect(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
78
- return static_cast<NativeBlueBreezeCxxSpecJSI *>(&turboModule)->deviceConnect(
79
- rt,
80
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt)
81
- );
82
- }
83
- static jsi::Value __hostFunction_NativeBlueBreezeCxxSpecJSI_deviceDisconnect(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
84
- return static_cast<NativeBlueBreezeCxxSpecJSI *>(&turboModule)->deviceDisconnect(
85
- rt,
86
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt)
87
- );
88
- }
89
- static jsi::Value __hostFunction_NativeBlueBreezeCxxSpecJSI_deviceDiscoverServices(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
90
- return static_cast<NativeBlueBreezeCxxSpecJSI *>(&turboModule)->deviceDiscoverServices(
91
- rt,
92
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt)
93
- );
94
- }
95
- static jsi::Value __hostFunction_NativeBlueBreezeCxxSpecJSI_deviceRequestMTU(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
96
- return static_cast<NativeBlueBreezeCxxSpecJSI *>(&turboModule)->deviceRequestMTU(
97
- rt,
98
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
99
- count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asNumber()
100
- );
101
- }
102
- static jsi::Value __hostFunction_NativeBlueBreezeCxxSpecJSI_deviceCharacteristicData(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
103
- return static_cast<NativeBlueBreezeCxxSpecJSI *>(&turboModule)->deviceCharacteristicData(
104
- rt,
105
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
106
- count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt),
107
- count <= 2 ? throw jsi::JSError(rt, "Expected argument in position 2 to be passed") : args[2].asString(rt)
108
- );
109
- }
110
- static jsi::Value __hostFunction_NativeBlueBreezeCxxSpecJSI_deviceCharacteristicNotifyEnabled(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
111
- return static_cast<NativeBlueBreezeCxxSpecJSI *>(&turboModule)->deviceCharacteristicNotifyEnabled(
112
- rt,
113
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
114
- count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt),
115
- count <= 2 ? throw jsi::JSError(rt, "Expected argument in position 2 to be passed") : args[2].asString(rt)
116
- );
117
- }
118
- static jsi::Value __hostFunction_NativeBlueBreezeCxxSpecJSI_deviceCharacteristicRead(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
119
- return static_cast<NativeBlueBreezeCxxSpecJSI *>(&turboModule)->deviceCharacteristicRead(
120
- rt,
121
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
122
- count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt),
123
- count <= 2 ? throw jsi::JSError(rt, "Expected argument in position 2 to be passed") : args[2].asString(rt)
124
- );
125
- }
126
- static jsi::Value __hostFunction_NativeBlueBreezeCxxSpecJSI_deviceCharacteristicWrite(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
127
- return static_cast<NativeBlueBreezeCxxSpecJSI *>(&turboModule)->deviceCharacteristicWrite(
128
- rt,
129
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
130
- count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt),
131
- count <= 2 ? throw jsi::JSError(rt, "Expected argument in position 2 to be passed") : args[2].asString(rt),
132
- count <= 3 ? throw jsi::JSError(rt, "Expected argument in position 3 to be passed") : args[3].asObject(rt).asArray(rt),
133
- count <= 4 ? throw jsi::JSError(rt, "Expected argument in position 4 to be passed") : args[4].asBool()
134
- );
135
- }
136
- static jsi::Value __hostFunction_NativeBlueBreezeCxxSpecJSI_deviceCharacteristicSubscribe(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
137
- return static_cast<NativeBlueBreezeCxxSpecJSI *>(&turboModule)->deviceCharacteristicSubscribe(
138
- rt,
139
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
140
- count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt),
141
- count <= 2 ? throw jsi::JSError(rt, "Expected argument in position 2 to be passed") : args[2].asString(rt)
142
- );
143
- }
144
- static jsi::Value __hostFunction_NativeBlueBreezeCxxSpecJSI_deviceCharacteristicUnsubscribe(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
145
- return static_cast<NativeBlueBreezeCxxSpecJSI *>(&turboModule)->deviceCharacteristicUnsubscribe(
146
- rt,
147
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
148
- count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt),
149
- count <= 2 ? throw jsi::JSError(rt, "Expected argument in position 2 to be passed") : args[2].asString(rt)
150
- );
151
- }
152
-
153
- NativeBlueBreezeCxxSpecJSI::NativeBlueBreezeCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker)
154
- : TurboModule("BlueBreeze", jsInvoker) {
155
- methodMap_["state"] = MethodMetadata {0, __hostFunction_NativeBlueBreezeCxxSpecJSI_state};
156
- methodMap_["authorizationStatus"] = MethodMetadata {0, __hostFunction_NativeBlueBreezeCxxSpecJSI_authorizationStatus};
157
- methodMap_["authorizationRequest"] = MethodMetadata {0, __hostFunction_NativeBlueBreezeCxxSpecJSI_authorizationRequest};
158
- methodMap_["authorizationOpenSettings"] = MethodMetadata {0, __hostFunction_NativeBlueBreezeCxxSpecJSI_authorizationOpenSettings};
159
- methodMap_["scanEnabled"] = MethodMetadata {0, __hostFunction_NativeBlueBreezeCxxSpecJSI_scanEnabled};
160
- methodMap_["scanStart"] = MethodMetadata {1, __hostFunction_NativeBlueBreezeCxxSpecJSI_scanStart};
161
- methodMap_["scanStop"] = MethodMetadata {0, __hostFunction_NativeBlueBreezeCxxSpecJSI_scanStop};
162
- methodMap_["devices"] = MethodMetadata {0, __hostFunction_NativeBlueBreezeCxxSpecJSI_devices};
163
- methodMap_["deviceServices"] = MethodMetadata {1, __hostFunction_NativeBlueBreezeCxxSpecJSI_deviceServices};
164
- methodMap_["deviceConnectionStatus"] = MethodMetadata {1, __hostFunction_NativeBlueBreezeCxxSpecJSI_deviceConnectionStatus};
165
- methodMap_["deviceMTU"] = MethodMetadata {1, __hostFunction_NativeBlueBreezeCxxSpecJSI_deviceMTU};
166
- methodMap_["deviceConnect"] = MethodMetadata {1, __hostFunction_NativeBlueBreezeCxxSpecJSI_deviceConnect};
167
- methodMap_["deviceDisconnect"] = MethodMetadata {1, __hostFunction_NativeBlueBreezeCxxSpecJSI_deviceDisconnect};
168
- methodMap_["deviceDiscoverServices"] = MethodMetadata {1, __hostFunction_NativeBlueBreezeCxxSpecJSI_deviceDiscoverServices};
169
- methodMap_["deviceRequestMTU"] = MethodMetadata {2, __hostFunction_NativeBlueBreezeCxxSpecJSI_deviceRequestMTU};
170
- methodMap_["deviceCharacteristicData"] = MethodMetadata {3, __hostFunction_NativeBlueBreezeCxxSpecJSI_deviceCharacteristicData};
171
- methodMap_["deviceCharacteristicNotifyEnabled"] = MethodMetadata {3, __hostFunction_NativeBlueBreezeCxxSpecJSI_deviceCharacteristicNotifyEnabled};
172
- methodMap_["deviceCharacteristicRead"] = MethodMetadata {3, __hostFunction_NativeBlueBreezeCxxSpecJSI_deviceCharacteristicRead};
173
- methodMap_["deviceCharacteristicWrite"] = MethodMetadata {5, __hostFunction_NativeBlueBreezeCxxSpecJSI_deviceCharacteristicWrite};
174
- methodMap_["deviceCharacteristicSubscribe"] = MethodMetadata {3, __hostFunction_NativeBlueBreezeCxxSpecJSI_deviceCharacteristicSubscribe};
175
- methodMap_["deviceCharacteristicUnsubscribe"] = MethodMetadata {3, __hostFunction_NativeBlueBreezeCxxSpecJSI_deviceCharacteristicUnsubscribe};
176
- }
177
-
178
-
179
- } // namespace facebook::react
@@ -1,179 +0,0 @@
1
- /**
2
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
3
- *
4
- * Do not edit this file as changes may cause incorrect behavior and will be lost
5
- * once the code is regenerated.
6
- *
7
- * @generated by codegen project: GenerateModuleCpp.js
8
- */
9
-
10
- #include "RNBlueBreezeSpecJSI.h"
11
-
12
- namespace facebook::react {
13
-
14
- static jsi::Value __hostFunction_NativeBlueBreezeCxxSpecJSI_state(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
15
- return static_cast<NativeBlueBreezeCxxSpecJSI *>(&turboModule)->state(
16
- rt
17
- );
18
- }
19
- static jsi::Value __hostFunction_NativeBlueBreezeCxxSpecJSI_authorizationStatus(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
20
- return static_cast<NativeBlueBreezeCxxSpecJSI *>(&turboModule)->authorizationStatus(
21
- rt
22
- );
23
- }
24
- static jsi::Value __hostFunction_NativeBlueBreezeCxxSpecJSI_authorizationRequest(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
25
- static_cast<NativeBlueBreezeCxxSpecJSI *>(&turboModule)->authorizationRequest(
26
- rt
27
- );
28
- return jsi::Value::undefined();
29
- }
30
- static jsi::Value __hostFunction_NativeBlueBreezeCxxSpecJSI_authorizationOpenSettings(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
31
- static_cast<NativeBlueBreezeCxxSpecJSI *>(&turboModule)->authorizationOpenSettings(
32
- rt
33
- );
34
- return jsi::Value::undefined();
35
- }
36
- static jsi::Value __hostFunction_NativeBlueBreezeCxxSpecJSI_scanEnabled(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
37
- return static_cast<NativeBlueBreezeCxxSpecJSI *>(&turboModule)->scanEnabled(
38
- rt
39
- );
40
- }
41
- static jsi::Value __hostFunction_NativeBlueBreezeCxxSpecJSI_scanStart(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
42
- static_cast<NativeBlueBreezeCxxSpecJSI *>(&turboModule)->scanStart(
43
- rt,
44
- count <= 0 || args[0].isUndefined() ? std::nullopt : std::make_optional(args[0].asObject(rt).asArray(rt))
45
- );
46
- return jsi::Value::undefined();
47
- }
48
- static jsi::Value __hostFunction_NativeBlueBreezeCxxSpecJSI_scanStop(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
49
- static_cast<NativeBlueBreezeCxxSpecJSI *>(&turboModule)->scanStop(
50
- rt
51
- );
52
- return jsi::Value::undefined();
53
- }
54
- static jsi::Value __hostFunction_NativeBlueBreezeCxxSpecJSI_devices(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
55
- return static_cast<NativeBlueBreezeCxxSpecJSI *>(&turboModule)->devices(
56
- rt
57
- );
58
- }
59
- static jsi::Value __hostFunction_NativeBlueBreezeCxxSpecJSI_deviceServices(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
60
- return static_cast<NativeBlueBreezeCxxSpecJSI *>(&turboModule)->deviceServices(
61
- rt,
62
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt)
63
- );
64
- }
65
- static jsi::Value __hostFunction_NativeBlueBreezeCxxSpecJSI_deviceConnectionStatus(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
66
- return static_cast<NativeBlueBreezeCxxSpecJSI *>(&turboModule)->deviceConnectionStatus(
67
- rt,
68
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt)
69
- );
70
- }
71
- static jsi::Value __hostFunction_NativeBlueBreezeCxxSpecJSI_deviceMTU(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
72
- return static_cast<NativeBlueBreezeCxxSpecJSI *>(&turboModule)->deviceMTU(
73
- rt,
74
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt)
75
- );
76
- }
77
- static jsi::Value __hostFunction_NativeBlueBreezeCxxSpecJSI_deviceConnect(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
78
- return static_cast<NativeBlueBreezeCxxSpecJSI *>(&turboModule)->deviceConnect(
79
- rt,
80
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt)
81
- );
82
- }
83
- static jsi::Value __hostFunction_NativeBlueBreezeCxxSpecJSI_deviceDisconnect(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
84
- return static_cast<NativeBlueBreezeCxxSpecJSI *>(&turboModule)->deviceDisconnect(
85
- rt,
86
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt)
87
- );
88
- }
89
- static jsi::Value __hostFunction_NativeBlueBreezeCxxSpecJSI_deviceDiscoverServices(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
90
- return static_cast<NativeBlueBreezeCxxSpecJSI *>(&turboModule)->deviceDiscoverServices(
91
- rt,
92
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt)
93
- );
94
- }
95
- static jsi::Value __hostFunction_NativeBlueBreezeCxxSpecJSI_deviceRequestMTU(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
96
- return static_cast<NativeBlueBreezeCxxSpecJSI *>(&turboModule)->deviceRequestMTU(
97
- rt,
98
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
99
- count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asNumber()
100
- );
101
- }
102
- static jsi::Value __hostFunction_NativeBlueBreezeCxxSpecJSI_deviceCharacteristicData(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
103
- return static_cast<NativeBlueBreezeCxxSpecJSI *>(&turboModule)->deviceCharacteristicData(
104
- rt,
105
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
106
- count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt),
107
- count <= 2 ? throw jsi::JSError(rt, "Expected argument in position 2 to be passed") : args[2].asString(rt)
108
- );
109
- }
110
- static jsi::Value __hostFunction_NativeBlueBreezeCxxSpecJSI_deviceCharacteristicNotifyEnabled(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
111
- return static_cast<NativeBlueBreezeCxxSpecJSI *>(&turboModule)->deviceCharacteristicNotifyEnabled(
112
- rt,
113
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
114
- count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt),
115
- count <= 2 ? throw jsi::JSError(rt, "Expected argument in position 2 to be passed") : args[2].asString(rt)
116
- );
117
- }
118
- static jsi::Value __hostFunction_NativeBlueBreezeCxxSpecJSI_deviceCharacteristicRead(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
119
- return static_cast<NativeBlueBreezeCxxSpecJSI *>(&turboModule)->deviceCharacteristicRead(
120
- rt,
121
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
122
- count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt),
123
- count <= 2 ? throw jsi::JSError(rt, "Expected argument in position 2 to be passed") : args[2].asString(rt)
124
- );
125
- }
126
- static jsi::Value __hostFunction_NativeBlueBreezeCxxSpecJSI_deviceCharacteristicWrite(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
127
- return static_cast<NativeBlueBreezeCxxSpecJSI *>(&turboModule)->deviceCharacteristicWrite(
128
- rt,
129
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
130
- count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt),
131
- count <= 2 ? throw jsi::JSError(rt, "Expected argument in position 2 to be passed") : args[2].asString(rt),
132
- count <= 3 ? throw jsi::JSError(rt, "Expected argument in position 3 to be passed") : args[3].asObject(rt).asArray(rt),
133
- count <= 4 ? throw jsi::JSError(rt, "Expected argument in position 4 to be passed") : args[4].asBool()
134
- );
135
- }
136
- static jsi::Value __hostFunction_NativeBlueBreezeCxxSpecJSI_deviceCharacteristicSubscribe(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
137
- return static_cast<NativeBlueBreezeCxxSpecJSI *>(&turboModule)->deviceCharacteristicSubscribe(
138
- rt,
139
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
140
- count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt),
141
- count <= 2 ? throw jsi::JSError(rt, "Expected argument in position 2 to be passed") : args[2].asString(rt)
142
- );
143
- }
144
- static jsi::Value __hostFunction_NativeBlueBreezeCxxSpecJSI_deviceCharacteristicUnsubscribe(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
145
- return static_cast<NativeBlueBreezeCxxSpecJSI *>(&turboModule)->deviceCharacteristicUnsubscribe(
146
- rt,
147
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
148
- count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt),
149
- count <= 2 ? throw jsi::JSError(rt, "Expected argument in position 2 to be passed") : args[2].asString(rt)
150
- );
151
- }
152
-
153
- NativeBlueBreezeCxxSpecJSI::NativeBlueBreezeCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker)
154
- : TurboModule("BlueBreeze", jsInvoker) {
155
- methodMap_["state"] = MethodMetadata {0, __hostFunction_NativeBlueBreezeCxxSpecJSI_state};
156
- methodMap_["authorizationStatus"] = MethodMetadata {0, __hostFunction_NativeBlueBreezeCxxSpecJSI_authorizationStatus};
157
- methodMap_["authorizationRequest"] = MethodMetadata {0, __hostFunction_NativeBlueBreezeCxxSpecJSI_authorizationRequest};
158
- methodMap_["authorizationOpenSettings"] = MethodMetadata {0, __hostFunction_NativeBlueBreezeCxxSpecJSI_authorizationOpenSettings};
159
- methodMap_["scanEnabled"] = MethodMetadata {0, __hostFunction_NativeBlueBreezeCxxSpecJSI_scanEnabled};
160
- methodMap_["scanStart"] = MethodMetadata {1, __hostFunction_NativeBlueBreezeCxxSpecJSI_scanStart};
161
- methodMap_["scanStop"] = MethodMetadata {0, __hostFunction_NativeBlueBreezeCxxSpecJSI_scanStop};
162
- methodMap_["devices"] = MethodMetadata {0, __hostFunction_NativeBlueBreezeCxxSpecJSI_devices};
163
- methodMap_["deviceServices"] = MethodMetadata {1, __hostFunction_NativeBlueBreezeCxxSpecJSI_deviceServices};
164
- methodMap_["deviceConnectionStatus"] = MethodMetadata {1, __hostFunction_NativeBlueBreezeCxxSpecJSI_deviceConnectionStatus};
165
- methodMap_["deviceMTU"] = MethodMetadata {1, __hostFunction_NativeBlueBreezeCxxSpecJSI_deviceMTU};
166
- methodMap_["deviceConnect"] = MethodMetadata {1, __hostFunction_NativeBlueBreezeCxxSpecJSI_deviceConnect};
167
- methodMap_["deviceDisconnect"] = MethodMetadata {1, __hostFunction_NativeBlueBreezeCxxSpecJSI_deviceDisconnect};
168
- methodMap_["deviceDiscoverServices"] = MethodMetadata {1, __hostFunction_NativeBlueBreezeCxxSpecJSI_deviceDiscoverServices};
169
- methodMap_["deviceRequestMTU"] = MethodMetadata {2, __hostFunction_NativeBlueBreezeCxxSpecJSI_deviceRequestMTU};
170
- methodMap_["deviceCharacteristicData"] = MethodMetadata {3, __hostFunction_NativeBlueBreezeCxxSpecJSI_deviceCharacteristicData};
171
- methodMap_["deviceCharacteristicNotifyEnabled"] = MethodMetadata {3, __hostFunction_NativeBlueBreezeCxxSpecJSI_deviceCharacteristicNotifyEnabled};
172
- methodMap_["deviceCharacteristicRead"] = MethodMetadata {3, __hostFunction_NativeBlueBreezeCxxSpecJSI_deviceCharacteristicRead};
173
- methodMap_["deviceCharacteristicWrite"] = MethodMetadata {5, __hostFunction_NativeBlueBreezeCxxSpecJSI_deviceCharacteristicWrite};
174
- methodMap_["deviceCharacteristicSubscribe"] = MethodMetadata {3, __hostFunction_NativeBlueBreezeCxxSpecJSI_deviceCharacteristicSubscribe};
175
- methodMap_["deviceCharacteristicUnsubscribe"] = MethodMetadata {3, __hostFunction_NativeBlueBreezeCxxSpecJSI_deviceCharacteristicUnsubscribe};
176
- }
177
-
178
-
179
- } // namespace facebook::react