@blueid/access-proto 12.0.0 → 12.1.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/BlueCore.proto +10 -38
- package/BlueNexusCore.proto +121 -0
- package/cjs/BlueCore_pb.d.ts +5 -177
- package/cjs/BlueCore_pb.js +2 -70
- package/cjs/BlueNexusCore_pb.d.ts +576 -0
- package/cjs/BlueNexusCore_pb.js +213 -0
- package/cjs/index.d.ts +1 -0
- package/cjs/index.js +1 -0
- package/es/BlueCore_pb.d.ts +5 -177
- package/es/BlueCore_pb.js +1 -67
- package/es/BlueNexusCore_pb.d.ts +576 -0
- package/es/BlueNexusCore_pb.js +212 -0
- package/es/index.d.ts +1 -0
- package/es/index.js +1 -0
- package/nanopb/BlueCore.pb.c +0 -18
- package/nanopb/BlueCore.pb.h +4 -124
- package/nanopb/BlueNexusCore.pb.c +63 -0
- package/nanopb/BlueNexusCore.pb.h +400 -0
- package/package.json +1 -1
- package/swift/BlueCore.pb.swift +2 -487
- package/swift/BlueNexusCore.pb.swift +1652 -0
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v1.4.0 with parameter "target=js+dts"
|
|
2
|
+
// @generated from file BlueNexusCore.proto (syntax proto2)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
|
|
6
|
+
import { proto2 } from "@bufbuild/protobuf";
|
|
7
|
+
import { BlueOssSidMobile, BlueOssSoConfiguration, BlueOssSoMobile, BlueReturnCode, BlueSPResult, BlueSPTokenCommand } from "./BlueCore_pb.js";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* @generated from message BlueTransponderId
|
|
11
|
+
*/
|
|
12
|
+
export const BlueTransponderId = proto2.makeMessageType(
|
|
13
|
+
"BlueTransponderId",
|
|
14
|
+
() => [
|
|
15
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
16
|
+
],
|
|
17
|
+
);
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* @generated from message BlueErrorResult
|
|
21
|
+
*/
|
|
22
|
+
export const BlueErrorResult = proto2.makeMessageType(
|
|
23
|
+
"BlueErrorResult",
|
|
24
|
+
() => [
|
|
25
|
+
{ no: 1, name: "data", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
26
|
+
],
|
|
27
|
+
);
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* @generated from message BlueWebSPHandshake
|
|
31
|
+
*/
|
|
32
|
+
export const BlueWebSPHandshake = proto2.makeMessageType(
|
|
33
|
+
"BlueWebSPHandshake",
|
|
34
|
+
() => [
|
|
35
|
+
{ no: 1, name: "salt", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
|
|
36
|
+
],
|
|
37
|
+
);
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* @generated from message BlueWebSPHandshakeReply
|
|
41
|
+
*/
|
|
42
|
+
export const BlueWebSPHandshakeReply = proto2.makeMessageType(
|
|
43
|
+
"BlueWebSPHandshakeReply",
|
|
44
|
+
() => [
|
|
45
|
+
{ no: 1, name: "deviceId", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
46
|
+
{ no: 2, name: "signature", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
|
|
47
|
+
],
|
|
48
|
+
);
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* @generated from message BlueWebSPMessage
|
|
52
|
+
*/
|
|
53
|
+
export const BlueWebSPMessage = proto2.makeMessageType(
|
|
54
|
+
"BlueWebSPMessage",
|
|
55
|
+
() => [
|
|
56
|
+
{ no: 1, name: "transactionId", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
57
|
+
{ no: 2, name: "payload", kind: "message", T: BlueSPResult },
|
|
58
|
+
{ no: 3, name: "isContinued", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
|
|
59
|
+
],
|
|
60
|
+
);
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* @generated from message BlueWebSPStatusMessage
|
|
64
|
+
*/
|
|
65
|
+
export const BlueWebSPStatusMessage = proto2.makeMessageType(
|
|
66
|
+
"BlueWebSPStatusMessage",
|
|
67
|
+
() => [
|
|
68
|
+
{ no: 1, name: "status", kind: "enum", T: proto2.getEnumType(BlueReturnCode) },
|
|
69
|
+
],
|
|
70
|
+
);
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* @generated from message BlueSocketConfigurationResponse
|
|
74
|
+
*/
|
|
75
|
+
export const BlueSocketConfigurationResponse = proto2.makeMessageType(
|
|
76
|
+
"BlueSocketConfigurationResponse",
|
|
77
|
+
() => [
|
|
78
|
+
{ no: 2, name: "transponderId", kind: "message", T: BlueTransponderId },
|
|
79
|
+
{ no: 1, name: "config", kind: "message", T: BlueOssSoConfiguration },
|
|
80
|
+
{ no: 3, name: "error", kind: "message", T: BlueErrorResult, opt: true },
|
|
81
|
+
],
|
|
82
|
+
);
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* @generated from message BlueSocketRequestConfiguration
|
|
86
|
+
*/
|
|
87
|
+
export const BlueSocketRequestConfiguration = proto2.makeMessageType(
|
|
88
|
+
"BlueSocketRequestConfiguration",
|
|
89
|
+
() => [
|
|
90
|
+
{ no: 2, name: "transponderId", kind: "message", T: BlueTransponderId },
|
|
91
|
+
{ no: 4, name: "aid", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
92
|
+
],
|
|
93
|
+
);
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Message sent by the server to the device
|
|
97
|
+
*
|
|
98
|
+
* @generated from message BlueWebSPServerMessage
|
|
99
|
+
*/
|
|
100
|
+
export const BlueWebSPServerMessage = proto2.makeMessageType(
|
|
101
|
+
"BlueWebSPServerMessage",
|
|
102
|
+
() => [
|
|
103
|
+
{ no: 2, name: "handshake", kind: "message", T: BlueWebSPHandshake, oneof: "payload" },
|
|
104
|
+
{ no: 3, name: "command", kind: "message", T: BlueSPTokenCommand, oneof: "payload" },
|
|
105
|
+
{ no: 4, name: "ossSo", kind: "message", T: BlueOssSoMobile, oneof: "payload" },
|
|
106
|
+
{ no: 5, name: "ossSid", kind: "message", T: BlueOssSidMobile, oneof: "payload" },
|
|
107
|
+
{ no: 6, name: "configResponse", kind: "message", T: BlueSocketConfigurationResponse, oneof: "payload" },
|
|
108
|
+
{ no: 7, name: "socketMessage", kind: "message", T: BlueWebSPServerSocketMessage, oneof: "payload" },
|
|
109
|
+
],
|
|
110
|
+
);
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* @generated from message BlueWebSPClientRequest
|
|
114
|
+
*/
|
|
115
|
+
export const BlueWebSPClientRequest = proto2.makeMessageType(
|
|
116
|
+
"BlueWebSPClientRequest",
|
|
117
|
+
() => [
|
|
118
|
+
{ no: 1, name: "requestConfig", kind: "message", T: BlueSocketRequestConfiguration, oneof: "payload" },
|
|
119
|
+
],
|
|
120
|
+
);
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* @generated from message BlueWebSPClientResponse
|
|
124
|
+
*/
|
|
125
|
+
export const BlueWebSPClientResponse = proto2.makeMessageType(
|
|
126
|
+
"BlueWebSPClientResponse",
|
|
127
|
+
() => [
|
|
128
|
+
{ no: 1, name: "message", kind: "message", T: BlueWebSPMessage, oneof: "payload" },
|
|
129
|
+
],
|
|
130
|
+
);
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Message sent to the server by the device
|
|
134
|
+
*
|
|
135
|
+
* @generated from message BlueWebSPClientMessage
|
|
136
|
+
*/
|
|
137
|
+
export const BlueWebSPClientMessage = proto2.makeMessageType(
|
|
138
|
+
"BlueWebSPClientMessage",
|
|
139
|
+
() => [
|
|
140
|
+
{ no: 1, name: "request", kind: "message", T: BlueWebSPClientRequest, oneof: "payload" },
|
|
141
|
+
{ no: 2, name: "response", kind: "message", T: BlueWebSPClientResponse, oneof: "payload" },
|
|
142
|
+
],
|
|
143
|
+
);
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* @generated from message BlueWebSPServerSocketMessageSuccess
|
|
147
|
+
*/
|
|
148
|
+
export const BlueWebSPServerSocketMessageSuccess = proto2.makeMessageType(
|
|
149
|
+
"BlueWebSPServerSocketMessageSuccess",
|
|
150
|
+
() => [
|
|
151
|
+
{ no: 1, name: "result", kind: "message", T: BlueSPResult },
|
|
152
|
+
],
|
|
153
|
+
);
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* @generated from message BlueWebSPServerSocketMessageFailed
|
|
157
|
+
*/
|
|
158
|
+
export const BlueWebSPServerSocketMessageFailed = proto2.makeMessageType(
|
|
159
|
+
"BlueWebSPServerSocketMessageFailed",
|
|
160
|
+
() => [
|
|
161
|
+
{ no: 1, name: "result", kind: "message", T: BlueErrorResult },
|
|
162
|
+
],
|
|
163
|
+
);
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* @generated from message BlueWebSPServerSocketMessageDone
|
|
167
|
+
*/
|
|
168
|
+
export const BlueWebSPServerSocketMessageDone = proto2.makeMessageType(
|
|
169
|
+
"BlueWebSPServerSocketMessageDone",
|
|
170
|
+
() => [
|
|
171
|
+
{ no: 1, name: "result", kind: "message", T: BlueSPResult, opt: true },
|
|
172
|
+
],
|
|
173
|
+
);
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* Message sent by the server to the device as stream like APDUs
|
|
177
|
+
*
|
|
178
|
+
* @generated from message BlueWebSPServerSocketMessage
|
|
179
|
+
*/
|
|
180
|
+
export const BlueWebSPServerSocketMessage = proto2.makeMessageType(
|
|
181
|
+
"BlueWebSPServerSocketMessage",
|
|
182
|
+
() => [
|
|
183
|
+
{ no: 1, name: "transactionId", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
184
|
+
{ no: 2, name: "success", kind: "message", T: BlueWebSPServerSocketMessageSuccess, oneof: "payload" },
|
|
185
|
+
{ no: 3, name: "failed", kind: "message", T: BlueWebSPServerSocketMessageFailed, oneof: "payload" },
|
|
186
|
+
{ no: 4, name: "done", kind: "message", T: BlueWebSPServerSocketMessageDone, oneof: "payload" },
|
|
187
|
+
],
|
|
188
|
+
);
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* @generated from message BlueWebSPClientSocketMessageSuccess
|
|
192
|
+
*/
|
|
193
|
+
export const BlueWebSPClientSocketMessageSuccess = proto2.makeMessageType(
|
|
194
|
+
"BlueWebSPClientSocketMessageSuccess",
|
|
195
|
+
() => [
|
|
196
|
+
{ no: 1, name: "result", kind: "message", T: BlueSPResult },
|
|
197
|
+
],
|
|
198
|
+
);
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* Message sent to the server by the device as stream like APDUs
|
|
202
|
+
*
|
|
203
|
+
* @generated from message BlueWebSPClientSocketMessage
|
|
204
|
+
*/
|
|
205
|
+
export const BlueWebSPClientSocketMessage = proto2.makeMessageType(
|
|
206
|
+
"BlueWebSPClientSocketMessage",
|
|
207
|
+
() => [
|
|
208
|
+
{ no: 1, name: "success", kind: "message", T: BlueWebSPClientSocketMessageSuccess, oneof: "payload" },
|
|
209
|
+
{ no: 2, name: "failed", kind: "enum", T: proto2.getEnumType(BlueReturnCode), oneof: "payload" },
|
|
210
|
+
],
|
|
211
|
+
);
|
|
212
|
+
|
package/es/index.d.ts
CHANGED
package/es/index.js
CHANGED
package/nanopb/BlueCore.pb.c
CHANGED
|
@@ -51,24 +51,6 @@ PB_BIND(BLUESPTOKEN, BlueSPToken_t, 2)
|
|
|
51
51
|
PB_BIND(BLUESPRESULT, BlueSPResult_t, 2)
|
|
52
52
|
|
|
53
53
|
|
|
54
|
-
PB_BIND(BLUEWEBSPHANDSHAKE, BlueWebSPHandshake_t, AUTO)
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
PB_BIND(BLUEWEBSPHANDSHAKEREPLY, BlueWebSPHandshakeReply_t, AUTO)
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
PB_BIND(BLUEWEBSPMESSAGE, BlueWebSPMessage_t, 2)
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
PB_BIND(BLUEWEBSPSERVERMESSAGE, BlueWebSPServerMessage_t, 2)
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
PB_BIND(BLUEWEBSPCLIENTMESSAGE, BlueWebSPClientMessage_t, AUTO)
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
PB_BIND(BLUEWEBSPSTATUSMESSAGE, BlueWebSPStatusMessage_t, AUTO)
|
|
70
|
-
|
|
71
|
-
|
|
72
54
|
PB_BIND(BLUEOSSACCESSRESULT, BlueOssAccessResult_t, AUTO)
|
|
73
55
|
|
|
74
56
|
|
package/nanopb/BlueCore.pb.h
CHANGED
|
@@ -242,7 +242,8 @@ typedef enum BlueEventId {
|
|
|
242
242
|
|
|
243
243
|
typedef enum BlueEventInfoSystem {
|
|
244
244
|
BlueEventInfoSystem_SystemRestart = 1,
|
|
245
|
-
BlueEventInfoSystem_SystemConfigured = 2
|
|
245
|
+
BlueEventInfoSystem_SystemConfigured = 2,
|
|
246
|
+
BlueEventInfoSystem_UnknownTransponderDetected = 3
|
|
246
247
|
} pb_packed BlueEventInfoSystem_t;
|
|
247
248
|
|
|
248
249
|
typedef enum BlueEventInfoAccess {
|
|
@@ -407,29 +408,6 @@ typedef struct BlueSPResult {
|
|
|
407
408
|
BlueSPResult_data_t data; /* we'll add 256b for add. data */
|
|
408
409
|
} BlueSPResult_t;
|
|
409
410
|
|
|
410
|
-
typedef struct BlueWebSPHandshake {
|
|
411
|
-
pb_byte_t salt[16];
|
|
412
|
-
} BlueWebSPHandshake_t;
|
|
413
|
-
|
|
414
|
-
typedef PB_BYTES_ARRAY_T(74) BlueWebSPHandshakeReply_signature_t;
|
|
415
|
-
typedef struct BlueWebSPHandshakeReply {
|
|
416
|
-
char deviceId[9];
|
|
417
|
-
BlueWebSPHandshakeReply_signature_t signature;
|
|
418
|
-
} BlueWebSPHandshakeReply_t;
|
|
419
|
-
|
|
420
|
-
typedef struct BlueWebSPMessage {
|
|
421
|
-
uint8_t transactionId;
|
|
422
|
-
BlueSPResult_t payload;
|
|
423
|
-
} BlueWebSPMessage_t;
|
|
424
|
-
|
|
425
|
-
typedef struct BlueWebSPClientMessage { /* TODO: payload */
|
|
426
|
-
char dummy_field;
|
|
427
|
-
} BlueWebSPClientMessage_t;
|
|
428
|
-
|
|
429
|
-
typedef struct BlueWebSPStatusMessage {
|
|
430
|
-
BlueReturnCode_t status;
|
|
431
|
-
} BlueWebSPStatusMessage_t;
|
|
432
|
-
|
|
433
411
|
typedef struct BlueOssAccessResult {
|
|
434
412
|
/* If access is granted or not */
|
|
435
413
|
bool accessGranted;
|
|
@@ -726,17 +704,6 @@ typedef struct BlueSPToken {
|
|
|
726
704
|
} payload;
|
|
727
705
|
} BlueSPToken_t;
|
|
728
706
|
|
|
729
|
-
/* Message sent by the server to the device */
|
|
730
|
-
typedef struct BlueWebSPServerMessage {
|
|
731
|
-
pb_size_t which_payload;
|
|
732
|
-
union {
|
|
733
|
-
BlueWebSPHandshake_t handshake;
|
|
734
|
-
BlueSPTokenCommand_t command;
|
|
735
|
-
BlueOssSoMobile_t ossSo;
|
|
736
|
-
BlueOssSidMobile_t ossSid;
|
|
737
|
-
} payload;
|
|
738
|
-
} BlueWebSPServerMessage_t;
|
|
739
|
-
|
|
740
707
|
typedef struct BlueOssSoMobileProvisioningConfiguration {
|
|
741
708
|
uint32_t numberOfDoors;
|
|
742
709
|
uint32_t numberOfDTSchedules;
|
|
@@ -835,8 +802,8 @@ extern "C" {
|
|
|
835
802
|
#define _BLUEEVENTID_ARRAYSIZE ((BlueEventId_t)(BlueEventId_TerminalOss+1))
|
|
836
803
|
|
|
837
804
|
#define _BLUEEVENTINFOSYSTEM_MIN BlueEventInfoSystem_SystemRestart
|
|
838
|
-
#define _BLUEEVENTINFOSYSTEM_MAX
|
|
839
|
-
#define _BLUEEVENTINFOSYSTEM_ARRAYSIZE ((BlueEventInfoSystem_t)(
|
|
805
|
+
#define _BLUEEVENTINFOSYSTEM_MAX BlueEventInfoSystem_UnknownTransponderDetected
|
|
806
|
+
#define _BLUEEVENTINFOSYSTEM_ARRAYSIZE ((BlueEventInfoSystem_t)(BlueEventInfoSystem_UnknownTransponderDetected+1))
|
|
840
807
|
|
|
841
808
|
#define _BLUEEVENTINFOACCESS_MIN BlueEventInfoAccess_Granted
|
|
842
809
|
#define _BLUEEVENTINFOACCESS_MAX BlueEventInfoAccess_DeniedInvalidTransponderData
|
|
@@ -884,13 +851,6 @@ extern "C" {
|
|
|
884
851
|
|
|
885
852
|
|
|
886
853
|
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
#define BlueWebSPStatusMessage_t_status_ENUMTYPE BlueReturnCode_t
|
|
893
|
-
|
|
894
854
|
#define BlueOssAccessResult_t_accessType_ENUMTYPE BlueAccessType_t
|
|
895
855
|
|
|
896
856
|
|
|
@@ -956,12 +916,6 @@ extern "C" {
|
|
|
956
916
|
#define BLUESPTOKENCOMMAND_INIT_DEFAULT {BLUECREDENTIALID_INIT_DEFAULT, BLUELOCALTIMESTAMP_INIT_DEFAULT, BLUELOCALTIMESTAMP_INIT_DEFAULT, "", {0, {0}}}
|
|
957
917
|
#define BLUESPTOKEN_INIT_DEFAULT {{0, {0}}, 0, {BLUESPTOKENCOMMAND_INIT_DEFAULT}}
|
|
958
918
|
#define BLUESPRESULT_INIT_DEFAULT {{0, {0}}}
|
|
959
|
-
#define BLUEWEBSPHANDSHAKE_INIT_DEFAULT {{0}}
|
|
960
|
-
#define BLUEWEBSPHANDSHAKEREPLY_INIT_DEFAULT {"", {0, {0}}}
|
|
961
|
-
#define BLUEWEBSPMESSAGE_INIT_DEFAULT {0, BLUESPRESULT_INIT_DEFAULT}
|
|
962
|
-
#define BLUEWEBSPSERVERMESSAGE_INIT_DEFAULT {0, {BLUEWEBSPHANDSHAKE_INIT_DEFAULT}}
|
|
963
|
-
#define BLUEWEBSPCLIENTMESSAGE_INIT_DEFAULT {0}
|
|
964
|
-
#define BLUEWEBSPSTATUSMESSAGE_INIT_DEFAULT {_BLUERETURNCODE_MIN}
|
|
965
919
|
#define BLUEOSSACCESSRESULT_INIT_DEFAULT {0, _BLUEACCESSTYPE_MIN, 0, BLUELOCALTIMESTAMP_INIT_DEFAULT, 0, false, 0u}
|
|
966
920
|
#define BLUEOSSACCESSEVENTSRESULT_INIT_DEFAULT {BLUEOSSACCESSRESULT_INIT_DEFAULT, 0, {BLUEEVENT_INIT_DEFAULT, BLUEEVENT_INIT_DEFAULT, BLUEEVENT_INIT_DEFAULT, BLUEEVENT_INIT_DEFAULT, BLUEEVENT_INIT_DEFAULT, BLUEEVENT_INIT_DEFAULT, BLUEEVENT_INIT_DEFAULT, BLUEEVENT_INIT_DEFAULT, BLUEEVENT_INIT_DEFAULT, BLUEEVENT_INIT_DEFAULT, BLUEEVENT_INIT_DEFAULT, BLUEEVENT_INIT_DEFAULT, BLUEEVENT_INIT_DEFAULT, BLUEEVENT_INIT_DEFAULT, BLUEEVENT_INIT_DEFAULT, BLUEEVENT_INIT_DEFAULT}}
|
|
967
921
|
#define BLUEOSSSIDVERSION_INIT_DEFAULT {false, 1u, false, 0u}
|
|
@@ -1018,12 +972,6 @@ extern "C" {
|
|
|
1018
972
|
#define BLUESPTOKENCOMMAND_INIT_ZERO {BLUECREDENTIALID_INIT_ZERO, BLUELOCALTIMESTAMP_INIT_ZERO, BLUELOCALTIMESTAMP_INIT_ZERO, "", {0, {0}}}
|
|
1019
973
|
#define BLUESPTOKEN_INIT_ZERO {{0, {0}}, 0, {BLUESPTOKENCOMMAND_INIT_ZERO}}
|
|
1020
974
|
#define BLUESPRESULT_INIT_ZERO {{0, {0}}}
|
|
1021
|
-
#define BLUEWEBSPHANDSHAKE_INIT_ZERO {{0}}
|
|
1022
|
-
#define BLUEWEBSPHANDSHAKEREPLY_INIT_ZERO {"", {0, {0}}}
|
|
1023
|
-
#define BLUEWEBSPMESSAGE_INIT_ZERO {0, BLUESPRESULT_INIT_ZERO}
|
|
1024
|
-
#define BLUEWEBSPSERVERMESSAGE_INIT_ZERO {0, {BLUEWEBSPHANDSHAKE_INIT_ZERO}}
|
|
1025
|
-
#define BLUEWEBSPCLIENTMESSAGE_INIT_ZERO {0}
|
|
1026
|
-
#define BLUEWEBSPSTATUSMESSAGE_INIT_ZERO {_BLUERETURNCODE_MIN}
|
|
1027
975
|
#define BLUEOSSACCESSRESULT_INIT_ZERO {0, _BLUEACCESSTYPE_MIN, 0, BLUELOCALTIMESTAMP_INIT_ZERO, 0, false, 0}
|
|
1028
976
|
#define BLUEOSSACCESSEVENTSRESULT_INIT_ZERO {BLUEOSSACCESSRESULT_INIT_ZERO, 0, {BLUEEVENT_INIT_ZERO, BLUEEVENT_INIT_ZERO, BLUEEVENT_INIT_ZERO, BLUEEVENT_INIT_ZERO, BLUEEVENT_INIT_ZERO, BLUEEVENT_INIT_ZERO, BLUEEVENT_INIT_ZERO, BLUEEVENT_INIT_ZERO, BLUEEVENT_INIT_ZERO, BLUEEVENT_INIT_ZERO, BLUEEVENT_INIT_ZERO, BLUEEVENT_INIT_ZERO, BLUEEVENT_INIT_ZERO, BLUEEVENT_INIT_ZERO, BLUEEVENT_INIT_ZERO, BLUEEVENT_INIT_ZERO}}
|
|
1029
977
|
#define BLUEOSSSIDVERSION_INIT_ZERO {false, 0, false, 0}
|
|
@@ -1117,12 +1065,6 @@ extern "C" {
|
|
|
1117
1065
|
#define BLUESPTOKENCOMMAND_COMMAND_TAG 4
|
|
1118
1066
|
#define BLUESPTOKENCOMMAND_DATA_TAG 5
|
|
1119
1067
|
#define BLUESPRESULT_DATA_TAG 1
|
|
1120
|
-
#define BLUEWEBSPHANDSHAKE_SALT_TAG 1
|
|
1121
|
-
#define BLUEWEBSPHANDSHAKEREPLY_DEVICEID_TAG 1
|
|
1122
|
-
#define BLUEWEBSPHANDSHAKEREPLY_SIGNATURE_TAG 2
|
|
1123
|
-
#define BLUEWEBSPMESSAGE_TRANSACTIONID_TAG 1
|
|
1124
|
-
#define BLUEWEBSPMESSAGE_PAYLOAD_TAG 2
|
|
1125
|
-
#define BLUEWEBSPSTATUSMESSAGE_STATUS_TAG 1
|
|
1126
1068
|
#define BLUEOSSACCESSRESULT_ACCESSGRANTED_TAG 1
|
|
1127
1069
|
#define BLUEOSSACCESSRESULT_ACCESSTYPE_TAG 2
|
|
1128
1070
|
#define BLUEOSSACCESSRESULT_ACCESSINFO_TAG 3
|
|
@@ -1239,10 +1181,6 @@ extern "C" {
|
|
|
1239
1181
|
#define BLUESPTOKEN_COMMAND_TAG 2
|
|
1240
1182
|
#define BLUESPTOKEN_OSSSO_TAG 3
|
|
1241
1183
|
#define BLUESPTOKEN_OSSSID_TAG 4
|
|
1242
|
-
#define BLUEWEBSPSERVERMESSAGE_HANDSHAKE_TAG 2
|
|
1243
|
-
#define BLUEWEBSPSERVERMESSAGE_COMMAND_TAG 3
|
|
1244
|
-
#define BLUEWEBSPSERVERMESSAGE_OSSSO_TAG 4
|
|
1245
|
-
#define BLUEWEBSPSERVERMESSAGE_OSSSID_TAG 5
|
|
1246
1184
|
#define BLUEOSSSOMOBILEPROVISIONINGCONFIGURATION_NUMBEROFDOORS_TAG 1
|
|
1247
1185
|
#define BLUEOSSSOMOBILEPROVISIONINGCONFIGURATION_NUMBEROFDTSCHEDULES_TAG 2
|
|
1248
1186
|
#define BLUEOSSSOMOBILEPROVISIONINGCONFIGURATION_NUMBEROFDAYIDSPERDTSCHEDULE_TAG 3
|
|
@@ -1398,46 +1336,6 @@ X(a, STATIC, REQUIRED, BYTES, data, 1)
|
|
|
1398
1336
|
#define BLUESPRESULT_CALLBACK NULL
|
|
1399
1337
|
#define BLUESPRESULT_DEFAULT NULL
|
|
1400
1338
|
|
|
1401
|
-
#define BLUEWEBSPHANDSHAKE_FIELDLIST(X, a) \
|
|
1402
|
-
X(a, STATIC, REQUIRED, FIXED_LENGTH_BYTES, salt, 1)
|
|
1403
|
-
#define BLUEWEBSPHANDSHAKE_CALLBACK NULL
|
|
1404
|
-
#define BLUEWEBSPHANDSHAKE_DEFAULT NULL
|
|
1405
|
-
|
|
1406
|
-
#define BLUEWEBSPHANDSHAKEREPLY_FIELDLIST(X, a) \
|
|
1407
|
-
X(a, STATIC, REQUIRED, STRING, deviceId, 1) \
|
|
1408
|
-
X(a, STATIC, REQUIRED, BYTES, signature, 2)
|
|
1409
|
-
#define BLUEWEBSPHANDSHAKEREPLY_CALLBACK NULL
|
|
1410
|
-
#define BLUEWEBSPHANDSHAKEREPLY_DEFAULT NULL
|
|
1411
|
-
|
|
1412
|
-
#define BLUEWEBSPMESSAGE_FIELDLIST(X, a) \
|
|
1413
|
-
X(a, STATIC, REQUIRED, UINT32, transactionId, 1) \
|
|
1414
|
-
X(a, STATIC, REQUIRED, MESSAGE, payload, 2)
|
|
1415
|
-
#define BLUEWEBSPMESSAGE_CALLBACK NULL
|
|
1416
|
-
#define BLUEWEBSPMESSAGE_DEFAULT NULL
|
|
1417
|
-
#define BlueWebSPMessage_t_payload_MSGTYPE BlueSPResult_t
|
|
1418
|
-
|
|
1419
|
-
#define BLUEWEBSPSERVERMESSAGE_FIELDLIST(X, a) \
|
|
1420
|
-
X(a, STATIC, ONEOF, MESSAGE, (payload,handshake,payload.handshake), 2) \
|
|
1421
|
-
X(a, STATIC, ONEOF, MESSAGE, (payload,command,payload.command), 3) \
|
|
1422
|
-
X(a, STATIC, ONEOF, MESSAGE, (payload,ossSo,payload.ossSo), 4) \
|
|
1423
|
-
X(a, STATIC, ONEOF, MESSAGE, (payload,ossSid,payload.ossSid), 5)
|
|
1424
|
-
#define BLUEWEBSPSERVERMESSAGE_CALLBACK NULL
|
|
1425
|
-
#define BLUEWEBSPSERVERMESSAGE_DEFAULT NULL
|
|
1426
|
-
#define BlueWebSPServerMessage_t_payload_handshake_MSGTYPE BlueWebSPHandshake_t
|
|
1427
|
-
#define BlueWebSPServerMessage_t_payload_command_MSGTYPE BlueSPTokenCommand_t
|
|
1428
|
-
#define BlueWebSPServerMessage_t_payload_ossSo_MSGTYPE BlueOssSoMobile_t
|
|
1429
|
-
#define BlueWebSPServerMessage_t_payload_ossSid_MSGTYPE BlueOssSidMobile_t
|
|
1430
|
-
|
|
1431
|
-
#define BLUEWEBSPCLIENTMESSAGE_FIELDLIST(X, a) \
|
|
1432
|
-
|
|
1433
|
-
#define BLUEWEBSPCLIENTMESSAGE_CALLBACK NULL
|
|
1434
|
-
#define BLUEWEBSPCLIENTMESSAGE_DEFAULT NULL
|
|
1435
|
-
|
|
1436
|
-
#define BLUEWEBSPSTATUSMESSAGE_FIELDLIST(X, a) \
|
|
1437
|
-
X(a, STATIC, REQUIRED, ENUM, status, 1)
|
|
1438
|
-
#define BLUEWEBSPSTATUSMESSAGE_CALLBACK NULL
|
|
1439
|
-
#define BLUEWEBSPSTATUSMESSAGE_DEFAULT NULL
|
|
1440
|
-
|
|
1441
1339
|
#define BLUEOSSACCESSRESULT_FIELDLIST(X, a) \
|
|
1442
1340
|
X(a, STATIC, REQUIRED, BOOL, accessGranted, 1) \
|
|
1443
1341
|
X(a, STATIC, REQUIRED, UENUM, accessType, 2) \
|
|
@@ -1792,12 +1690,6 @@ extern const pb_msgdesc_t BlueSPHandshakeReply_t_msg;
|
|
|
1792
1690
|
extern const pb_msgdesc_t BlueSPTokenCommand_t_msg;
|
|
1793
1691
|
extern const pb_msgdesc_t BlueSPToken_t_msg;
|
|
1794
1692
|
extern const pb_msgdesc_t BlueSPResult_t_msg;
|
|
1795
|
-
extern const pb_msgdesc_t BlueWebSPHandshake_t_msg;
|
|
1796
|
-
extern const pb_msgdesc_t BlueWebSPHandshakeReply_t_msg;
|
|
1797
|
-
extern const pb_msgdesc_t BlueWebSPMessage_t_msg;
|
|
1798
|
-
extern const pb_msgdesc_t BlueWebSPServerMessage_t_msg;
|
|
1799
|
-
extern const pb_msgdesc_t BlueWebSPClientMessage_t_msg;
|
|
1800
|
-
extern const pb_msgdesc_t BlueWebSPStatusMessage_t_msg;
|
|
1801
1693
|
extern const pb_msgdesc_t BlueOssAccessResult_t_msg;
|
|
1802
1694
|
extern const pb_msgdesc_t BlueOssAccessEventsResult_t_msg;
|
|
1803
1695
|
extern const pb_msgdesc_t BlueOssSidVersion_t_msg;
|
|
@@ -1856,12 +1748,6 @@ extern const pb_msgdesc_t _BlueTestEncodeDecode_t_msg;
|
|
|
1856
1748
|
#define BLUESPTOKENCOMMAND_FIELDS &BlueSPTokenCommand_t_msg
|
|
1857
1749
|
#define BLUESPTOKEN_FIELDS &BlueSPToken_t_msg
|
|
1858
1750
|
#define BLUESPRESULT_FIELDS &BlueSPResult_t_msg
|
|
1859
|
-
#define BLUEWEBSPHANDSHAKE_FIELDS &BlueWebSPHandshake_t_msg
|
|
1860
|
-
#define BLUEWEBSPHANDSHAKEREPLY_FIELDS &BlueWebSPHandshakeReply_t_msg
|
|
1861
|
-
#define BLUEWEBSPMESSAGE_FIELDS &BlueWebSPMessage_t_msg
|
|
1862
|
-
#define BLUEWEBSPSERVERMESSAGE_FIELDS &BlueWebSPServerMessage_t_msg
|
|
1863
|
-
#define BLUEWEBSPCLIENTMESSAGE_FIELDS &BlueWebSPClientMessage_t_msg
|
|
1864
|
-
#define BLUEWEBSPSTATUSMESSAGE_FIELDS &BlueWebSPStatusMessage_t_msg
|
|
1865
1751
|
#define BLUEOSSACCESSRESULT_FIELDS &BlueOssAccessResult_t_msg
|
|
1866
1752
|
#define BLUEOSSACCESSEVENTSRESULT_FIELDS &BlueOssAccessEventsResult_t_msg
|
|
1867
1753
|
#define BLUEOSSSIDVERSION_FIELDS &BlueOssSidVersion_t_msg
|
|
@@ -1960,12 +1846,6 @@ extern const pb_msgdesc_t _BlueTestEncodeDecode_t_msg;
|
|
|
1960
1846
|
#define BLUESPTOKENCOMMAND_SIZE 1861
|
|
1961
1847
|
#define BLUESPTOKEN_SIZE 1940
|
|
1962
1848
|
#define BLUEVERSIONINFO_SIZE 14
|
|
1963
|
-
#define BLUEWEBSPCLIENTMESSAGE_SIZE 0
|
|
1964
|
-
#define BLUEWEBSPHANDSHAKEREPLY_SIZE 86
|
|
1965
|
-
#define BLUEWEBSPHANDSHAKE_SIZE 18
|
|
1966
|
-
#define BLUEWEBSPMESSAGE_SIZE 1801
|
|
1967
|
-
#define BLUEWEBSPSERVERMESSAGE_SIZE 1864
|
|
1968
|
-
#define BLUEWEBSPSTATUSMESSAGE_SIZE 11
|
|
1969
1849
|
#define _BLUETESTENCODEDECODE_SIZE 90
|
|
1970
1850
|
|
|
1971
1851
|
#ifdef __cplusplus
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/* Automatically generated nanopb constant definitions */
|
|
2
|
+
/* Generated by nanopb-0.4.8-dev */
|
|
3
|
+
|
|
4
|
+
#include "BlueNexusCore.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(BLUETRANSPONDERID, BlueTransponderId_t, AUTO)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
PB_BIND(BLUEERRORRESULT, BlueErrorResult_t, AUTO)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
PB_BIND(BLUEWEBSPHANDSHAKE, BlueWebSPHandshake_t, AUTO)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
PB_BIND(BLUEWEBSPHANDSHAKEREPLY, BlueWebSPHandshakeReply_t, AUTO)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
PB_BIND(BLUEWEBSPMESSAGE, BlueWebSPMessage_t, 2)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
PB_BIND(BLUEWEBSPSTATUSMESSAGE, BlueWebSPStatusMessage_t, AUTO)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
PB_BIND(BLUESOCKETCONFIGURATIONRESPONSE, BlueSocketConfigurationResponse_t, 4)
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
PB_BIND(BLUESOCKETREQUESTCONFIGURATION, BlueSocketRequestConfiguration_t, AUTO)
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
PB_BIND(BLUEWEBSPSERVERMESSAGE, BlueWebSPServerMessage_t, 4)
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
PB_BIND(BLUEWEBSPCLIENTREQUEST, BlueWebSPClientRequest_t, AUTO)
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
PB_BIND(BLUEWEBSPCLIENTRESPONSE, BlueWebSPClientResponse_t, 2)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
PB_BIND(BLUEWEBSPCLIENTMESSAGE, BlueWebSPClientMessage_t, 2)
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
PB_BIND(BLUEWEBSPSERVERSOCKETMESSAGESUCCESS, BlueWebSPServerSocketMessageSuccess_t, 2)
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
PB_BIND(BLUEWEBSPSERVERSOCKETMESSAGEFAILED, BlueWebSPServerSocketMessageFailed_t, AUTO)
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
PB_BIND(BLUEWEBSPSERVERSOCKETMESSAGEDONE, BlueWebSPServerSocketMessageDone_t, 2)
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
PB_BIND(BLUEWEBSPSERVERSOCKETMESSAGE, BlueWebSPServerSocketMessage_t, 2)
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
PB_BIND(BLUEWEBSPCLIENTSOCKETMESSAGESUCCESS, BlueWebSPClientSocketMessageSuccess_t, 2)
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
PB_BIND(BLUEWEBSPCLIENTSOCKETMESSAGE, BlueWebSPClientSocketMessage_t, 2)
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|