@blueid/access-proto 0.21.0 → 0.22.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 +24 -23
- package/BlueSystem.proto +54 -56
- package/cjs/BlueCore_pb.d.ts +28 -23
- package/cjs/BlueCore_pb.js +16 -15
- package/cjs/BlueSystem_pb.d.ts +51 -86
- package/cjs/BlueSystem_pb.js +37 -40
- package/es/BlueCore_pb.d.ts +28 -23
- package/es/BlueCore_pb.js +10 -9
- package/es/BlueSystem_pb.d.ts +51 -86
- package/es/BlueSystem_pb.js +22 -34
- package/nanopb/BlueCore.pb.c +2 -2
- package/nanopb/BlueCore.pb.h +88 -83
- package/nanopb/BlueLock.pb.c +1 -1
- package/nanopb/BlueLock.pb.h +1 -1
- package/nanopb/BlueSystem.pb.c +5 -6
- package/nanopb/BlueSystem.pb.h +100 -139
- package/package.json +1 -1
- package/swift/BlueCore.pb.swift +44 -36
- package/swift/BlueSystem.pb.swift +174 -217
package/nanopb/BlueCore.pb.h
CHANGED
|
@@ -246,31 +246,32 @@ typedef struct BlueSharedDemoData {
|
|
|
246
246
|
|
|
247
247
|
typedef struct BlueVersionInfo {
|
|
248
248
|
uint32_t buildTime;
|
|
249
|
-
|
|
249
|
+
uint16_t version;
|
|
250
250
|
} BlueVersionInfo_t;
|
|
251
251
|
|
|
252
252
|
typedef struct BlueLocalTimestamp {
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
253
|
+
uint16_t year;
|
|
254
|
+
uint8_t month;
|
|
255
|
+
uint8_t date;
|
|
256
|
+
uint8_t hours;
|
|
257
|
+
uint8_t minutes;
|
|
258
|
+
uint8_t seconds;
|
|
259
259
|
} BlueLocalTimestamp_t;
|
|
260
260
|
|
|
261
261
|
typedef struct BlueLocalTimeperiod {
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
262
|
+
uint8_t hoursFrom;
|
|
263
|
+
uint8_t minutesFrom;
|
|
264
|
+
uint8_t hoursTo;
|
|
265
|
+
uint8_t minutesTo;
|
|
266
266
|
} BlueLocalTimeperiod_t;
|
|
267
267
|
|
|
268
268
|
typedef struct BlueLocalTimeSchedule {
|
|
269
269
|
/* Day of year is always 1-366, to spawn whole year make 1->366 */
|
|
270
|
-
|
|
271
|
-
|
|
270
|
+
uint16_t dayOfYearStart;
|
|
271
|
+
uint16_t dayOfYearEnd;
|
|
272
272
|
/* See BlueWeekday -> byte 0 = Monday, etc. */
|
|
273
|
-
|
|
273
|
+
pb_size_t weekdays_count;
|
|
274
|
+
bool weekdays[7];
|
|
274
275
|
BlueLocalTimeperiod_t timePeriod;
|
|
275
276
|
} BlueLocalTimeSchedule_t;
|
|
276
277
|
|
|
@@ -286,15 +287,16 @@ typedef struct BlueBlacklistEntry {
|
|
|
286
287
|
typedef struct BlueBleManufacturerInfo {
|
|
287
288
|
BlueHardwareType_t hardwareType;
|
|
288
289
|
BlueBatteryLevel_t batteryLevel;
|
|
289
|
-
|
|
290
|
+
uint16_t applicationVersion;
|
|
290
291
|
uint32_t localMidnightTimeEpoch;
|
|
292
|
+
bool isFactory;
|
|
291
293
|
} BlueBleManufacturerInfo_t;
|
|
292
294
|
|
|
293
295
|
typedef struct BlueBleAdvertisementInfo {
|
|
294
296
|
/* Unique device id becomes the local name */
|
|
295
297
|
char deviceId[9];
|
|
296
298
|
/* The advertised tx power level at 1 meter in decibel (-XX - +XX) */
|
|
297
|
-
|
|
299
|
+
int8_t txPower1Meter;
|
|
298
300
|
/* If set generates iBeacon format otherwise generates regular ble adv data */
|
|
299
301
|
bool isIBeacon;
|
|
300
302
|
/* The manufacturer information */
|
|
@@ -324,14 +326,14 @@ typedef struct BlueSPHandshakeReply {
|
|
|
324
326
|
BlueSPHandshakeReply_terminalSignature_t terminalSignature;
|
|
325
327
|
} BlueSPHandshakeReply_t;
|
|
326
328
|
|
|
327
|
-
typedef PB_BYTES_ARRAY_T(1792)
|
|
328
|
-
typedef struct
|
|
329
|
+
typedef PB_BYTES_ARRAY_T(1792) BlueSPTokenCommand_data_t;
|
|
330
|
+
typedef struct BlueSPTokenCommand {
|
|
329
331
|
BlueCredentialId_t credentialId;
|
|
330
332
|
BlueLocalTimestamp_t validityStart;
|
|
331
333
|
BlueLocalTimestamp_t validityEnd;
|
|
332
334
|
char command[9];
|
|
333
|
-
|
|
334
|
-
}
|
|
335
|
+
BlueSPTokenCommand_data_t data; /* we'll add 256b for add. data */
|
|
336
|
+
} BlueSPTokenCommand_t;
|
|
335
337
|
|
|
336
338
|
typedef PB_BYTES_ARRAY_T(1792) BlueSPResult_data_t;
|
|
337
339
|
typedef struct BlueSPResult {
|
|
@@ -465,7 +467,8 @@ typedef struct BlueOssSoCredentialType {
|
|
|
465
467
|
} BlueOssSoCredentialType_t;
|
|
466
468
|
|
|
467
469
|
typedef struct BlueOssSoDTScheduleDay {
|
|
468
|
-
/*
|
|
470
|
+
/* See BlueWeekday -> byte 0 = Monday, etc. */
|
|
471
|
+
pb_size_t weekdays_count;
|
|
469
472
|
bool weekdays[7];
|
|
470
473
|
pb_size_t timePeriods_count;
|
|
471
474
|
BlueLocalTimeperiod_t timePeriods[4];
|
|
@@ -605,16 +608,16 @@ typedef struct BlueOssSoMobile {
|
|
|
605
608
|
BlueOssSoMobile_customerExtensionsFile_t customerExtensionsFile;
|
|
606
609
|
} BlueOssSoMobile_t;
|
|
607
610
|
|
|
608
|
-
typedef PB_BYTES_ARRAY_T(74)
|
|
609
|
-
typedef struct
|
|
610
|
-
|
|
611
|
+
typedef PB_BYTES_ARRAY_T(74) BlueSPToken_signature_t;
|
|
612
|
+
typedef struct BlueSPToken {
|
|
613
|
+
BlueSPToken_signature_t signature;
|
|
611
614
|
pb_size_t which_payload;
|
|
612
615
|
union {
|
|
613
|
-
|
|
616
|
+
BlueSPTokenCommand_t command;
|
|
614
617
|
BlueOssSoMobile_t ossSo;
|
|
615
618
|
BlueOssSidMobile_t ossSid;
|
|
616
619
|
} payload;
|
|
617
|
-
}
|
|
620
|
+
} BlueSPToken_t;
|
|
618
621
|
|
|
619
622
|
typedef struct BlueOssSoMobileProvisioningConfiguration {
|
|
620
623
|
uint32_t numberOfDoors;
|
|
@@ -801,16 +804,16 @@ extern "C" {
|
|
|
801
804
|
#define BLUEVERSIONINFO_INIT_DEFAULT {0, 0}
|
|
802
805
|
#define BLUELOCALTIMESTAMP_INIT_DEFAULT {0, 0, 0, 0, 0, 0u}
|
|
803
806
|
#define BLUELOCALTIMEPERIOD_INIT_DEFAULT {0, 0, 0, 0}
|
|
804
|
-
#define BLUELOCALTIMESCHEDULE_INIT_DEFAULT {0, 0, {0}, BLUELOCALTIMEPERIOD_INIT_DEFAULT}
|
|
807
|
+
#define BLUELOCALTIMESCHEDULE_INIT_DEFAULT {0, 0, 0, {0, 0, 0, 0, 0, 0, 0}, BLUELOCALTIMEPERIOD_INIT_DEFAULT}
|
|
805
808
|
#define BLUECREDENTIALID_INIT_DEFAULT {""}
|
|
806
809
|
#define BLUEBLACKLISTENTRY_INIT_DEFAULT {BLUECREDENTIALID_INIT_DEFAULT, BLUELOCALTIMESTAMP_INIT_DEFAULT}
|
|
807
|
-
#define BLUEBLEMANUFACTURERINFO_INIT_DEFAULT {_BLUEHARDWARETYPE_MIN, _BLUEBATTERYLEVEL_MIN, 0, 0}
|
|
810
|
+
#define BLUEBLEMANUFACTURERINFO_INIT_DEFAULT {_BLUEHARDWARETYPE_MIN, _BLUEBATTERYLEVEL_MIN, 0, 0, 0}
|
|
808
811
|
#define BLUEBLEADVERTISEMENTINFO_INIT_DEFAULT {"", 0, 0, BLUEBLEMANUFACTURERINFO_INIT_DEFAULT}
|
|
809
812
|
#define BLUEEVENT_INIT_DEFAULT {0, BLUELOCALTIMESTAMP_INIT_DEFAULT, _BLUEEVENTID_MIN, 0, false, "", false, ""}
|
|
810
813
|
#define BLUESPHANDSHAKE_INIT_DEFAULT {{0}}
|
|
811
814
|
#define BLUESPHANDSHAKEREPLY_INIT_DEFAULT {{0}, {0, {0}}}
|
|
812
|
-
#define
|
|
813
|
-
#define
|
|
815
|
+
#define BLUESPTOKENCOMMAND_INIT_DEFAULT {BLUECREDENTIALID_INIT_DEFAULT, BLUELOCALTIMESTAMP_INIT_DEFAULT, BLUELOCALTIMESTAMP_INIT_DEFAULT, "", {0, {0}}}
|
|
816
|
+
#define BLUESPTOKEN_INIT_DEFAULT {{0, {0}}, 0, {BLUESPTOKENCOMMAND_INIT_DEFAULT}}
|
|
814
817
|
#define BLUESPRESULT_INIT_DEFAULT {{0, {0}}}
|
|
815
818
|
#define BLUEOSSACCESSRESULT_INIT_DEFAULT {0, _BLUEACCESSTYPE_MIN, BLUELOCALTIMESTAMP_INIT_DEFAULT, 0}
|
|
816
819
|
#define BLUEOSSSIDVERSION_INIT_DEFAULT {false, 1u, false, 0u}
|
|
@@ -831,7 +834,7 @@ extern "C" {
|
|
|
831
834
|
#define BLUEOSSSOCREDENTIALTYPEOSS_INIT_DEFAULT {_BLUEOSSSOCREDENTIALTYPEOSSCREDENTIAL_MIN}
|
|
832
835
|
#define BLUEOSSSOCREDENTIALTYPEPROPRIETARY_INIT_DEFAULT {{0}}
|
|
833
836
|
#define BLUEOSSSOCREDENTIALTYPE_INIT_DEFAULT {_BLUEOSSCREDENTIALTYPESOURCE_MIN, false, BLUEOSSSOCREDENTIALTYPEOSS_INIT_DEFAULT, false, BLUEOSSSOCREDENTIALTYPEPROPRIETARY_INIT_DEFAULT}
|
|
834
|
-
#define BLUEOSSSODTSCHEDULEDAY_INIT_DEFAULT {{0, 0, 0, 0, 0, 0, 0}, 0, {BLUELOCALTIMEPERIOD_INIT_DEFAULT, BLUELOCALTIMEPERIOD_INIT_DEFAULT, BLUELOCALTIMEPERIOD_INIT_DEFAULT, BLUELOCALTIMEPERIOD_INIT_DEFAULT}}
|
|
837
|
+
#define BLUEOSSSODTSCHEDULEDAY_INIT_DEFAULT {0, {0, 0, 0, 0, 0, 0, 0}, 0, {BLUELOCALTIMEPERIOD_INIT_DEFAULT, BLUELOCALTIMEPERIOD_INIT_DEFAULT, BLUELOCALTIMEPERIOD_INIT_DEFAULT, BLUELOCALTIMEPERIOD_INIT_DEFAULT}}
|
|
835
838
|
#define BLUEOSSSODTSCHEDULE_INIT_DEFAULT {0, {BLUEOSSSODTSCHEDULEDAY_INIT_DEFAULT, BLUEOSSSODTSCHEDULEDAY_INIT_DEFAULT, BLUEOSSSODTSCHEDULEDAY_INIT_DEFAULT, BLUEOSSSODTSCHEDULEDAY_INIT_DEFAULT}}
|
|
836
839
|
#define BLUEOSSSODOORINFO_INIT_DEFAULT {0, _BLUEOSSSODOORINFOACCESSBY_MIN, 0, _BLUEACCESSTYPE_MIN}
|
|
837
840
|
#define BLUEOSSSOEVENT_INIT_DEFAULT {BLUELOCALTIMESTAMP_INIT_DEFAULT, 0, _BLUEEVENTID_MIN, 0}
|
|
@@ -856,16 +859,16 @@ extern "C" {
|
|
|
856
859
|
#define BLUEVERSIONINFO_INIT_ZERO {0, 0}
|
|
857
860
|
#define BLUELOCALTIMESTAMP_INIT_ZERO {0, 0, 0, 0, 0, 0}
|
|
858
861
|
#define BLUELOCALTIMEPERIOD_INIT_ZERO {0, 0, 0, 0}
|
|
859
|
-
#define BLUELOCALTIMESCHEDULE_INIT_ZERO {0, 0, {0}, BLUELOCALTIMEPERIOD_INIT_ZERO}
|
|
862
|
+
#define BLUELOCALTIMESCHEDULE_INIT_ZERO {0, 0, 0, {0, 0, 0, 0, 0, 0, 0}, BLUELOCALTIMEPERIOD_INIT_ZERO}
|
|
860
863
|
#define BLUECREDENTIALID_INIT_ZERO {""}
|
|
861
864
|
#define BLUEBLACKLISTENTRY_INIT_ZERO {BLUECREDENTIALID_INIT_ZERO, BLUELOCALTIMESTAMP_INIT_ZERO}
|
|
862
|
-
#define BLUEBLEMANUFACTURERINFO_INIT_ZERO {_BLUEHARDWARETYPE_MIN, _BLUEBATTERYLEVEL_MIN, 0, 0}
|
|
865
|
+
#define BLUEBLEMANUFACTURERINFO_INIT_ZERO {_BLUEHARDWARETYPE_MIN, _BLUEBATTERYLEVEL_MIN, 0, 0, 0}
|
|
863
866
|
#define BLUEBLEADVERTISEMENTINFO_INIT_ZERO {"", 0, 0, BLUEBLEMANUFACTURERINFO_INIT_ZERO}
|
|
864
867
|
#define BLUEEVENT_INIT_ZERO {0, BLUELOCALTIMESTAMP_INIT_ZERO, _BLUEEVENTID_MIN, 0, false, "", false, ""}
|
|
865
868
|
#define BLUESPHANDSHAKE_INIT_ZERO {{0}}
|
|
866
869
|
#define BLUESPHANDSHAKEREPLY_INIT_ZERO {{0}, {0, {0}}}
|
|
867
|
-
#define
|
|
868
|
-
#define
|
|
870
|
+
#define BLUESPTOKENCOMMAND_INIT_ZERO {BLUECREDENTIALID_INIT_ZERO, BLUELOCALTIMESTAMP_INIT_ZERO, BLUELOCALTIMESTAMP_INIT_ZERO, "", {0, {0}}}
|
|
871
|
+
#define BLUESPTOKEN_INIT_ZERO {{0, {0}}, 0, {BLUESPTOKENCOMMAND_INIT_ZERO}}
|
|
869
872
|
#define BLUESPRESULT_INIT_ZERO {{0, {0}}}
|
|
870
873
|
#define BLUEOSSACCESSRESULT_INIT_ZERO {0, _BLUEACCESSTYPE_MIN, BLUELOCALTIMESTAMP_INIT_ZERO, 0}
|
|
871
874
|
#define BLUEOSSSIDVERSION_INIT_ZERO {false, 0, false, 0}
|
|
@@ -886,7 +889,7 @@ extern "C" {
|
|
|
886
889
|
#define BLUEOSSSOCREDENTIALTYPEOSS_INIT_ZERO {_BLUEOSSSOCREDENTIALTYPEOSSCREDENTIAL_MIN}
|
|
887
890
|
#define BLUEOSSSOCREDENTIALTYPEPROPRIETARY_INIT_ZERO {{0}}
|
|
888
891
|
#define BLUEOSSSOCREDENTIALTYPE_INIT_ZERO {_BLUEOSSCREDENTIALTYPESOURCE_MIN, false, BLUEOSSSOCREDENTIALTYPEOSS_INIT_ZERO, false, BLUEOSSSOCREDENTIALTYPEPROPRIETARY_INIT_ZERO}
|
|
889
|
-
#define BLUEOSSSODTSCHEDULEDAY_INIT_ZERO {{0, 0, 0, 0, 0, 0, 0}, 0, {BLUELOCALTIMEPERIOD_INIT_ZERO, BLUELOCALTIMEPERIOD_INIT_ZERO, BLUELOCALTIMEPERIOD_INIT_ZERO, BLUELOCALTIMEPERIOD_INIT_ZERO}}
|
|
892
|
+
#define BLUEOSSSODTSCHEDULEDAY_INIT_ZERO {0, {0, 0, 0, 0, 0, 0, 0}, 0, {BLUELOCALTIMEPERIOD_INIT_ZERO, BLUELOCALTIMEPERIOD_INIT_ZERO, BLUELOCALTIMEPERIOD_INIT_ZERO, BLUELOCALTIMEPERIOD_INIT_ZERO}}
|
|
890
893
|
#define BLUEOSSSODTSCHEDULE_INIT_ZERO {0, {BLUEOSSSODTSCHEDULEDAY_INIT_ZERO, BLUEOSSSODTSCHEDULEDAY_INIT_ZERO, BLUEOSSSODTSCHEDULEDAY_INIT_ZERO, BLUEOSSSODTSCHEDULEDAY_INIT_ZERO}}
|
|
891
894
|
#define BLUEOSSSODOORINFO_INIT_ZERO {0, _BLUEOSSSODOORINFOACCESSBY_MIN, 0, _BLUEACCESSTYPE_MIN}
|
|
892
895
|
#define BLUEOSSSOEVENT_INIT_ZERO {BLUELOCALTIMESTAMP_INIT_ZERO, 0, _BLUEEVENTID_MIN, 0}
|
|
@@ -937,6 +940,7 @@ extern "C" {
|
|
|
937
940
|
#define BLUEBLEMANUFACTURERINFO_BATTERYLEVEL_TAG 2
|
|
938
941
|
#define BLUEBLEMANUFACTURERINFO_APPLICATIONVERSION_TAG 3
|
|
939
942
|
#define BLUEBLEMANUFACTURERINFO_LOCALMIDNIGHTTIMEEPOCH_TAG 4
|
|
943
|
+
#define BLUEBLEMANUFACTURERINFO_ISFACTORY_TAG 5
|
|
940
944
|
#define BLUEBLEADVERTISEMENTINFO_DEVICEID_TAG 1
|
|
941
945
|
#define BLUEBLEADVERTISEMENTINFO_TXPOWER1METER_TAG 2
|
|
942
946
|
#define BLUEBLEADVERTISEMENTINFO_ISIBEACON_TAG 3
|
|
@@ -950,11 +954,11 @@ extern "C" {
|
|
|
950
954
|
#define BLUESPHANDSHAKE_TRANSPONDERSALT_TAG 1
|
|
951
955
|
#define BLUESPHANDSHAKEREPLY_TERMINALSALT_TAG 1
|
|
952
956
|
#define BLUESPHANDSHAKEREPLY_TERMINALSIGNATURE_TAG 2
|
|
953
|
-
#define
|
|
954
|
-
#define
|
|
955
|
-
#define
|
|
956
|
-
#define
|
|
957
|
-
#define
|
|
957
|
+
#define BLUESPTOKENCOMMAND_CREDENTIALID_TAG 1
|
|
958
|
+
#define BLUESPTOKENCOMMAND_VALIDITYSTART_TAG 2
|
|
959
|
+
#define BLUESPTOKENCOMMAND_VALIDITYEND_TAG 3
|
|
960
|
+
#define BLUESPTOKENCOMMAND_COMMAND_TAG 4
|
|
961
|
+
#define BLUESPTOKENCOMMAND_DATA_TAG 5
|
|
958
962
|
#define BLUESPRESULT_DATA_TAG 1
|
|
959
963
|
#define BLUEOSSACCESSRESULT_ACCESSGRANTED_TAG 1
|
|
960
964
|
#define BLUEOSSACCESSRESULT_ACCESSTYPE_TAG 2
|
|
@@ -995,7 +999,7 @@ extern "C" {
|
|
|
995
999
|
#define BLUEOSSSOCREDENTIALTYPE_TYPESOURCE_TAG 1
|
|
996
1000
|
#define BLUEOSSSOCREDENTIALTYPE_OSS_TAG 2
|
|
997
1001
|
#define BLUEOSSSOCREDENTIALTYPE_PROPRIETARY_TAG 3
|
|
998
|
-
#define BLUEOSSSODTSCHEDULEDAY_WEEKDAYS_TAG
|
|
1002
|
+
#define BLUEOSSSODTSCHEDULEDAY_WEEKDAYS_TAG 3
|
|
999
1003
|
#define BLUEOSSSODTSCHEDULEDAY_TIMEPERIODS_TAG 8
|
|
1000
1004
|
#define BLUEOSSSODTSCHEDULE_DAYS_TAG 1
|
|
1001
1005
|
#define BLUEOSSSODOORINFO_ID_TAG 1
|
|
@@ -1061,10 +1065,10 @@ extern "C" {
|
|
|
1061
1065
|
#define BLUEOSSSOMOBILE_DATAFILE_TAG 2
|
|
1062
1066
|
#define BLUEOSSSOMOBILE_BLACKLISTFILE_TAG 3
|
|
1063
1067
|
#define BLUEOSSSOMOBILE_CUSTOMEREXTENSIONSFILE_TAG 4
|
|
1064
|
-
#define
|
|
1065
|
-
#define
|
|
1066
|
-
#define
|
|
1067
|
-
#define
|
|
1068
|
+
#define BLUESPTOKEN_SIGNATURE_TAG 1
|
|
1069
|
+
#define BLUESPTOKEN_COMMAND_TAG 2
|
|
1070
|
+
#define BLUESPTOKEN_OSSSO_TAG 3
|
|
1071
|
+
#define BLUESPTOKEN_OSSSID_TAG 4
|
|
1068
1072
|
#define BLUEOSSSOMOBILEPROVISIONINGCONFIGURATION_NUMBEROFDOORS_TAG 1
|
|
1069
1073
|
#define BLUEOSSSOMOBILEPROVISIONINGCONFIGURATION_NUMBEROFDTSCHEDULES_TAG 2
|
|
1070
1074
|
#define BLUEOSSSOMOBILEPROVISIONINGCONFIGURATION_NUMBEROFDAYIDSPERDTSCHEDULE_TAG 3
|
|
@@ -1128,7 +1132,7 @@ X(a, STATIC, REQUIRED, UINT32, minutesTo, 4)
|
|
|
1128
1132
|
#define BLUELOCALTIMESCHEDULE_FIELDLIST(X, a) \
|
|
1129
1133
|
X(a, STATIC, REQUIRED, UINT32, dayOfYearStart, 1) \
|
|
1130
1134
|
X(a, STATIC, REQUIRED, UINT32, dayOfYearEnd, 2) \
|
|
1131
|
-
X(a, STATIC,
|
|
1135
|
+
X(a, STATIC, REPEATED, BOOL, weekdays, 3) \
|
|
1132
1136
|
X(a, STATIC, REQUIRED, MESSAGE, timePeriod, 4)
|
|
1133
1137
|
#define BLUELOCALTIMESCHEDULE_CALLBACK NULL
|
|
1134
1138
|
#define BLUELOCALTIMESCHEDULE_DEFAULT NULL
|
|
@@ -1151,7 +1155,8 @@ X(a, STATIC, REQUIRED, MESSAGE, expiresAt, 2)
|
|
|
1151
1155
|
X(a, STATIC, REQUIRED, UENUM, hardwareType, 1) \
|
|
1152
1156
|
X(a, STATIC, REQUIRED, UENUM, batteryLevel, 2) \
|
|
1153
1157
|
X(a, STATIC, REQUIRED, UINT32, applicationVersion, 3) \
|
|
1154
|
-
X(a, STATIC, REQUIRED, UINT32, localMidnightTimeEpoch, 4)
|
|
1158
|
+
X(a, STATIC, REQUIRED, UINT32, localMidnightTimeEpoch, 4) \
|
|
1159
|
+
X(a, STATIC, REQUIRED, BOOL, isFactory, 5)
|
|
1155
1160
|
#define BLUEBLEMANUFACTURERINFO_CALLBACK NULL
|
|
1156
1161
|
#define BLUEBLEMANUFACTURERINFO_DEFAULT NULL
|
|
1157
1162
|
|
|
@@ -1186,28 +1191,28 @@ X(a, STATIC, REQUIRED, BYTES, terminalSignature, 2)
|
|
|
1186
1191
|
#define BLUESPHANDSHAKEREPLY_CALLBACK NULL
|
|
1187
1192
|
#define BLUESPHANDSHAKEREPLY_DEFAULT NULL
|
|
1188
1193
|
|
|
1189
|
-
#define
|
|
1194
|
+
#define BLUESPTOKENCOMMAND_FIELDLIST(X, a) \
|
|
1190
1195
|
X(a, STATIC, REQUIRED, MESSAGE, credentialId, 1) \
|
|
1191
1196
|
X(a, STATIC, REQUIRED, MESSAGE, validityStart, 2) \
|
|
1192
1197
|
X(a, STATIC, REQUIRED, MESSAGE, validityEnd, 3) \
|
|
1193
1198
|
X(a, STATIC, REQUIRED, STRING, command, 4) \
|
|
1194
1199
|
X(a, STATIC, REQUIRED, BYTES, data, 5)
|
|
1195
|
-
#define
|
|
1196
|
-
#define
|
|
1197
|
-
#define
|
|
1198
|
-
#define
|
|
1199
|
-
#define
|
|
1200
|
+
#define BLUESPTOKENCOMMAND_CALLBACK NULL
|
|
1201
|
+
#define BLUESPTOKENCOMMAND_DEFAULT NULL
|
|
1202
|
+
#define BlueSPTokenCommand_t_credentialId_MSGTYPE BlueCredentialId_t
|
|
1203
|
+
#define BlueSPTokenCommand_t_validityStart_MSGTYPE BlueLocalTimestamp_t
|
|
1204
|
+
#define BlueSPTokenCommand_t_validityEnd_MSGTYPE BlueLocalTimestamp_t
|
|
1200
1205
|
|
|
1201
|
-
#define
|
|
1206
|
+
#define BLUESPTOKEN_FIELDLIST(X, a) \
|
|
1202
1207
|
X(a, STATIC, REQUIRED, BYTES, signature, 1) \
|
|
1203
1208
|
X(a, STATIC, ONEOF, MESSAGE, (payload,command,payload.command), 2) \
|
|
1204
1209
|
X(a, STATIC, ONEOF, MESSAGE, (payload,ossSo,payload.ossSo), 3) \
|
|
1205
1210
|
X(a, STATIC, ONEOF, MESSAGE, (payload,ossSid,payload.ossSid), 4)
|
|
1206
|
-
#define
|
|
1207
|
-
#define
|
|
1208
|
-
#define
|
|
1209
|
-
#define
|
|
1210
|
-
#define
|
|
1211
|
+
#define BLUESPTOKEN_CALLBACK NULL
|
|
1212
|
+
#define BLUESPTOKEN_DEFAULT NULL
|
|
1213
|
+
#define BlueSPToken_t_payload_command_MSGTYPE BlueSPTokenCommand_t
|
|
1214
|
+
#define BlueSPToken_t_payload_ossSo_MSGTYPE BlueOssSoMobile_t
|
|
1215
|
+
#define BlueSPToken_t_payload_ossSid_MSGTYPE BlueOssSidMobile_t
|
|
1211
1216
|
|
|
1212
1217
|
#define BLUESPRESULT_FIELDLIST(X, a) \
|
|
1213
1218
|
X(a, STATIC, REQUIRED, BYTES, data, 1)
|
|
@@ -1342,7 +1347,7 @@ X(a, STATIC, OPTIONAL, MESSAGE, proprietary, 3)
|
|
|
1342
1347
|
#define BlueOssSoCredentialType_t_proprietary_MSGTYPE BlueOssSoCredentialTypeProprietary_t
|
|
1343
1348
|
|
|
1344
1349
|
#define BLUEOSSSODTSCHEDULEDAY_FIELDLIST(X, a) \
|
|
1345
|
-
X(a, STATIC,
|
|
1350
|
+
X(a, STATIC, REPEATED, BOOL, weekdays, 3) \
|
|
1346
1351
|
X(a, STATIC, REPEATED, MESSAGE, timePeriods, 8)
|
|
1347
1352
|
#define BLUEOSSSODTSCHEDULEDAY_CALLBACK NULL
|
|
1348
1353
|
#define BLUEOSSSODTSCHEDULEDAY_DEFAULT NULL
|
|
@@ -1550,8 +1555,8 @@ extern const pb_msgdesc_t BlueBleAdvertisementInfo_t_msg;
|
|
|
1550
1555
|
extern const pb_msgdesc_t BlueEvent_t_msg;
|
|
1551
1556
|
extern const pb_msgdesc_t BlueSPHandshake_t_msg;
|
|
1552
1557
|
extern const pb_msgdesc_t BlueSPHandshakeReply_t_msg;
|
|
1553
|
-
extern const pb_msgdesc_t
|
|
1554
|
-
extern const pb_msgdesc_t
|
|
1558
|
+
extern const pb_msgdesc_t BlueSPTokenCommand_t_msg;
|
|
1559
|
+
extern const pb_msgdesc_t BlueSPToken_t_msg;
|
|
1555
1560
|
extern const pb_msgdesc_t BlueSPResult_t_msg;
|
|
1556
1561
|
extern const pb_msgdesc_t BlueOssAccessResult_t_msg;
|
|
1557
1562
|
extern const pb_msgdesc_t BlueOssSidVersion_t_msg;
|
|
@@ -1607,8 +1612,8 @@ extern const pb_msgdesc_t _BlueTestEncodeDecode_t_msg;
|
|
|
1607
1612
|
#define BLUEEVENT_FIELDS &BlueEvent_t_msg
|
|
1608
1613
|
#define BLUESPHANDSHAKE_FIELDS &BlueSPHandshake_t_msg
|
|
1609
1614
|
#define BLUESPHANDSHAKEREPLY_FIELDS &BlueSPHandshakeReply_t_msg
|
|
1610
|
-
#define
|
|
1611
|
-
#define
|
|
1615
|
+
#define BLUESPTOKENCOMMAND_FIELDS &BlueSPTokenCommand_t_msg
|
|
1616
|
+
#define BLUESPTOKEN_FIELDS &BlueSPToken_t_msg
|
|
1612
1617
|
#define BLUESPRESULT_FIELDS &BlueSPResult_t_msg
|
|
1613
1618
|
#define BLUEOSSACCESSRESULT_FIELDS &BlueOssAccessResult_t_msg
|
|
1614
1619
|
#define BLUEOSSSIDVERSION_FIELDS &BlueOssSidVersion_t_msg
|
|
@@ -1652,15 +1657,15 @@ extern const pb_msgdesc_t _BlueTestEncodeDecode_t_msg;
|
|
|
1652
1657
|
#define _BLUETESTENCODEDECODE_FIELDS &_BlueTestEncodeDecode_t_msg
|
|
1653
1658
|
|
|
1654
1659
|
/* Maximum encoded size of messages (where known) */
|
|
1655
|
-
#define BLUEBLACKLISTENTRY_SIZE
|
|
1660
|
+
#define BLUEBLACKLISTENTRY_SIZE 35
|
|
1656
1661
|
#define BLUEBLEADVERTISEMENTINFO_SIZE 42
|
|
1657
1662
|
#define BLUEBLEMANUFACTURERINFO_SIZE 17
|
|
1658
1663
|
#define BLUECREDENTIALID_SIZE 12
|
|
1659
|
-
#define BLUEEVENT_SIZE
|
|
1660
|
-
#define BLUELOCALTIMEPERIOD_SIZE
|
|
1661
|
-
#define BLUELOCALTIMESCHEDULE_SIZE
|
|
1662
|
-
#define BLUELOCALTIMESTAMP_SIZE
|
|
1663
|
-
#define BLUEOSSACCESSRESULT_SIZE
|
|
1664
|
+
#define BLUEEVENT_SIZE 62
|
|
1665
|
+
#define BLUELOCALTIMEPERIOD_SIZE 12
|
|
1666
|
+
#define BLUELOCALTIMESCHEDULE_SIZE 36
|
|
1667
|
+
#define BLUELOCALTIMESTAMP_SIZE 19
|
|
1668
|
+
#define BLUEOSSACCESSRESULT_SIZE 27
|
|
1664
1669
|
#define BLUEOSSSIDCONFIGURATION_SIZE 47
|
|
1665
1670
|
#define BLUEOSSSIDCREDENTIALTYPEOSS_SIZE 2
|
|
1666
1671
|
#define BLUEOSSSIDCREDENTIALTYPEPROPRIETARY_SIZE 9
|
|
@@ -1675,20 +1680,20 @@ extern const pb_msgdesc_t _BlueTestEncodeDecode_t_msg;
|
|
|
1675
1680
|
#define BLUEOSSSIDSETTINGS_SIZE 62
|
|
1676
1681
|
#define BLUEOSSSIDSTORAGEPROFILE_SIZE 24
|
|
1677
1682
|
#define BLUEOSSSIDVERSION_SIZE 12
|
|
1678
|
-
#define BLUEOSSSOCONFIGURATION_SIZE
|
|
1683
|
+
#define BLUEOSSSOCONFIGURATION_SIZE 28568
|
|
1679
1684
|
#define BLUEOSSSOCREDENTIALTYPEOSS_SIZE 2
|
|
1680
1685
|
#define BLUEOSSSOCREDENTIALTYPEPROPRIETARY_SIZE 9
|
|
1681
1686
|
#define BLUEOSSSOCREDENTIALTYPE_SIZE 17
|
|
1682
1687
|
#define BLUEOSSSODOORINFO_SIZE 16
|
|
1683
|
-
#define BLUEOSSSODTSCHEDULEDAY_SIZE
|
|
1684
|
-
#define BLUEOSSSODTSCHEDULE_SIZE
|
|
1685
|
-
#define BLUEOSSSOEVENT_SIZE
|
|
1688
|
+
#define BLUEOSSSODTSCHEDULEDAY_SIZE 70
|
|
1689
|
+
#define BLUEOSSSODTSCHEDULE_SIZE 288
|
|
1690
|
+
#define BLUEOSSSOEVENT_SIZE 35
|
|
1686
1691
|
#define BLUEOSSSOEXTFEATURE_SIZE 72
|
|
1687
|
-
#define BLUEOSSSOEXTFEATURE_VALIDITYSTART_SIZE
|
|
1688
|
-
#define BLUEOSSSOFILEBLACKLIST_SIZE
|
|
1689
|
-
#define BLUEOSSSOFILECUSTOMEREXTENSIONS_SIZE
|
|
1690
|
-
#define BLUEOSSSOFILEDATA_SIZE
|
|
1691
|
-
#define BLUEOSSSOFILEEVENT_SIZE
|
|
1692
|
+
#define BLUEOSSSOEXTFEATURE_VALIDITYSTART_SIZE 23
|
|
1693
|
+
#define BLUEOSSSOFILEBLACKLIST_SIZE 9435
|
|
1694
|
+
#define BLUEOSSSOFILECUSTOMEREXTENSIONS_SIZE 617
|
|
1695
|
+
#define BLUEOSSSOFILEDATA_SIZE 8996
|
|
1696
|
+
#define BLUEOSSSOFILEEVENT_SIZE 9449
|
|
1692
1697
|
#define BLUEOSSSOFILEINFO_SIZE 57
|
|
1693
1698
|
#define BLUEOSSSOMIFAREDESFIRECONFIGURATION_SIZE 60
|
|
1694
1699
|
#define BLUEOSSSOMIFAREDESFIREPROVISIONINGCONFIGURATION_SIZE 56
|
|
@@ -1700,12 +1705,12 @@ extern const pb_msgdesc_t _BlueTestEncodeDecode_t_msg;
|
|
|
1700
1705
|
#define BLUEOSSSOSTORAGEPROFILE_SIZE 72
|
|
1701
1706
|
#define BLUEOSSSOVERSION_SIZE 12
|
|
1702
1707
|
#define BLUESHAREDDEMODATA_SIZE 540
|
|
1703
|
-
#define BLUESPDATACOMMAND_SIZE 1895
|
|
1704
|
-
#define BLUESPDATA_SIZE 1974
|
|
1705
1708
|
#define BLUESPHANDSHAKEREPLY_SIZE 94
|
|
1706
1709
|
#define BLUESPHANDSHAKE_SIZE 18
|
|
1707
1710
|
#define BLUESPRESULT_SIZE 1795
|
|
1708
|
-
#define
|
|
1711
|
+
#define BLUESPTOKENCOMMAND_SIZE 1861
|
|
1712
|
+
#define BLUESPTOKEN_SIZE 1940
|
|
1713
|
+
#define BLUEVERSIONINFO_SIZE 10
|
|
1709
1714
|
#define _BLUETESTENCODEDECODE_SIZE 90
|
|
1710
1715
|
|
|
1711
1716
|
#ifdef __cplusplus
|
package/nanopb/BlueLock.pb.c
CHANGED
package/nanopb/BlueLock.pb.h
CHANGED
|
@@ -94,7 +94,7 @@ extern const pb_msgdesc_t BlueLockStatus_t_msg;
|
|
|
94
94
|
#define BLUELOCKSTATUS_FIELDS &BlueLockStatus_t_msg
|
|
95
95
|
|
|
96
96
|
/* Maximum encoded size of messages (where known) */
|
|
97
|
-
#define BLUELOCKCONFIG_SIZE
|
|
97
|
+
#define BLUELOCKCONFIG_SIZE 294
|
|
98
98
|
#define BLUELOCKSTATUS_SIZE 8
|
|
99
99
|
|
|
100
100
|
#ifdef __cplusplus
|
package/nanopb/BlueSystem.pb.c
CHANGED
|
@@ -6,19 +6,19 @@
|
|
|
6
6
|
#error Regenerate this file with the current version of nanopb generator.
|
|
7
7
|
#endif
|
|
8
8
|
|
|
9
|
-
PB_BIND(BLUETIMEOFFSETPERIOD, BlueTimeOffsetPeriod_t, AUTO)
|
|
10
|
-
|
|
11
|
-
|
|
12
9
|
PB_BIND(BLUEBASECONFIG, BlueBaseConfig_t, AUTO)
|
|
13
10
|
|
|
14
11
|
|
|
15
12
|
PB_BIND(BLUEBLECONFIG, BlueBleConfig_t, 2)
|
|
16
13
|
|
|
17
14
|
|
|
18
|
-
PB_BIND(BLUEONLINECONFIG, BlueOnlineConfig_t,
|
|
15
|
+
PB_BIND(BLUEONLINECONFIG, BlueOnlineConfig_t, 2)
|
|
16
|
+
|
|
19
17
|
|
|
18
|
+
PB_BIND(BLUEACCESSCONFIGGROUP, BlueAccessConfigGroup_t, AUTO)
|
|
20
19
|
|
|
21
|
-
|
|
20
|
+
|
|
21
|
+
PB_BIND(BLUEACCESSCONFIG, BlueAccessConfig_t, 2)
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
PB_BIND(BLUEOSSCONFIG, BlueOssConfig_t, AUTO)
|
|
@@ -61,4 +61,3 @@ PB_BIND(BLUEBLACKLISTENTRIES, BlueBlacklistEntries_t, 2)
|
|
|
61
61
|
|
|
62
62
|
|
|
63
63
|
|
|
64
|
-
|