@blueid/access-proto 0.19.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 +2942 -0
- package/cjs/BlueCore_pb.js +1284 -0
- package/cjs/BlueLock_pb.d.ts +118 -0
- package/cjs/BlueLock_pb.js +58 -0
- package/cjs/BlueSDK_pb.d.ts +197 -0
- package/cjs/BlueSDK_pb.js +109 -0
- package/cjs/BlueSystem_pb.d.ts +878 -0
- package/cjs/BlueSystem_pb.js +391 -0
- package/cjs/index.d.ts +5 -0
- package/cjs/index.js +20 -0
- package/es/BlueCore_pb.d.ts +2942 -0
- package/es/BlueCore_pb.js +976 -0
- package/es/BlueLock_pb.d.ts +118 -0
- package/es/BlueLock_pb.js +46 -0
- package/es/BlueSDK_pb.d.ts +197 -0
- package/es/BlueSDK_pb.js +73 -0
- package/es/BlueSystem_pb.d.ts +878 -0
- package/es/BlueSystem_pb.js +260 -0
- package/es/index.d.ts +5 -0
- package/es/index.js +5 -0
- package/nanopb/BlueCore.pb.c +188 -0
- package/nanopb/BlueCore.pb.h +1720 -0
- package/nanopb/BlueLock.pb.c +16 -0
- package/nanopb/BlueLock.pb.h +104 -0
- package/nanopb/BlueSDK.pb.c +22 -0
- package/nanopb/BlueSDK.pb.h +159 -0
- package/nanopb/BlueSystem.pb.c +63 -0
- package/nanopb/BlueSystem.pb.h +592 -0
- package/package.json +1 -1
- package/swift/BlueCore.pb.swift +6848 -0
- package/swift/BlueLock.pb.swift +276 -0
- package/swift/BlueSDK.pb.swift +624 -0
- package/swift/BlueSystem.pb.swift +2446 -0
|
@@ -0,0 +1,592 @@
|
|
|
1
|
+
/* Automatically generated nanopb header */
|
|
2
|
+
/* Generated by nanopb-0.4.8-dev */
|
|
3
|
+
|
|
4
|
+
#ifndef PB_BLUESYSTEM_PB_H_INCLUDED
|
|
5
|
+
#define PB_BLUESYSTEM_PB_H_INCLUDED
|
|
6
|
+
#include "pb.h"
|
|
7
|
+
#include "BlueCore.pb.h"
|
|
8
|
+
#include "BlueLock.pb.h"
|
|
9
|
+
|
|
10
|
+
#if PB_PROTO_HEADER_VERSION != 40
|
|
11
|
+
#error Regenerate this file with the current version of nanopb generator.
|
|
12
|
+
#endif
|
|
13
|
+
|
|
14
|
+
/* Struct definitions */
|
|
15
|
+
typedef struct BlueBaseConfig {
|
|
16
|
+
char isoCountry[3];
|
|
17
|
+
char isoState[4];
|
|
18
|
+
int16_t utcOffsetMinutes;
|
|
19
|
+
/* If enabled this will check the system-status every 24-hours and
|
|
20
|
+
react accordingly ie like when battery is running low opening the lock
|
|
21
|
+
and logging accordingly etc */
|
|
22
|
+
bool autoCheckSystemStatus;
|
|
23
|
+
} BlueBaseConfig_t;
|
|
24
|
+
|
|
25
|
+
typedef struct BlueBleConfig {
|
|
26
|
+
/* Whether ble is enabled or not */
|
|
27
|
+
bool isAdvertising;
|
|
28
|
+
/* Optional schedule on when ble advertising is enabled, if none
|
|
29
|
+
set then ble is always on when enabled */
|
|
30
|
+
pb_size_t advertisingSchedules_count;
|
|
31
|
+
BlueLocalTimeSchedule_t advertisingSchedules[8];
|
|
32
|
+
/* Index of advertising schedules (starting at zero) where it should
|
|
33
|
+
use the max power level available for broader reach */
|
|
34
|
+
pb_size_t maxPowerAdvertisingSchedulesIndices_count;
|
|
35
|
+
uint8_t maxPowerAdvertisingSchedulesIndices[4];
|
|
36
|
+
/* The desired advertising interval in ms */
|
|
37
|
+
uint16_t advertisingIntervalMs;
|
|
38
|
+
/* The maximal connection timeout per connection in milliseconds */
|
|
39
|
+
uint16_t maxConnectionTimeoutMs;
|
|
40
|
+
/* The actual tx power level used for bluetooth from (0 - lowest) to 7
|
|
41
|
+
(highest) */
|
|
42
|
+
uint8_t txPowerLevel;
|
|
43
|
+
/* The advertised tx power level at 1 meter in decibel (-XX - +XX) */
|
|
44
|
+
int8_t advertisedTxPower1Meter;
|
|
45
|
+
/* If set then advertises as IBeacon otherwise uses regular advertising */
|
|
46
|
+
bool isIBeaconAdvertisement;
|
|
47
|
+
} BlueBleConfig_t;
|
|
48
|
+
|
|
49
|
+
typedef struct BlueOnlineConfig {
|
|
50
|
+
/* Schedules when it should go online for updating. Only applies to
|
|
51
|
+
battery-powered devices with wifi or gsm module. If no schedule is set will
|
|
52
|
+
never go online. The end time is not used. */
|
|
53
|
+
pb_size_t connectSchedules_count;
|
|
54
|
+
BlueLocalTimeSchedule_t connectSchedules[4];
|
|
55
|
+
/* The SSID of the wifi network */
|
|
56
|
+
char wifiSSID[33];
|
|
57
|
+
/* The wifi password */
|
|
58
|
+
char wifiPassword[33];
|
|
59
|
+
/* Default timeout for online connections */
|
|
60
|
+
uint16_t timeoutSec;
|
|
61
|
+
} BlueOnlineConfig_t;
|
|
62
|
+
|
|
63
|
+
typedef struct BlueAccessConfigGroup {
|
|
64
|
+
uint8_t groupId;
|
|
65
|
+
pb_size_t schedules_count;
|
|
66
|
+
BlueLocalTimeSchedule_t schedules[2];
|
|
67
|
+
} BlueAccessConfigGroup_t;
|
|
68
|
+
|
|
69
|
+
typedef struct BlueAccessConfig {
|
|
70
|
+
/* The device's unique access id */
|
|
71
|
+
uint8_t id;
|
|
72
|
+
/* The site id bound to this device */
|
|
73
|
+
uint8_t siteId;
|
|
74
|
+
/* The access groups this device is part of */
|
|
75
|
+
pb_size_t groups_count;
|
|
76
|
+
BlueAccessConfigGroup_t groups[10];
|
|
77
|
+
} BlueAccessConfig_t;
|
|
78
|
+
|
|
79
|
+
typedef struct BlueOssConfig { /* -- Oss SecureId -- */
|
|
80
|
+
/* The mifare aes-key for reading the oss secure id application, default is
|
|
81
|
+
the oss sid demo key */
|
|
82
|
+
pb_byte_t sidMifareAesKey[16];
|
|
83
|
+
/* The mifare application id for the oss secure id application, default is the
|
|
84
|
+
oss sid default aid. A value of 0 disables Oss Sid Mifare support. */
|
|
85
|
+
uint32_t sidMifareAid;
|
|
86
|
+
/* If set the system will try to connect online to refresh the presented oss
|
|
87
|
+
offline card if required as well as it will try to get and put the latest
|
|
88
|
+
blacklist on the card */
|
|
89
|
+
bool soUpdater;
|
|
90
|
+
/* If set the system will try to connect online if there are any events on a
|
|
91
|
+
presented card and transfer all events online */
|
|
92
|
+
bool soPushEvents;
|
|
93
|
+
/* If set the system will transfer pending events to an offline card */
|
|
94
|
+
bool soWritePendingEvents;
|
|
95
|
+
/* If set the system will update from the blacklist of an offline card */
|
|
96
|
+
bool soUpdateFromBlacklist;
|
|
97
|
+
/* The mifare aes-key for reading/writing the oss offline application, default
|
|
98
|
+
is the oss so demo key */
|
|
99
|
+
pb_byte_t soMifareAesKey[16];
|
|
100
|
+
/* The mifare application id for the oss offline application, default is the
|
|
101
|
+
oss so default aid. A value of 0 disables Oss So Mifare support. */
|
|
102
|
+
uint32_t soMifareAid;
|
|
103
|
+
} BlueOssConfig_t;
|
|
104
|
+
|
|
105
|
+
typedef struct BlueSystemConfig {
|
|
106
|
+
char configId[9];
|
|
107
|
+
/* -- Base */
|
|
108
|
+
BlueBaseConfig_t base;
|
|
109
|
+
BlueBleConfig_t ble;
|
|
110
|
+
BlueOnlineConfig_t online;
|
|
111
|
+
BlueAccessConfig_t access;
|
|
112
|
+
BlueOssConfig_t oss;
|
|
113
|
+
/* -- Custom */
|
|
114
|
+
bool has_lock;
|
|
115
|
+
BlueLockConfig_t lock;
|
|
116
|
+
} BlueSystemConfig_t;
|
|
117
|
+
|
|
118
|
+
typedef struct BlueSystemTimeUnix {
|
|
119
|
+
uint32_t epoch;
|
|
120
|
+
} BlueSystemTimeUnix_t;
|
|
121
|
+
|
|
122
|
+
typedef struct BlueSystemUpdate {
|
|
123
|
+
bool has_config;
|
|
124
|
+
BlueSystemConfig_t config;
|
|
125
|
+
bool has_timeUnix;
|
|
126
|
+
BlueSystemTimeUnix_t timeUnix;
|
|
127
|
+
} BlueSystemUpdate_t;
|
|
128
|
+
|
|
129
|
+
typedef struct BlueSystemSettings {
|
|
130
|
+
uint16_t blacklistMaxEntriesCount;
|
|
131
|
+
uint16_t blacklistEntriesCount;
|
|
132
|
+
uint16_t eventLogMaxEntriesCount;
|
|
133
|
+
uint16_t eventLogEntriesCount;
|
|
134
|
+
uint32_t eventLogSequenceId;
|
|
135
|
+
uint16_t eventLogIndex;
|
|
136
|
+
uint16_t systemLogMaxEntriesCount;
|
|
137
|
+
uint16_t systemLogEntriesCount;
|
|
138
|
+
uint32_t systemLogSequenceId;
|
|
139
|
+
uint16_t systemLogIndex;
|
|
140
|
+
bool timeWasSet;
|
|
141
|
+
bool isBatteryLow;
|
|
142
|
+
} BlueSystemSettings_t;
|
|
143
|
+
|
|
144
|
+
typedef PB_BYTES_ARRAY_T(160) BlueSystemProvisioning_terminalPrivateKey_t;
|
|
145
|
+
typedef PB_BYTES_ARRAY_T(100) BlueSystemProvisioning_signaturePublicKey_t;
|
|
146
|
+
typedef struct BlueSystemProvisioning {
|
|
147
|
+
BlueHardwareType_t hardwareType;
|
|
148
|
+
/* Unique id generated by blueid which identitifies this device (default set
|
|
149
|
+
from BlueSharedDemoKeys) */
|
|
150
|
+
char deviceId[9];
|
|
151
|
+
/* Serial-number which is vendor specific stored as hex */
|
|
152
|
+
char serialNumber[21];
|
|
153
|
+
/* Private key used for signing to proof authenticity of this device (default
|
|
154
|
+
set from BlueSharedDemoKeys) */
|
|
155
|
+
BlueSystemProvisioning_terminalPrivateKey_t terminalPrivateKey;
|
|
156
|
+
/* Public key used for verifying signatures being valid on this device
|
|
157
|
+
(default set from BlueSharedDemoKeys) */
|
|
158
|
+
BlueSystemProvisioning_signaturePublicKey_t signaturePublicKey;
|
|
159
|
+
} BlueSystemProvisioning_t;
|
|
160
|
+
|
|
161
|
+
typedef struct BlueSystemStatus {
|
|
162
|
+
char configId[9];
|
|
163
|
+
char deviceId[9];
|
|
164
|
+
char serialNumber[21];
|
|
165
|
+
BlueHardwareType_t hardwareType;
|
|
166
|
+
BlueBatteryLevel_t batteryLevel;
|
|
167
|
+
uint32_t applicationVersion;
|
|
168
|
+
BlueLocalTimestamp_t localTime;
|
|
169
|
+
BlueSystemSettings_t settings;
|
|
170
|
+
uint16_t blacklistEntriesCount;
|
|
171
|
+
uint16_t eventLogEntriesCount;
|
|
172
|
+
uint32_t eventLogSequenceId;
|
|
173
|
+
uint16_t systemLogEntriesCount;
|
|
174
|
+
uint32_t systemLogSequenceId;
|
|
175
|
+
/* -- Custom */
|
|
176
|
+
bool has_lock;
|
|
177
|
+
BlueLockStatus_t lock;
|
|
178
|
+
} BlueSystemStatus_t;
|
|
179
|
+
|
|
180
|
+
typedef struct BlueSystemLogQuery {
|
|
181
|
+
uint8_t maxCount;
|
|
182
|
+
pb_size_t which_start;
|
|
183
|
+
union {
|
|
184
|
+
uint32_t sequenceId;
|
|
185
|
+
bool fromHead; /* false = starts from tail */
|
|
186
|
+
} start;
|
|
187
|
+
} BlueSystemLogQuery_t;
|
|
188
|
+
|
|
189
|
+
typedef struct BlueSystemLogEntry {
|
|
190
|
+
uint32_t sequenceId;
|
|
191
|
+
BlueLocalTimestamp_t time;
|
|
192
|
+
uint8_t severity;
|
|
193
|
+
uint16_t line;
|
|
194
|
+
char file[21];
|
|
195
|
+
char message[95];
|
|
196
|
+
} BlueSystemLogEntry_t;
|
|
197
|
+
|
|
198
|
+
typedef struct BlueSystemLogResult {
|
|
199
|
+
pb_size_t entries_count;
|
|
200
|
+
BlueSystemLogEntry_t entries[10];
|
|
201
|
+
} BlueSystemLogResult_t;
|
|
202
|
+
|
|
203
|
+
typedef struct BlueEventLogQuery {
|
|
204
|
+
uint32_t maxCount;
|
|
205
|
+
pb_size_t which_start;
|
|
206
|
+
union {
|
|
207
|
+
uint32_t sequenceId;
|
|
208
|
+
bool fromHead; /* false = starts from tail */
|
|
209
|
+
} start;
|
|
210
|
+
} BlueEventLogQuery_t;
|
|
211
|
+
|
|
212
|
+
typedef struct BlueEventLogResult {
|
|
213
|
+
pb_size_t events_count;
|
|
214
|
+
BlueEvent_t events[50];
|
|
215
|
+
} BlueEventLogResult_t;
|
|
216
|
+
|
|
217
|
+
typedef struct BlueBlacklistEntries {
|
|
218
|
+
pb_size_t entries_count;
|
|
219
|
+
BlueBlacklistEntry_t entries[75];
|
|
220
|
+
} BlueBlacklistEntries_t;
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
#ifdef __cplusplus
|
|
224
|
+
extern "C" {
|
|
225
|
+
#endif
|
|
226
|
+
|
|
227
|
+
/* Initializer values for message structs */
|
|
228
|
+
#define BLUEBASECONFIG_INIT_DEFAULT {"", "", 0, false}
|
|
229
|
+
#define BLUEBLECONFIG_INIT_DEFAULT {true, 0, {BLUELOCALTIMESCHEDULE_INIT_DEFAULT, BLUELOCALTIMESCHEDULE_INIT_DEFAULT, BLUELOCALTIMESCHEDULE_INIT_DEFAULT, BLUELOCALTIMESCHEDULE_INIT_DEFAULT, BLUELOCALTIMESCHEDULE_INIT_DEFAULT, BLUELOCALTIMESCHEDULE_INIT_DEFAULT, BLUELOCALTIMESCHEDULE_INIT_DEFAULT, BLUELOCALTIMESCHEDULE_INIT_DEFAULT}, 0, {0, 0, 0, 0}, 500u, 3000u, 3u, -77, 0}
|
|
230
|
+
#define BLUEONLINECONFIG_INIT_DEFAULT {0, {BLUELOCALTIMESCHEDULE_INIT_DEFAULT, BLUELOCALTIMESCHEDULE_INIT_DEFAULT, BLUELOCALTIMESCHEDULE_INIT_DEFAULT, BLUELOCALTIMESCHEDULE_INIT_DEFAULT}, "", "", 30u}
|
|
231
|
+
#define BLUEACCESSCONFIGGROUP_INIT_DEFAULT {0, 0, {BLUELOCALTIMESCHEDULE_INIT_DEFAULT, BLUELOCALTIMESCHEDULE_INIT_DEFAULT}}
|
|
232
|
+
#define BLUEACCESSCONFIG_INIT_DEFAULT {1u, 1u, 0, {BLUEACCESSCONFIGGROUP_INIT_DEFAULT, BLUEACCESSCONFIGGROUP_INIT_DEFAULT, BLUEACCESSCONFIGGROUP_INIT_DEFAULT, BLUEACCESSCONFIGGROUP_INIT_DEFAULT, BLUEACCESSCONFIGGROUP_INIT_DEFAULT, BLUEACCESSCONFIGGROUP_INIT_DEFAULT, BLUEACCESSCONFIGGROUP_INIT_DEFAULT, BLUEACCESSCONFIGGROUP_INIT_DEFAULT, BLUEACCESSCONFIGGROUP_INIT_DEFAULT, BLUEACCESSCONFIGGROUP_INIT_DEFAULT}}
|
|
233
|
+
#define BLUEOSSCONFIG_INIT_DEFAULT {{0xff,0xee,0xdd,0xcc,0xbb,0xaa,0x99,0x88,0x77,0x66,0x55,0x44,0x33,0x22,0x11,0x00}, 16076801u, false, false, true, true, {0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17,0x18,0x19,0x1a,0x1b,0x1c,0x1d,0x1e,0x1f}, 16076800u}
|
|
234
|
+
#define BLUESYSTEMCONFIG_INIT_DEFAULT {"", BLUEBASECONFIG_INIT_DEFAULT, BLUEBLECONFIG_INIT_DEFAULT, BLUEONLINECONFIG_INIT_DEFAULT, BLUEACCESSCONFIG_INIT_DEFAULT, BLUEOSSCONFIG_INIT_DEFAULT, false, BLUELOCKCONFIG_INIT_DEFAULT}
|
|
235
|
+
#define BLUESYSTEMTIMEUNIX_INIT_DEFAULT {0}
|
|
236
|
+
#define BLUESYSTEMUPDATE_INIT_DEFAULT {false, BLUESYSTEMCONFIG_INIT_DEFAULT, false, BLUESYSTEMTIMEUNIX_INIT_DEFAULT}
|
|
237
|
+
#define BLUESYSTEMSETTINGS_INIT_DEFAULT {0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u, 0, 0}
|
|
238
|
+
#define BLUESYSTEMPROVISIONING_INIT_DEFAULT {BlueHardwareType_TestHardware, "", "00000000000000000000", {0, {0}}, {0, {0}}}
|
|
239
|
+
#define BLUESYSTEMSTATUS_INIT_DEFAULT {"", "", "", _BLUEHARDWARETYPE_MIN, _BLUEBATTERYLEVEL_MIN, 0, BLUELOCALTIMESTAMP_INIT_DEFAULT, BLUESYSTEMSETTINGS_INIT_DEFAULT, 0, 0, 0, 0, 0, false, BLUELOCKSTATUS_INIT_DEFAULT}
|
|
240
|
+
#define BLUESYSTEMLOGQUERY_INIT_DEFAULT {0, 0, {0}}
|
|
241
|
+
#define BLUESYSTEMLOGENTRY_INIT_DEFAULT {0, BLUELOCALTIMESTAMP_INIT_DEFAULT, 0, 0, "", ""}
|
|
242
|
+
#define BLUESYSTEMLOGRESULT_INIT_DEFAULT {0, {BLUESYSTEMLOGENTRY_INIT_DEFAULT, BLUESYSTEMLOGENTRY_INIT_DEFAULT, BLUESYSTEMLOGENTRY_INIT_DEFAULT, BLUESYSTEMLOGENTRY_INIT_DEFAULT, BLUESYSTEMLOGENTRY_INIT_DEFAULT, BLUESYSTEMLOGENTRY_INIT_DEFAULT, BLUESYSTEMLOGENTRY_INIT_DEFAULT, BLUESYSTEMLOGENTRY_INIT_DEFAULT, BLUESYSTEMLOGENTRY_INIT_DEFAULT, BLUESYSTEMLOGENTRY_INIT_DEFAULT}}
|
|
243
|
+
#define BLUEEVENTLOGQUERY_INIT_DEFAULT {0, 0, {0}}
|
|
244
|
+
#define BLUEEVENTLOGRESULT_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, 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, 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, BLUEEVENT_INIT_DEFAULT, BLUEEVENT_INIT_DEFAULT}}
|
|
245
|
+
#define BLUEBLACKLISTENTRIES_INIT_DEFAULT {0, {BLUEBLACKLISTENTRY_INIT_DEFAULT, BLUEBLACKLISTENTRY_INIT_DEFAULT, BLUEBLACKLISTENTRY_INIT_DEFAULT, BLUEBLACKLISTENTRY_INIT_DEFAULT, BLUEBLACKLISTENTRY_INIT_DEFAULT, BLUEBLACKLISTENTRY_INIT_DEFAULT, BLUEBLACKLISTENTRY_INIT_DEFAULT, BLUEBLACKLISTENTRY_INIT_DEFAULT, BLUEBLACKLISTENTRY_INIT_DEFAULT, BLUEBLACKLISTENTRY_INIT_DEFAULT, BLUEBLACKLISTENTRY_INIT_DEFAULT, BLUEBLACKLISTENTRY_INIT_DEFAULT, BLUEBLACKLISTENTRY_INIT_DEFAULT, BLUEBLACKLISTENTRY_INIT_DEFAULT, BLUEBLACKLISTENTRY_INIT_DEFAULT, BLUEBLACKLISTENTRY_INIT_DEFAULT, BLUEBLACKLISTENTRY_INIT_DEFAULT, BLUEBLACKLISTENTRY_INIT_DEFAULT, BLUEBLACKLISTENTRY_INIT_DEFAULT, BLUEBLACKLISTENTRY_INIT_DEFAULT, BLUEBLACKLISTENTRY_INIT_DEFAULT, BLUEBLACKLISTENTRY_INIT_DEFAULT, BLUEBLACKLISTENTRY_INIT_DEFAULT, BLUEBLACKLISTENTRY_INIT_DEFAULT, BLUEBLACKLISTENTRY_INIT_DEFAULT, BLUEBLACKLISTENTRY_INIT_DEFAULT, BLUEBLACKLISTENTRY_INIT_DEFAULT, BLUEBLACKLISTENTRY_INIT_DEFAULT, BLUEBLACKLISTENTRY_INIT_DEFAULT, BLUEBLACKLISTENTRY_INIT_DEFAULT, BLUEBLACKLISTENTRY_INIT_DEFAULT, BLUEBLACKLISTENTRY_INIT_DEFAULT, BLUEBLACKLISTENTRY_INIT_DEFAULT, BLUEBLACKLISTENTRY_INIT_DEFAULT, BLUEBLACKLISTENTRY_INIT_DEFAULT, BLUEBLACKLISTENTRY_INIT_DEFAULT, BLUEBLACKLISTENTRY_INIT_DEFAULT, BLUEBLACKLISTENTRY_INIT_DEFAULT, BLUEBLACKLISTENTRY_INIT_DEFAULT, BLUEBLACKLISTENTRY_INIT_DEFAULT, BLUEBLACKLISTENTRY_INIT_DEFAULT, BLUEBLACKLISTENTRY_INIT_DEFAULT, BLUEBLACKLISTENTRY_INIT_DEFAULT, BLUEBLACKLISTENTRY_INIT_DEFAULT, BLUEBLACKLISTENTRY_INIT_DEFAULT, BLUEBLACKLISTENTRY_INIT_DEFAULT, BLUEBLACKLISTENTRY_INIT_DEFAULT, BLUEBLACKLISTENTRY_INIT_DEFAULT, BLUEBLACKLISTENTRY_INIT_DEFAULT, BLUEBLACKLISTENTRY_INIT_DEFAULT, BLUEBLACKLISTENTRY_INIT_DEFAULT, BLUEBLACKLISTENTRY_INIT_DEFAULT, BLUEBLACKLISTENTRY_INIT_DEFAULT, BLUEBLACKLISTENTRY_INIT_DEFAULT, BLUEBLACKLISTENTRY_INIT_DEFAULT, BLUEBLACKLISTENTRY_INIT_DEFAULT, BLUEBLACKLISTENTRY_INIT_DEFAULT, BLUEBLACKLISTENTRY_INIT_DEFAULT, BLUEBLACKLISTENTRY_INIT_DEFAULT, BLUEBLACKLISTENTRY_INIT_DEFAULT, BLUEBLACKLISTENTRY_INIT_DEFAULT, BLUEBLACKLISTENTRY_INIT_DEFAULT, BLUEBLACKLISTENTRY_INIT_DEFAULT, BLUEBLACKLISTENTRY_INIT_DEFAULT, BLUEBLACKLISTENTRY_INIT_DEFAULT, BLUEBLACKLISTENTRY_INIT_DEFAULT, BLUEBLACKLISTENTRY_INIT_DEFAULT, BLUEBLACKLISTENTRY_INIT_DEFAULT, BLUEBLACKLISTENTRY_INIT_DEFAULT, BLUEBLACKLISTENTRY_INIT_DEFAULT, BLUEBLACKLISTENTRY_INIT_DEFAULT, BLUEBLACKLISTENTRY_INIT_DEFAULT, BLUEBLACKLISTENTRY_INIT_DEFAULT, BLUEBLACKLISTENTRY_INIT_DEFAULT, BLUEBLACKLISTENTRY_INIT_DEFAULT}}
|
|
246
|
+
#define BLUEBASECONFIG_INIT_ZERO {"", "", 0, 0}
|
|
247
|
+
#define BLUEBLECONFIG_INIT_ZERO {0, 0, {BLUELOCALTIMESCHEDULE_INIT_ZERO, BLUELOCALTIMESCHEDULE_INIT_ZERO, BLUELOCALTIMESCHEDULE_INIT_ZERO, BLUELOCALTIMESCHEDULE_INIT_ZERO, BLUELOCALTIMESCHEDULE_INIT_ZERO, BLUELOCALTIMESCHEDULE_INIT_ZERO, BLUELOCALTIMESCHEDULE_INIT_ZERO, BLUELOCALTIMESCHEDULE_INIT_ZERO}, 0, {0, 0, 0, 0}, 0, 0, 0, 0, 0}
|
|
248
|
+
#define BLUEONLINECONFIG_INIT_ZERO {0, {BLUELOCALTIMESCHEDULE_INIT_ZERO, BLUELOCALTIMESCHEDULE_INIT_ZERO, BLUELOCALTIMESCHEDULE_INIT_ZERO, BLUELOCALTIMESCHEDULE_INIT_ZERO}, "", "", 0}
|
|
249
|
+
#define BLUEACCESSCONFIGGROUP_INIT_ZERO {0, 0, {BLUELOCALTIMESCHEDULE_INIT_ZERO, BLUELOCALTIMESCHEDULE_INIT_ZERO}}
|
|
250
|
+
#define BLUEACCESSCONFIG_INIT_ZERO {0, 0, 0, {BLUEACCESSCONFIGGROUP_INIT_ZERO, BLUEACCESSCONFIGGROUP_INIT_ZERO, BLUEACCESSCONFIGGROUP_INIT_ZERO, BLUEACCESSCONFIGGROUP_INIT_ZERO, BLUEACCESSCONFIGGROUP_INIT_ZERO, BLUEACCESSCONFIGGROUP_INIT_ZERO, BLUEACCESSCONFIGGROUP_INIT_ZERO, BLUEACCESSCONFIGGROUP_INIT_ZERO, BLUEACCESSCONFIGGROUP_INIT_ZERO, BLUEACCESSCONFIGGROUP_INIT_ZERO}}
|
|
251
|
+
#define BLUEOSSCONFIG_INIT_ZERO {{0}, 0, 0, 0, 0, 0, {0}, 0}
|
|
252
|
+
#define BLUESYSTEMCONFIG_INIT_ZERO {"", BLUEBASECONFIG_INIT_ZERO, BLUEBLECONFIG_INIT_ZERO, BLUEONLINECONFIG_INIT_ZERO, BLUEACCESSCONFIG_INIT_ZERO, BLUEOSSCONFIG_INIT_ZERO, false, BLUELOCKCONFIG_INIT_ZERO}
|
|
253
|
+
#define BLUESYSTEMTIMEUNIX_INIT_ZERO {0}
|
|
254
|
+
#define BLUESYSTEMUPDATE_INIT_ZERO {false, BLUESYSTEMCONFIG_INIT_ZERO, false, BLUESYSTEMTIMEUNIX_INIT_ZERO}
|
|
255
|
+
#define BLUESYSTEMSETTINGS_INIT_ZERO {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
|
|
256
|
+
#define BLUESYSTEMPROVISIONING_INIT_ZERO {_BLUEHARDWARETYPE_MIN, "", "", {0, {0}}, {0, {0}}}
|
|
257
|
+
#define BLUESYSTEMSTATUS_INIT_ZERO {"", "", "", _BLUEHARDWARETYPE_MIN, _BLUEBATTERYLEVEL_MIN, 0, BLUELOCALTIMESTAMP_INIT_ZERO, BLUESYSTEMSETTINGS_INIT_ZERO, 0, 0, 0, 0, 0, false, BLUELOCKSTATUS_INIT_ZERO}
|
|
258
|
+
#define BLUESYSTEMLOGQUERY_INIT_ZERO {0, 0, {0}}
|
|
259
|
+
#define BLUESYSTEMLOGENTRY_INIT_ZERO {0, BLUELOCALTIMESTAMP_INIT_ZERO, 0, 0, "", ""}
|
|
260
|
+
#define BLUESYSTEMLOGRESULT_INIT_ZERO {0, {BLUESYSTEMLOGENTRY_INIT_ZERO, BLUESYSTEMLOGENTRY_INIT_ZERO, BLUESYSTEMLOGENTRY_INIT_ZERO, BLUESYSTEMLOGENTRY_INIT_ZERO, BLUESYSTEMLOGENTRY_INIT_ZERO, BLUESYSTEMLOGENTRY_INIT_ZERO, BLUESYSTEMLOGENTRY_INIT_ZERO, BLUESYSTEMLOGENTRY_INIT_ZERO, BLUESYSTEMLOGENTRY_INIT_ZERO, BLUESYSTEMLOGENTRY_INIT_ZERO}}
|
|
261
|
+
#define BLUEEVENTLOGQUERY_INIT_ZERO {0, 0, {0}}
|
|
262
|
+
#define BLUEEVENTLOGRESULT_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, 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, 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, BLUEEVENT_INIT_ZERO, BLUEEVENT_INIT_ZERO}}
|
|
263
|
+
#define BLUEBLACKLISTENTRIES_INIT_ZERO {0, {BLUEBLACKLISTENTRY_INIT_ZERO, BLUEBLACKLISTENTRY_INIT_ZERO, BLUEBLACKLISTENTRY_INIT_ZERO, BLUEBLACKLISTENTRY_INIT_ZERO, BLUEBLACKLISTENTRY_INIT_ZERO, BLUEBLACKLISTENTRY_INIT_ZERO, BLUEBLACKLISTENTRY_INIT_ZERO, BLUEBLACKLISTENTRY_INIT_ZERO, BLUEBLACKLISTENTRY_INIT_ZERO, BLUEBLACKLISTENTRY_INIT_ZERO, BLUEBLACKLISTENTRY_INIT_ZERO, BLUEBLACKLISTENTRY_INIT_ZERO, BLUEBLACKLISTENTRY_INIT_ZERO, BLUEBLACKLISTENTRY_INIT_ZERO, BLUEBLACKLISTENTRY_INIT_ZERO, BLUEBLACKLISTENTRY_INIT_ZERO, BLUEBLACKLISTENTRY_INIT_ZERO, BLUEBLACKLISTENTRY_INIT_ZERO, BLUEBLACKLISTENTRY_INIT_ZERO, BLUEBLACKLISTENTRY_INIT_ZERO, BLUEBLACKLISTENTRY_INIT_ZERO, BLUEBLACKLISTENTRY_INIT_ZERO, BLUEBLACKLISTENTRY_INIT_ZERO, BLUEBLACKLISTENTRY_INIT_ZERO, BLUEBLACKLISTENTRY_INIT_ZERO, BLUEBLACKLISTENTRY_INIT_ZERO, BLUEBLACKLISTENTRY_INIT_ZERO, BLUEBLACKLISTENTRY_INIT_ZERO, BLUEBLACKLISTENTRY_INIT_ZERO, BLUEBLACKLISTENTRY_INIT_ZERO, BLUEBLACKLISTENTRY_INIT_ZERO, BLUEBLACKLISTENTRY_INIT_ZERO, BLUEBLACKLISTENTRY_INIT_ZERO, BLUEBLACKLISTENTRY_INIT_ZERO, BLUEBLACKLISTENTRY_INIT_ZERO, BLUEBLACKLISTENTRY_INIT_ZERO, BLUEBLACKLISTENTRY_INIT_ZERO, BLUEBLACKLISTENTRY_INIT_ZERO, BLUEBLACKLISTENTRY_INIT_ZERO, BLUEBLACKLISTENTRY_INIT_ZERO, BLUEBLACKLISTENTRY_INIT_ZERO, BLUEBLACKLISTENTRY_INIT_ZERO, BLUEBLACKLISTENTRY_INIT_ZERO, BLUEBLACKLISTENTRY_INIT_ZERO, BLUEBLACKLISTENTRY_INIT_ZERO, BLUEBLACKLISTENTRY_INIT_ZERO, BLUEBLACKLISTENTRY_INIT_ZERO, BLUEBLACKLISTENTRY_INIT_ZERO, BLUEBLACKLISTENTRY_INIT_ZERO, BLUEBLACKLISTENTRY_INIT_ZERO, BLUEBLACKLISTENTRY_INIT_ZERO, BLUEBLACKLISTENTRY_INIT_ZERO, BLUEBLACKLISTENTRY_INIT_ZERO, BLUEBLACKLISTENTRY_INIT_ZERO, BLUEBLACKLISTENTRY_INIT_ZERO, BLUEBLACKLISTENTRY_INIT_ZERO, BLUEBLACKLISTENTRY_INIT_ZERO, BLUEBLACKLISTENTRY_INIT_ZERO, BLUEBLACKLISTENTRY_INIT_ZERO, BLUEBLACKLISTENTRY_INIT_ZERO, BLUEBLACKLISTENTRY_INIT_ZERO, BLUEBLACKLISTENTRY_INIT_ZERO, BLUEBLACKLISTENTRY_INIT_ZERO, BLUEBLACKLISTENTRY_INIT_ZERO, BLUEBLACKLISTENTRY_INIT_ZERO, BLUEBLACKLISTENTRY_INIT_ZERO, BLUEBLACKLISTENTRY_INIT_ZERO, BLUEBLACKLISTENTRY_INIT_ZERO, BLUEBLACKLISTENTRY_INIT_ZERO, BLUEBLACKLISTENTRY_INIT_ZERO, BLUEBLACKLISTENTRY_INIT_ZERO, BLUEBLACKLISTENTRY_INIT_ZERO, BLUEBLACKLISTENTRY_INIT_ZERO, BLUEBLACKLISTENTRY_INIT_ZERO, BLUEBLACKLISTENTRY_INIT_ZERO}}
|
|
264
|
+
|
|
265
|
+
/* Field tags (for use in manual encoding/decoding) */
|
|
266
|
+
#define BLUEBASECONFIG_ISOCOUNTRY_TAG 1
|
|
267
|
+
#define BLUEBASECONFIG_ISOSTATE_TAG 2
|
|
268
|
+
#define BLUEBASECONFIG_UTCOFFSETMINUTES_TAG 3
|
|
269
|
+
#define BLUEBASECONFIG_AUTOCHECKSYSTEMSTATUS_TAG 4
|
|
270
|
+
#define BLUEBLECONFIG_ISADVERTISING_TAG 1
|
|
271
|
+
#define BLUEBLECONFIG_ADVERTISINGSCHEDULES_TAG 2
|
|
272
|
+
#define BLUEBLECONFIG_MAXPOWERADVERTISINGSCHEDULESINDICES_TAG 3
|
|
273
|
+
#define BLUEBLECONFIG_ADVERTISINGINTERVALMS_TAG 4
|
|
274
|
+
#define BLUEBLECONFIG_MAXCONNECTIONTIMEOUTMS_TAG 5
|
|
275
|
+
#define BLUEBLECONFIG_TXPOWERLEVEL_TAG 6
|
|
276
|
+
#define BLUEBLECONFIG_ADVERTISEDTXPOWER1METER_TAG 7
|
|
277
|
+
#define BLUEBLECONFIG_ISIBEACONADVERTISEMENT_TAG 8
|
|
278
|
+
#define BLUEONLINECONFIG_CONNECTSCHEDULES_TAG 1
|
|
279
|
+
#define BLUEONLINECONFIG_WIFISSID_TAG 2
|
|
280
|
+
#define BLUEONLINECONFIG_WIFIPASSWORD_TAG 3
|
|
281
|
+
#define BLUEONLINECONFIG_TIMEOUTSEC_TAG 4
|
|
282
|
+
#define BLUEACCESSCONFIGGROUP_GROUPID_TAG 1
|
|
283
|
+
#define BLUEACCESSCONFIGGROUP_SCHEDULES_TAG 2
|
|
284
|
+
#define BLUEACCESSCONFIG_ID_TAG 1
|
|
285
|
+
#define BLUEACCESSCONFIG_SITEID_TAG 2
|
|
286
|
+
#define BLUEACCESSCONFIG_GROUPS_TAG 3
|
|
287
|
+
#define BLUEOSSCONFIG_SIDMIFAREAESKEY_TAG 1
|
|
288
|
+
#define BLUEOSSCONFIG_SIDMIFAREAID_TAG 2
|
|
289
|
+
#define BLUEOSSCONFIG_SOUPDATER_TAG 3
|
|
290
|
+
#define BLUEOSSCONFIG_SOPUSHEVENTS_TAG 4
|
|
291
|
+
#define BLUEOSSCONFIG_SOWRITEPENDINGEVENTS_TAG 5
|
|
292
|
+
#define BLUEOSSCONFIG_SOUPDATEFROMBLACKLIST_TAG 6
|
|
293
|
+
#define BLUEOSSCONFIG_SOMIFAREAESKEY_TAG 7
|
|
294
|
+
#define BLUEOSSCONFIG_SOMIFAREAID_TAG 8
|
|
295
|
+
#define BLUESYSTEMCONFIG_CONFIGID_TAG 1
|
|
296
|
+
#define BLUESYSTEMCONFIG_BASE_TAG 2
|
|
297
|
+
#define BLUESYSTEMCONFIG_BLE_TAG 3
|
|
298
|
+
#define BLUESYSTEMCONFIG_ONLINE_TAG 4
|
|
299
|
+
#define BLUESYSTEMCONFIG_ACCESS_TAG 5
|
|
300
|
+
#define BLUESYSTEMCONFIG_OSS_TAG 6
|
|
301
|
+
#define BLUESYSTEMCONFIG_LOCK_TAG 7
|
|
302
|
+
#define BLUESYSTEMTIMEUNIX_EPOCH_TAG 1
|
|
303
|
+
#define BLUESYSTEMUPDATE_CONFIG_TAG 1
|
|
304
|
+
#define BLUESYSTEMUPDATE_TIMEUNIX_TAG 2
|
|
305
|
+
#define BLUESYSTEMSETTINGS_BLACKLISTMAXENTRIESCOUNT_TAG 1
|
|
306
|
+
#define BLUESYSTEMSETTINGS_BLACKLISTENTRIESCOUNT_TAG 2
|
|
307
|
+
#define BLUESYSTEMSETTINGS_EVENTLOGMAXENTRIESCOUNT_TAG 3
|
|
308
|
+
#define BLUESYSTEMSETTINGS_EVENTLOGENTRIESCOUNT_TAG 4
|
|
309
|
+
#define BLUESYSTEMSETTINGS_EVENTLOGSEQUENCEID_TAG 5
|
|
310
|
+
#define BLUESYSTEMSETTINGS_EVENTLOGINDEX_TAG 6
|
|
311
|
+
#define BLUESYSTEMSETTINGS_SYSTEMLOGMAXENTRIESCOUNT_TAG 7
|
|
312
|
+
#define BLUESYSTEMSETTINGS_SYSTEMLOGENTRIESCOUNT_TAG 8
|
|
313
|
+
#define BLUESYSTEMSETTINGS_SYSTEMLOGSEQUENCEID_TAG 9
|
|
314
|
+
#define BLUESYSTEMSETTINGS_SYSTEMLOGINDEX_TAG 10
|
|
315
|
+
#define BLUESYSTEMSETTINGS_TIMEWASSET_TAG 11
|
|
316
|
+
#define BLUESYSTEMSETTINGS_ISBATTERYLOW_TAG 12
|
|
317
|
+
#define BLUESYSTEMPROVISIONING_HARDWARETYPE_TAG 1
|
|
318
|
+
#define BLUESYSTEMPROVISIONING_DEVICEID_TAG 2
|
|
319
|
+
#define BLUESYSTEMPROVISIONING_SERIALNUMBER_TAG 3
|
|
320
|
+
#define BLUESYSTEMPROVISIONING_TERMINALPRIVATEKEY_TAG 4
|
|
321
|
+
#define BLUESYSTEMPROVISIONING_SIGNATUREPUBLICKEY_TAG 5
|
|
322
|
+
#define BLUESYSTEMSTATUS_CONFIGID_TAG 1
|
|
323
|
+
#define BLUESYSTEMSTATUS_DEVICEID_TAG 2
|
|
324
|
+
#define BLUESYSTEMSTATUS_SERIALNUMBER_TAG 3
|
|
325
|
+
#define BLUESYSTEMSTATUS_HARDWARETYPE_TAG 4
|
|
326
|
+
#define BLUESYSTEMSTATUS_BATTERYLEVEL_TAG 5
|
|
327
|
+
#define BLUESYSTEMSTATUS_APPLICATIONVERSION_TAG 6
|
|
328
|
+
#define BLUESYSTEMSTATUS_LOCALTIME_TAG 7
|
|
329
|
+
#define BLUESYSTEMSTATUS_SETTINGS_TAG 8
|
|
330
|
+
#define BLUESYSTEMSTATUS_BLACKLISTENTRIESCOUNT_TAG 9
|
|
331
|
+
#define BLUESYSTEMSTATUS_EVENTLOGENTRIESCOUNT_TAG 10
|
|
332
|
+
#define BLUESYSTEMSTATUS_EVENTLOGSEQUENCEID_TAG 11
|
|
333
|
+
#define BLUESYSTEMSTATUS_SYSTEMLOGENTRIESCOUNT_TAG 12
|
|
334
|
+
#define BLUESYSTEMSTATUS_SYSTEMLOGSEQUENCEID_TAG 13
|
|
335
|
+
#define BLUESYSTEMSTATUS_LOCK_TAG 14
|
|
336
|
+
#define BLUESYSTEMLOGQUERY_MAXCOUNT_TAG 1
|
|
337
|
+
#define BLUESYSTEMLOGQUERY_SEQUENCEID_TAG 2
|
|
338
|
+
#define BLUESYSTEMLOGQUERY_FROMHEAD_TAG 3
|
|
339
|
+
#define BLUESYSTEMLOGENTRY_SEQUENCEID_TAG 1
|
|
340
|
+
#define BLUESYSTEMLOGENTRY_TIME_TAG 2
|
|
341
|
+
#define BLUESYSTEMLOGENTRY_SEVERITY_TAG 3
|
|
342
|
+
#define BLUESYSTEMLOGENTRY_LINE_TAG 4
|
|
343
|
+
#define BLUESYSTEMLOGENTRY_FILE_TAG 5
|
|
344
|
+
#define BLUESYSTEMLOGENTRY_MESSAGE_TAG 6
|
|
345
|
+
#define BLUESYSTEMLOGRESULT_ENTRIES_TAG 1
|
|
346
|
+
#define BLUEEVENTLOGQUERY_MAXCOUNT_TAG 1
|
|
347
|
+
#define BLUEEVENTLOGQUERY_SEQUENCEID_TAG 2
|
|
348
|
+
#define BLUEEVENTLOGQUERY_FROMHEAD_TAG 3
|
|
349
|
+
#define BLUEEVENTLOGRESULT_EVENTS_TAG 1
|
|
350
|
+
#define BLUEBLACKLISTENTRIES_ENTRIES_TAG 1
|
|
351
|
+
|
|
352
|
+
/* Struct field encoding specification for nanopb */
|
|
353
|
+
#define BLUEBASECONFIG_FIELDLIST(X, a) \
|
|
354
|
+
X(a, STATIC, REQUIRED, STRING, isoCountry, 1) \
|
|
355
|
+
X(a, STATIC, REQUIRED, STRING, isoState, 2) \
|
|
356
|
+
X(a, STATIC, REQUIRED, INT32, utcOffsetMinutes, 3) \
|
|
357
|
+
X(a, STATIC, REQUIRED, BOOL, autoCheckSystemStatus, 4)
|
|
358
|
+
#define BLUEBASECONFIG_CALLBACK NULL
|
|
359
|
+
#define BLUEBASECONFIG_DEFAULT (const pb_byte_t*)"\x18\x00\x20\x00\x00"
|
|
360
|
+
|
|
361
|
+
#define BLUEBLECONFIG_FIELDLIST(X, a) \
|
|
362
|
+
X(a, STATIC, REQUIRED, BOOL, isAdvertising, 1) \
|
|
363
|
+
X(a, STATIC, REPEATED, MESSAGE, advertisingSchedules, 2) \
|
|
364
|
+
X(a, STATIC, REPEATED, UINT32, maxPowerAdvertisingSchedulesIndices, 3) \
|
|
365
|
+
X(a, STATIC, REQUIRED, UINT32, advertisingIntervalMs, 4) \
|
|
366
|
+
X(a, STATIC, REQUIRED, UINT32, maxConnectionTimeoutMs, 5) \
|
|
367
|
+
X(a, STATIC, REQUIRED, UINT32, txPowerLevel, 6) \
|
|
368
|
+
X(a, STATIC, REQUIRED, INT32, advertisedTxPower1Meter, 7) \
|
|
369
|
+
X(a, STATIC, REQUIRED, BOOL, isIBeaconAdvertisement, 8)
|
|
370
|
+
#define BLUEBLECONFIG_CALLBACK NULL
|
|
371
|
+
#define BLUEBLECONFIG_DEFAULT (const pb_byte_t*)"\x08\x01\x20\xf4\x03\x28\xb8\x17\x30\x03\x38\xb3\xff\xff\xff\xff\xff\xff\xff\xff\x01\x00"
|
|
372
|
+
#define BlueBleConfig_t_advertisingSchedules_MSGTYPE BlueLocalTimeSchedule_t
|
|
373
|
+
|
|
374
|
+
#define BLUEONLINECONFIG_FIELDLIST(X, a) \
|
|
375
|
+
X(a, STATIC, REPEATED, MESSAGE, connectSchedules, 1) \
|
|
376
|
+
X(a, STATIC, REQUIRED, STRING, wifiSSID, 2) \
|
|
377
|
+
X(a, STATIC, REQUIRED, STRING, wifiPassword, 3) \
|
|
378
|
+
X(a, STATIC, REQUIRED, UINT32, timeoutSec, 4)
|
|
379
|
+
#define BLUEONLINECONFIG_CALLBACK NULL
|
|
380
|
+
#define BLUEONLINECONFIG_DEFAULT (const pb_byte_t*)"\x20\x1e\x00"
|
|
381
|
+
#define BlueOnlineConfig_t_connectSchedules_MSGTYPE BlueLocalTimeSchedule_t
|
|
382
|
+
|
|
383
|
+
#define BLUEACCESSCONFIGGROUP_FIELDLIST(X, a) \
|
|
384
|
+
X(a, STATIC, REQUIRED, UINT32, groupId, 1) \
|
|
385
|
+
X(a, STATIC, REPEATED, MESSAGE, schedules, 2)
|
|
386
|
+
#define BLUEACCESSCONFIGGROUP_CALLBACK NULL
|
|
387
|
+
#define BLUEACCESSCONFIGGROUP_DEFAULT NULL
|
|
388
|
+
#define BlueAccessConfigGroup_t_schedules_MSGTYPE BlueLocalTimeSchedule_t
|
|
389
|
+
|
|
390
|
+
#define BLUEACCESSCONFIG_FIELDLIST(X, a) \
|
|
391
|
+
X(a, STATIC, REQUIRED, UINT32, id, 1) \
|
|
392
|
+
X(a, STATIC, REQUIRED, UINT32, siteId, 2) \
|
|
393
|
+
X(a, STATIC, REPEATED, MESSAGE, groups, 3)
|
|
394
|
+
#define BLUEACCESSCONFIG_CALLBACK NULL
|
|
395
|
+
#define BLUEACCESSCONFIG_DEFAULT (const pb_byte_t*)"\x08\x01\x10\x01\x00"
|
|
396
|
+
#define BlueAccessConfig_t_groups_MSGTYPE BlueAccessConfigGroup_t
|
|
397
|
+
|
|
398
|
+
#define BLUEOSSCONFIG_FIELDLIST(X, a) \
|
|
399
|
+
X(a, STATIC, REQUIRED, FIXED_LENGTH_BYTES, sidMifareAesKey, 1) \
|
|
400
|
+
X(a, STATIC, REQUIRED, UINT32, sidMifareAid, 2) \
|
|
401
|
+
X(a, STATIC, REQUIRED, BOOL, soUpdater, 3) \
|
|
402
|
+
X(a, STATIC, REQUIRED, BOOL, soPushEvents, 4) \
|
|
403
|
+
X(a, STATIC, REQUIRED, BOOL, soWritePendingEvents, 5) \
|
|
404
|
+
X(a, STATIC, REQUIRED, BOOL, soUpdateFromBlacklist, 6) \
|
|
405
|
+
X(a, STATIC, REQUIRED, FIXED_LENGTH_BYTES, soMifareAesKey, 7) \
|
|
406
|
+
X(a, STATIC, REQUIRED, UINT32, soMifareAid, 8)
|
|
407
|
+
#define BLUEOSSCONFIG_CALLBACK NULL
|
|
408
|
+
#define BLUEOSSCONFIG_DEFAULT (const pb_byte_t*)"\x0a\x10\xff\xee\xdd\xcc\xbb\xaa\x99\x88\x77\x66\x55\x44\x33\x22\x11\x00\x10\x81\xa0\xd5\x07\x18\x00\x20\x00\x28\x01\x30\x01\x3a\x10\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f\x40\x80\xa0\xd5\x07\x00"
|
|
409
|
+
|
|
410
|
+
#define BLUESYSTEMCONFIG_FIELDLIST(X, a) \
|
|
411
|
+
X(a, STATIC, REQUIRED, STRING, configId, 1) \
|
|
412
|
+
X(a, STATIC, REQUIRED, MESSAGE, base, 2) \
|
|
413
|
+
X(a, STATIC, REQUIRED, MESSAGE, ble, 3) \
|
|
414
|
+
X(a, STATIC, REQUIRED, MESSAGE, online, 4) \
|
|
415
|
+
X(a, STATIC, REQUIRED, MESSAGE, access, 5) \
|
|
416
|
+
X(a, STATIC, REQUIRED, MESSAGE, oss, 6) \
|
|
417
|
+
X(a, STATIC, OPTIONAL, MESSAGE, lock, 7)
|
|
418
|
+
#define BLUESYSTEMCONFIG_CALLBACK NULL
|
|
419
|
+
#define BLUESYSTEMCONFIG_DEFAULT NULL
|
|
420
|
+
#define BlueSystemConfig_t_base_MSGTYPE BlueBaseConfig_t
|
|
421
|
+
#define BlueSystemConfig_t_ble_MSGTYPE BlueBleConfig_t
|
|
422
|
+
#define BlueSystemConfig_t_online_MSGTYPE BlueOnlineConfig_t
|
|
423
|
+
#define BlueSystemConfig_t_access_MSGTYPE BlueAccessConfig_t
|
|
424
|
+
#define BlueSystemConfig_t_oss_MSGTYPE BlueOssConfig_t
|
|
425
|
+
#define BlueSystemConfig_t_lock_MSGTYPE BlueLockConfig_t
|
|
426
|
+
|
|
427
|
+
#define BLUESYSTEMTIMEUNIX_FIELDLIST(X, a) \
|
|
428
|
+
X(a, STATIC, REQUIRED, UINT32, epoch, 1)
|
|
429
|
+
#define BLUESYSTEMTIMEUNIX_CALLBACK NULL
|
|
430
|
+
#define BLUESYSTEMTIMEUNIX_DEFAULT NULL
|
|
431
|
+
|
|
432
|
+
#define BLUESYSTEMUPDATE_FIELDLIST(X, a) \
|
|
433
|
+
X(a, STATIC, OPTIONAL, MESSAGE, config, 1) \
|
|
434
|
+
X(a, STATIC, OPTIONAL, MESSAGE, timeUnix, 2)
|
|
435
|
+
#define BLUESYSTEMUPDATE_CALLBACK NULL
|
|
436
|
+
#define BLUESYSTEMUPDATE_DEFAULT NULL
|
|
437
|
+
#define BlueSystemUpdate_t_config_MSGTYPE BlueSystemConfig_t
|
|
438
|
+
#define BlueSystemUpdate_t_timeUnix_MSGTYPE BlueSystemTimeUnix_t
|
|
439
|
+
|
|
440
|
+
#define BLUESYSTEMSETTINGS_FIELDLIST(X, a) \
|
|
441
|
+
X(a, STATIC, REQUIRED, UINT32, blacklistMaxEntriesCount, 1) \
|
|
442
|
+
X(a, STATIC, REQUIRED, UINT32, blacklistEntriesCount, 2) \
|
|
443
|
+
X(a, STATIC, REQUIRED, UINT32, eventLogMaxEntriesCount, 3) \
|
|
444
|
+
X(a, STATIC, REQUIRED, UINT32, eventLogEntriesCount, 4) \
|
|
445
|
+
X(a, STATIC, REQUIRED, UINT32, eventLogSequenceId, 5) \
|
|
446
|
+
X(a, STATIC, REQUIRED, UINT32, eventLogIndex, 6) \
|
|
447
|
+
X(a, STATIC, REQUIRED, UINT32, systemLogMaxEntriesCount, 7) \
|
|
448
|
+
X(a, STATIC, REQUIRED, UINT32, systemLogEntriesCount, 8) \
|
|
449
|
+
X(a, STATIC, REQUIRED, UINT32, systemLogSequenceId, 9) \
|
|
450
|
+
X(a, STATIC, REQUIRED, UINT32, systemLogIndex, 10) \
|
|
451
|
+
X(a, STATIC, REQUIRED, BOOL, timeWasSet, 11) \
|
|
452
|
+
X(a, STATIC, REQUIRED, BOOL, isBatteryLow, 12)
|
|
453
|
+
#define BLUESYSTEMSETTINGS_CALLBACK NULL
|
|
454
|
+
#define BLUESYSTEMSETTINGS_DEFAULT (const pb_byte_t*)"\x08\x00\x10\x00\x18\x00\x20\x00\x28\x00\x30\x00\x38\x00\x40\x00\x48\x00\x50\x00\x00"
|
|
455
|
+
|
|
456
|
+
#define BLUESYSTEMPROVISIONING_FIELDLIST(X, a) \
|
|
457
|
+
X(a, STATIC, REQUIRED, UENUM, hardwareType, 1) \
|
|
458
|
+
X(a, STATIC, REQUIRED, STRING, deviceId, 2) \
|
|
459
|
+
X(a, STATIC, REQUIRED, STRING, serialNumber, 3) \
|
|
460
|
+
X(a, STATIC, REQUIRED, BYTES, terminalPrivateKey, 4) \
|
|
461
|
+
X(a, STATIC, REQUIRED, BYTES, signaturePublicKey, 5)
|
|
462
|
+
#define BLUESYSTEMPROVISIONING_CALLBACK NULL
|
|
463
|
+
#define BLUESYSTEMPROVISIONING_DEFAULT (const pb_byte_t*)"\x08\x01\x1a\x14\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x00"
|
|
464
|
+
|
|
465
|
+
#define BLUESYSTEMSTATUS_FIELDLIST(X, a) \
|
|
466
|
+
X(a, STATIC, REQUIRED, STRING, configId, 1) \
|
|
467
|
+
X(a, STATIC, REQUIRED, STRING, deviceId, 2) \
|
|
468
|
+
X(a, STATIC, REQUIRED, STRING, serialNumber, 3) \
|
|
469
|
+
X(a, STATIC, REQUIRED, UENUM, hardwareType, 4) \
|
|
470
|
+
X(a, STATIC, REQUIRED, UENUM, batteryLevel, 5) \
|
|
471
|
+
X(a, STATIC, REQUIRED, UINT32, applicationVersion, 6) \
|
|
472
|
+
X(a, STATIC, REQUIRED, MESSAGE, localTime, 7) \
|
|
473
|
+
X(a, STATIC, REQUIRED, MESSAGE, settings, 8) \
|
|
474
|
+
X(a, STATIC, REQUIRED, UINT32, blacklistEntriesCount, 9) \
|
|
475
|
+
X(a, STATIC, REQUIRED, UINT32, eventLogEntriesCount, 10) \
|
|
476
|
+
X(a, STATIC, REQUIRED, UINT32, eventLogSequenceId, 11) \
|
|
477
|
+
X(a, STATIC, REQUIRED, UINT32, systemLogEntriesCount, 12) \
|
|
478
|
+
X(a, STATIC, REQUIRED, UINT32, systemLogSequenceId, 13) \
|
|
479
|
+
X(a, STATIC, OPTIONAL, MESSAGE, lock, 14)
|
|
480
|
+
#define BLUESYSTEMSTATUS_CALLBACK NULL
|
|
481
|
+
#define BLUESYSTEMSTATUS_DEFAULT NULL
|
|
482
|
+
#define BlueSystemStatus_t_localTime_MSGTYPE BlueLocalTimestamp_t
|
|
483
|
+
#define BlueSystemStatus_t_settings_MSGTYPE BlueSystemSettings_t
|
|
484
|
+
#define BlueSystemStatus_t_lock_MSGTYPE BlueLockStatus_t
|
|
485
|
+
|
|
486
|
+
#define BLUESYSTEMLOGQUERY_FIELDLIST(X, a) \
|
|
487
|
+
X(a, STATIC, REQUIRED, UINT32, maxCount, 1) \
|
|
488
|
+
X(a, STATIC, ONEOF, UINT32, (start,sequenceId,start.sequenceId), 2) \
|
|
489
|
+
X(a, STATIC, ONEOF, BOOL, (start,fromHead,start.fromHead), 3)
|
|
490
|
+
#define BLUESYSTEMLOGQUERY_CALLBACK NULL
|
|
491
|
+
#define BLUESYSTEMLOGQUERY_DEFAULT NULL
|
|
492
|
+
|
|
493
|
+
#define BLUESYSTEMLOGENTRY_FIELDLIST(X, a) \
|
|
494
|
+
X(a, STATIC, REQUIRED, UINT32, sequenceId, 1) \
|
|
495
|
+
X(a, STATIC, REQUIRED, MESSAGE, time, 2) \
|
|
496
|
+
X(a, STATIC, REQUIRED, UINT32, severity, 3) \
|
|
497
|
+
X(a, STATIC, REQUIRED, UINT32, line, 4) \
|
|
498
|
+
X(a, STATIC, REQUIRED, STRING, file, 5) \
|
|
499
|
+
X(a, STATIC, REQUIRED, STRING, message, 6)
|
|
500
|
+
#define BLUESYSTEMLOGENTRY_CALLBACK NULL
|
|
501
|
+
#define BLUESYSTEMLOGENTRY_DEFAULT NULL
|
|
502
|
+
#define BlueSystemLogEntry_t_time_MSGTYPE BlueLocalTimestamp_t
|
|
503
|
+
|
|
504
|
+
#define BLUESYSTEMLOGRESULT_FIELDLIST(X, a) \
|
|
505
|
+
X(a, STATIC, REPEATED, MESSAGE, entries, 1)
|
|
506
|
+
#define BLUESYSTEMLOGRESULT_CALLBACK NULL
|
|
507
|
+
#define BLUESYSTEMLOGRESULT_DEFAULT NULL
|
|
508
|
+
#define BlueSystemLogResult_t_entries_MSGTYPE BlueSystemLogEntry_t
|
|
509
|
+
|
|
510
|
+
#define BLUEEVENTLOGQUERY_FIELDLIST(X, a) \
|
|
511
|
+
X(a, STATIC, REQUIRED, UINT32, maxCount, 1) \
|
|
512
|
+
X(a, STATIC, ONEOF, UINT32, (start,sequenceId,start.sequenceId), 2) \
|
|
513
|
+
X(a, STATIC, ONEOF, BOOL, (start,fromHead,start.fromHead), 3)
|
|
514
|
+
#define BLUEEVENTLOGQUERY_CALLBACK NULL
|
|
515
|
+
#define BLUEEVENTLOGQUERY_DEFAULT NULL
|
|
516
|
+
|
|
517
|
+
#define BLUEEVENTLOGRESULT_FIELDLIST(X, a) \
|
|
518
|
+
X(a, STATIC, REPEATED, MESSAGE, events, 1)
|
|
519
|
+
#define BLUEEVENTLOGRESULT_CALLBACK NULL
|
|
520
|
+
#define BLUEEVENTLOGRESULT_DEFAULT NULL
|
|
521
|
+
#define BlueEventLogResult_t_events_MSGTYPE BlueEvent_t
|
|
522
|
+
|
|
523
|
+
#define BLUEBLACKLISTENTRIES_FIELDLIST(X, a) \
|
|
524
|
+
X(a, STATIC, REPEATED, MESSAGE, entries, 1)
|
|
525
|
+
#define BLUEBLACKLISTENTRIES_CALLBACK NULL
|
|
526
|
+
#define BLUEBLACKLISTENTRIES_DEFAULT NULL
|
|
527
|
+
#define BlueBlacklistEntries_t_entries_MSGTYPE BlueBlacklistEntry_t
|
|
528
|
+
|
|
529
|
+
extern const pb_msgdesc_t BlueBaseConfig_t_msg;
|
|
530
|
+
extern const pb_msgdesc_t BlueBleConfig_t_msg;
|
|
531
|
+
extern const pb_msgdesc_t BlueOnlineConfig_t_msg;
|
|
532
|
+
extern const pb_msgdesc_t BlueAccessConfigGroup_t_msg;
|
|
533
|
+
extern const pb_msgdesc_t BlueAccessConfig_t_msg;
|
|
534
|
+
extern const pb_msgdesc_t BlueOssConfig_t_msg;
|
|
535
|
+
extern const pb_msgdesc_t BlueSystemConfig_t_msg;
|
|
536
|
+
extern const pb_msgdesc_t BlueSystemTimeUnix_t_msg;
|
|
537
|
+
extern const pb_msgdesc_t BlueSystemUpdate_t_msg;
|
|
538
|
+
extern const pb_msgdesc_t BlueSystemSettings_t_msg;
|
|
539
|
+
extern const pb_msgdesc_t BlueSystemProvisioning_t_msg;
|
|
540
|
+
extern const pb_msgdesc_t BlueSystemStatus_t_msg;
|
|
541
|
+
extern const pb_msgdesc_t BlueSystemLogQuery_t_msg;
|
|
542
|
+
extern const pb_msgdesc_t BlueSystemLogEntry_t_msg;
|
|
543
|
+
extern const pb_msgdesc_t BlueSystemLogResult_t_msg;
|
|
544
|
+
extern const pb_msgdesc_t BlueEventLogQuery_t_msg;
|
|
545
|
+
extern const pb_msgdesc_t BlueEventLogResult_t_msg;
|
|
546
|
+
extern const pb_msgdesc_t BlueBlacklistEntries_t_msg;
|
|
547
|
+
|
|
548
|
+
/* Defines for backwards compatibility with code written before nanopb-0.4.0 */
|
|
549
|
+
#define BLUEBASECONFIG_FIELDS &BlueBaseConfig_t_msg
|
|
550
|
+
#define BLUEBLECONFIG_FIELDS &BlueBleConfig_t_msg
|
|
551
|
+
#define BLUEONLINECONFIG_FIELDS &BlueOnlineConfig_t_msg
|
|
552
|
+
#define BLUEACCESSCONFIGGROUP_FIELDS &BlueAccessConfigGroup_t_msg
|
|
553
|
+
#define BLUEACCESSCONFIG_FIELDS &BlueAccessConfig_t_msg
|
|
554
|
+
#define BLUEOSSCONFIG_FIELDS &BlueOssConfig_t_msg
|
|
555
|
+
#define BLUESYSTEMCONFIG_FIELDS &BlueSystemConfig_t_msg
|
|
556
|
+
#define BLUESYSTEMTIMEUNIX_FIELDS &BlueSystemTimeUnix_t_msg
|
|
557
|
+
#define BLUESYSTEMUPDATE_FIELDS &BlueSystemUpdate_t_msg
|
|
558
|
+
#define BLUESYSTEMSETTINGS_FIELDS &BlueSystemSettings_t_msg
|
|
559
|
+
#define BLUESYSTEMPROVISIONING_FIELDS &BlueSystemProvisioning_t_msg
|
|
560
|
+
#define BLUESYSTEMSTATUS_FIELDS &BlueSystemStatus_t_msg
|
|
561
|
+
#define BLUESYSTEMLOGQUERY_FIELDS &BlueSystemLogQuery_t_msg
|
|
562
|
+
#define BLUESYSTEMLOGENTRY_FIELDS &BlueSystemLogEntry_t_msg
|
|
563
|
+
#define BLUESYSTEMLOGRESULT_FIELDS &BlueSystemLogResult_t_msg
|
|
564
|
+
#define BLUEEVENTLOGQUERY_FIELDS &BlueEventLogQuery_t_msg
|
|
565
|
+
#define BLUEEVENTLOGRESULT_FIELDS &BlueEventLogResult_t_msg
|
|
566
|
+
#define BLUEBLACKLISTENTRIES_FIELDS &BlueBlacklistEntries_t_msg
|
|
567
|
+
|
|
568
|
+
/* Maximum encoded size of messages (where known) */
|
|
569
|
+
#define BLUEACCESSCONFIGGROUP_SIZE 79
|
|
570
|
+
#define BLUEACCESSCONFIG_SIZE 816
|
|
571
|
+
#define BLUEBASECONFIG_SIZE 22
|
|
572
|
+
#define BLUEBLACKLISTENTRIES_SIZE 2775
|
|
573
|
+
#define BLUEBLECONFIG_SIZE 342
|
|
574
|
+
#define BLUEEVENTLOGQUERY_SIZE 12
|
|
575
|
+
#define BLUEEVENTLOGRESULT_SIZE 3200
|
|
576
|
+
#define BLUEONLINECONFIG_SIZE 224
|
|
577
|
+
#define BLUEOSSCONFIG_SIZE 56
|
|
578
|
+
#define BLUESYSTEMCONFIG_SIZE 1780
|
|
579
|
+
#define BLUESYSTEMLOGENTRY_SIZE 152
|
|
580
|
+
#define BLUESYSTEMLOGQUERY_SIZE 9
|
|
581
|
+
#define BLUESYSTEMLOGRESULT_SIZE 1550
|
|
582
|
+
#define BLUESYSTEMPROVISIONING_SIZE 299
|
|
583
|
+
#define BLUESYSTEMSETTINGS_SIZE 48
|
|
584
|
+
#define BLUESYSTEMSTATUS_SIZE 158
|
|
585
|
+
#define BLUESYSTEMTIMEUNIX_SIZE 6
|
|
586
|
+
#define BLUESYSTEMUPDATE_SIZE 1791
|
|
587
|
+
|
|
588
|
+
#ifdef __cplusplus
|
|
589
|
+
} /* extern "C" */
|
|
590
|
+
#endif
|
|
591
|
+
|
|
592
|
+
#endif
|