simplejsble 0.0.29 → 0.0.30
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/NitroSimplejsble.podspec +1 -0
- package/VERSION +1 -1
- package/dependencies/external/kvn/kvn_bytearray.h +7 -0
- package/lib/index.d.ts +3 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +2 -0
- package/lib/specs/Adapter.nitro.d.ts +10 -0
- package/lib/specs/Adapter.nitro.d.ts.map +1 -0
- package/lib/specs/Adapter.nitro.js +1 -0
- package/package.json +2 -2
- package/simpleble/CMakeLists.txt +1 -6
- package/simpleble/src/backends/dongl/AdapterDongl.cpp +10 -143
- package/simpleble/src/backends/dongl/AdapterDongl.h +0 -1
- package/simpleble/src/backends/dongl/PeripheralDongl.cpp +120 -118
- package/simpleble/src/backends/dongl/PeripheralDongl.h +9 -2
- package/simpleble/src/backends/dongl/protocol/d2h.pb.h +9 -26
- package/simpleble/src/backends/dongl/protocol/h2d.pb.h +2 -12
- package/simpleble/src/backends/dongl/serial/Protocol.cpp +1 -755
- package/simpleble/src/backends/dongl/serial/Protocol.h +0 -75
- package/simpleble/test/src/test_bytearray.cpp +7 -0
- package/simpleble/src/backends/dongl/protocol/softdevice.pb.c +0 -18
- package/simpleble/src/backends/dongl/protocol/softdevice.pb.h +0 -815
- package/simpleble/src/backends/dongl/protocol/softdevice_gap.pb.c +0 -339
- package/simpleble/src/backends/dongl/protocol/softdevice_gap.pb.h +0 -2086
- package/simpleble/src/backends/dongl/protocol/softdevice_gattc.pb.c +0 -114
- package/simpleble/src/backends/dongl/protocol/softdevice_gattc.pb.h +0 -772
- package/simpleble/src/backends/dongl/protocol/softdevice_gatts.pb.c +0 -117
- package/simpleble/src/backends/dongl/protocol/softdevice_gatts.pb.h +0 -766
- package/simpleble/src/backends/dongl/protocol/softdevice_types.pb.c +0 -207
- package/simpleble/src/backends/dongl/protocol/softdevice_types.pb.h +0 -1686
|
@@ -1,339 +0,0 @@
|
|
|
1
|
-
/* Automatically generated nanopb constant definitions */
|
|
2
|
-
/* Generated by nanopb-0.4.9.1 */
|
|
3
|
-
|
|
4
|
-
#include "protocol/softdevice_gap.pb.h"
|
|
5
|
-
#if PB_PROTO_HEADER_VERSION != 40
|
|
6
|
-
#error Regenerate this file with the current version of nanopb generator.
|
|
7
|
-
#endif
|
|
8
|
-
|
|
9
|
-
PB_BIND(sd_GapAddrSetCmd, sd_GapAddrSetCmd, AUTO)
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
PB_BIND(sd_GapAddrGetCmd, sd_GapAddrGetCmd, AUTO)
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
PB_BIND(sd_GapWhitelistSetCmd, sd_GapWhitelistSetCmd, AUTO)
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
PB_BIND(sd_GapDeviceIdentitiesSetCmd, sd_GapDeviceIdentitiesSetCmd, 2)
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
PB_BIND(sd_GapPrivacySetCmd, sd_GapPrivacySetCmd, AUTO)
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
PB_BIND(sd_GapPrivacyGetCmd, sd_GapPrivacyGetCmd, AUTO)
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
PB_BIND(sd_GapAdvSetConfigureCmd, sd_GapAdvSetConfigureCmd, 2)
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
PB_BIND(sd_GapAdvStartCmd, sd_GapAdvStartCmd, AUTO)
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
PB_BIND(sd_GapAdvStopCmd, sd_GapAdvStopCmd, AUTO)
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
PB_BIND(sd_GapConnParamUpdateCmd, sd_GapConnParamUpdateCmd, AUTO)
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
PB_BIND(sd_GapDisconnectCmd, sd_GapDisconnectCmd, AUTO)
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
PB_BIND(sd_GapTxPowerSetCmd, sd_GapTxPowerSetCmd, AUTO)
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
PB_BIND(sd_GapAppearanceSetCmd, sd_GapAppearanceSetCmd, AUTO)
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
PB_BIND(sd_GapAppearanceGetCmd, sd_GapAppearanceGetCmd, AUTO)
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
PB_BIND(sd_GapPpcpSetCmd, sd_GapPpcpSetCmd, AUTO)
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
PB_BIND(sd_GapPpcpGetCmd, sd_GapPpcpGetCmd, AUTO)
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
PB_BIND(sd_GapDeviceNameSetCmd, sd_GapDeviceNameSetCmd, 2)
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
PB_BIND(sd_GapDeviceNameGetCmd, sd_GapDeviceNameGetCmd, AUTO)
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
PB_BIND(sd_GapAuthenticateCmd, sd_GapAuthenticateCmd, AUTO)
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
PB_BIND(sd_GapSecParamsReplyCmd, sd_GapSecParamsReplyCmd, 2)
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
PB_BIND(sd_GapAuthKeyReplyCmd, sd_GapAuthKeyReplyCmd, AUTO)
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
PB_BIND(sd_GapLescDhkeyReplyCmd, sd_GapLescDhkeyReplyCmd, AUTO)
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
PB_BIND(sd_GapKeypressNotifyCmd, sd_GapKeypressNotifyCmd, AUTO)
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
PB_BIND(sd_GapLescOobDataGetCmd, sd_GapLescOobDataGetCmd, AUTO)
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
PB_BIND(sd_GapLescOobDataSetCmd, sd_GapLescOobDataSetCmd, AUTO)
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
PB_BIND(sd_GapEncryptCmd, sd_GapEncryptCmd, AUTO)
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
PB_BIND(sd_GapSecInfoReplyCmd, sd_GapSecInfoReplyCmd, AUTO)
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
PB_BIND(sd_GapConnSecGetCmd, sd_GapConnSecGetCmd, AUTO)
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
PB_BIND(sd_GapRssiStartCmd, sd_GapRssiStartCmd, AUTO)
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
PB_BIND(sd_GapRssiStopCmd, sd_GapRssiStopCmd, AUTO)
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
PB_BIND(sd_GapScanStartCmd, sd_GapScanStartCmd, AUTO)
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
PB_BIND(sd_GapScanStopCmd, sd_GapScanStopCmd, AUTO)
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
PB_BIND(sd_GapConnectCmd, sd_GapConnectCmd, AUTO)
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
PB_BIND(sd_GapConnectCancelCmd, sd_GapConnectCancelCmd, AUTO)
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
PB_BIND(sd_GapRssiGetCmd, sd_GapRssiGetCmd, AUTO)
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
PB_BIND(sd_BleGapPhysCmd, sd_BleGapPhysCmd, AUTO)
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
PB_BIND(sd_GapPhyUpdateCmd, sd_GapPhyUpdateCmd, AUTO)
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
PB_BIND(sd_GapDataLengthUpdateCmd, sd_GapDataLengthUpdateCmd, AUTO)
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
PB_BIND(sd_GapQosChannelSurveyStartCmd, sd_GapQosChannelSurveyStartCmd, AUTO)
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
PB_BIND(sd_GapQosChannelSurveyStopCmd, sd_GapQosChannelSurveyStopCmd, AUTO)
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
PB_BIND(sd_GapAdvAddrGetCmd, sd_GapAdvAddrGetCmd, AUTO)
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
PB_BIND(sd_GapNextConnEvtCounterGetCmd, sd_GapNextConnEvtCounterGetCmd, AUTO)
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
PB_BIND(sd_GapConnEvtTriggerStartCmd, sd_GapConnEvtTriggerStartCmd, AUTO)
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
PB_BIND(sd_GapConnEvtTriggerStopCmd, sd_GapConnEvtTriggerStopCmd, AUTO)
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
PB_BIND(sd_GapAddrSetRsp, sd_GapAddrSetRsp, AUTO)
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
PB_BIND(sd_GapAddrGetRsp, sd_GapAddrGetRsp, AUTO)
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
PB_BIND(sd_GapWhitelistSetRsp, sd_GapWhitelistSetRsp, AUTO)
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
PB_BIND(sd_GapDeviceIdentitiesSetRsp, sd_GapDeviceIdentitiesSetRsp, AUTO)
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
PB_BIND(sd_GapPrivacySetRsp, sd_GapPrivacySetRsp, AUTO)
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
PB_BIND(sd_GapPrivacyGetRsp, sd_GapPrivacyGetRsp, AUTO)
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
PB_BIND(sd_GapAdvSetConfigureRsp, sd_GapAdvSetConfigureRsp, AUTO)
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
PB_BIND(sd_GapAdvStartRsp, sd_GapAdvStartRsp, AUTO)
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
PB_BIND(sd_GapAdvStopRsp, sd_GapAdvStopRsp, AUTO)
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
PB_BIND(sd_GapConnParamUpdateRsp, sd_GapConnParamUpdateRsp, AUTO)
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
PB_BIND(sd_GapDisconnectRsp, sd_GapDisconnectRsp, AUTO)
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
PB_BIND(sd_GapTxPowerSetRsp, sd_GapTxPowerSetRsp, AUTO)
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
PB_BIND(sd_GapAppearanceSetRsp, sd_GapAppearanceSetRsp, AUTO)
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
PB_BIND(sd_GapAppearanceGetRsp, sd_GapAppearanceGetRsp, AUTO)
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
PB_BIND(sd_GapPpcpSetRsp, sd_GapPpcpSetRsp, AUTO)
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
PB_BIND(sd_GapPpcpGetRsp, sd_GapPpcpGetRsp, AUTO)
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
PB_BIND(sd_GapDeviceNameSetRsp, sd_GapDeviceNameSetRsp, AUTO)
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
PB_BIND(sd_GapDeviceNameGetRsp, sd_GapDeviceNameGetRsp, 2)
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
PB_BIND(sd_GapAuthenticateRsp, sd_GapAuthenticateRsp, AUTO)
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
PB_BIND(sd_GapSecParamsReplyRsp, sd_GapSecParamsReplyRsp, AUTO)
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
PB_BIND(sd_GapAuthKeyReplyRsp, sd_GapAuthKeyReplyRsp, AUTO)
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
PB_BIND(sd_GapLescDhkeyReplyRsp, sd_GapLescDhkeyReplyRsp, AUTO)
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
PB_BIND(sd_GapKeypressNotifyRsp, sd_GapKeypressNotifyRsp, AUTO)
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
PB_BIND(sd_GapLescOobDataGetRsp, sd_GapLescOobDataGetRsp, AUTO)
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
PB_BIND(sd_GapLescOobDataSetRsp, sd_GapLescOobDataSetRsp, AUTO)
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
PB_BIND(sd_GapEncryptRsp, sd_GapEncryptRsp, AUTO)
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
PB_BIND(sd_GapSecInfoReplyRsp, sd_GapSecInfoReplyRsp, AUTO)
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
PB_BIND(sd_GapConnSecGetRsp, sd_GapConnSecGetRsp, AUTO)
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
PB_BIND(sd_GapRssiStartRsp, sd_GapRssiStartRsp, AUTO)
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
PB_BIND(sd_GapRssiStopRsp, sd_GapRssiStopRsp, AUTO)
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
PB_BIND(sd_GapScanStartRsp, sd_GapScanStartRsp, AUTO)
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
PB_BIND(sd_GapScanStopRsp, sd_GapScanStopRsp, AUTO)
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
PB_BIND(sd_GapConnectRsp, sd_GapConnectRsp, AUTO)
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
PB_BIND(sd_GapConnectCancelRsp, sd_GapConnectCancelRsp, AUTO)
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
PB_BIND(sd_GapRssiGetRsp, sd_GapRssiGetRsp, AUTO)
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
PB_BIND(sd_GapPhyUpdateRsp, sd_GapPhyUpdateRsp, AUTO)
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
PB_BIND(sd_GapDataLengthUpdateRsp, sd_GapDataLengthUpdateRsp, AUTO)
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
PB_BIND(sd_GapQosChannelSurveyStartRsp, sd_GapQosChannelSurveyStartRsp, AUTO)
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
PB_BIND(sd_GapQosChannelSurveyStopRsp, sd_GapQosChannelSurveyStopRsp, AUTO)
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
PB_BIND(sd_GapAdvAddrGetRsp, sd_GapAdvAddrGetRsp, AUTO)
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
PB_BIND(sd_GapNextConnEvtCounterGetRsp, sd_GapNextConnEvtCounterGetRsp, AUTO)
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
PB_BIND(sd_GapConnEvtTriggerStartRsp, sd_GapConnEvtTriggerStartRsp, AUTO)
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
PB_BIND(sd_GapConnEvtTriggerStopRsp, sd_GapConnEvtTriggerStopRsp, AUTO)
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
PB_BIND(sd_GapEvtConnected, sd_GapEvtConnected, 2)
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
PB_BIND(sd_GapEvtDisconnected, sd_GapEvtDisconnected, AUTO)
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
PB_BIND(sd_GapEvtConnParamUpdate, sd_GapEvtConnParamUpdate, AUTO)
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
PB_BIND(sd_GapEvtSecParamsRequest, sd_GapEvtSecParamsRequest, AUTO)
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
PB_BIND(sd_GapEvtSecInfoRequest, sd_GapEvtSecInfoRequest, AUTO)
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
PB_BIND(sd_GapEvtPasskeyDisplay, sd_GapEvtPasskeyDisplay, AUTO)
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
PB_BIND(sd_GapEvtKeyPressed, sd_GapEvtKeyPressed, AUTO)
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
PB_BIND(sd_GapEvtAuthKeyRequest, sd_GapEvtAuthKeyRequest, AUTO)
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
PB_BIND(sd_GapEvtLescDhkeyRequest, sd_GapEvtLescDhkeyRequest, AUTO)
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
PB_BIND(sd_GapEvtAuthStatus, sd_GapEvtAuthStatus, AUTO)
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
PB_BIND(sd_GapEvtConnSecUpdate, sd_GapEvtConnSecUpdate, AUTO)
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
PB_BIND(sd_GapEvtTimeout, sd_GapEvtTimeout, 2)
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
PB_BIND(sd_GapEvtRssiChanged, sd_GapEvtRssiChanged, AUTO)
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
PB_BIND(sd_GapEvtAdvReport, sd_GapEvtAdvReport, 2)
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
PB_BIND(sd_GapEvtSecRequest, sd_GapEvtSecRequest, AUTO)
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
PB_BIND(sd_GapEvtConnParamUpdateRequest, sd_GapEvtConnParamUpdateRequest, AUTO)
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
PB_BIND(sd_GapEvtScanReqReport, sd_GapEvtScanReqReport, AUTO)
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
PB_BIND(sd_GapEvtPhyUpdateRequest, sd_GapEvtPhyUpdateRequest, AUTO)
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
PB_BIND(sd_GapEvtPhyUpdate, sd_GapEvtPhyUpdate, AUTO)
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
PB_BIND(sd_GapEvtDataLengthUpdateRequest, sd_GapEvtDataLengthUpdateRequest, AUTO)
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
PB_BIND(sd_GapEvtDataLengthUpdate, sd_GapEvtDataLengthUpdate, AUTO)
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
PB_BIND(sd_GapEvtQosChannelSurveyReport, sd_GapEvtQosChannelSurveyReport, AUTO)
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
PB_BIND(sd_GapEvtAdvSetTerminated, sd_GapEvtAdvSetTerminated, 2)
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|