@blueid/access-proto 0.13.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.
@@ -0,0 +1,16 @@
1
+ /* Automatically generated nanopb constant definitions */
2
+ /* Generated by nanopb-0.4.8-dev */
3
+
4
+ #include "BlueLock.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(BLUELOCKCONFIG, BlueLockConfig_t, AUTO)
10
+
11
+
12
+ PB_BIND(BLUELOCKSTATUS, BlueLockStatus_t, AUTO)
13
+
14
+
15
+
16
+
@@ -0,0 +1,104 @@
1
+ /* Automatically generated nanopb header */
2
+ /* Generated by nanopb-0.4.8-dev */
3
+
4
+ #ifndef PB_BLUELOCK_PB_H_INCLUDED
5
+ #define PB_BLUELOCK_PB_H_INCLUDED
6
+ #include "pb.h"
7
+ #include "BlueCore.pb.h"
8
+
9
+ #if PB_PROTO_HEADER_VERSION != 40
10
+ #error Regenerate this file with the current version of nanopb generator.
11
+ #endif
12
+
13
+ /* Enum definitions */
14
+ typedef enum BlueLockState {
15
+ BlueLockState_UnknownLockState = 1,
16
+ BlueLockState_Locked = 2,
17
+ BlueLockState_Unlocked = 3,
18
+ BlueLockState_Jammed = 4
19
+ } BlueLockState_t;
20
+
21
+ /* Struct definitions */
22
+ typedef struct BlueLockConfig {
23
+ /* Schedules for when the lock opens automatically */
24
+ pb_size_t openSchedules_count;
25
+ BlueLocalTimeSchedule_t openSchedules[4];
26
+ /* If set to true then the lock opens by schedule only after it was first
27
+ opened by an authenticated user and is within any of the open schedules */
28
+ bool openScheduleByUser;
29
+ /* Days of year (1-366) the open schedule is ignored (ie vacation days) */
30
+ pb_size_t closedDays_count;
31
+ uint32_t closedDays[18];
32
+ /* Default time in seconds to keep the lock open */
33
+ uint32_t defaultOpenTimeSec;
34
+ /* Extended time in seconds to keep the lock open */
35
+ uint32_t extendedOpenTimeSec;
36
+ } BlueLockConfig_t;
37
+
38
+ typedef struct BlueLockStatus {
39
+ BlueLockState_t state;
40
+ uint32_t openings;
41
+ } BlueLockStatus_t;
42
+
43
+
44
+ #ifdef __cplusplus
45
+ extern "C" {
46
+ #endif
47
+
48
+ /* Helper constants for enums */
49
+ #define _BLUELOCKSTATE_MIN BlueLockState_UnknownLockState
50
+ #define _BLUELOCKSTATE_MAX BlueLockState_Jammed
51
+ #define _BLUELOCKSTATE_ARRAYSIZE ((BlueLockState_t)(BlueLockState_Jammed+1))
52
+
53
+
54
+ #define BlueLockStatus_t_state_ENUMTYPE BlueLockState_t
55
+
56
+
57
+ /* Initializer values for message structs */
58
+ #define BLUELOCKCONFIG_INIT_DEFAULT {0, {BLUELOCALTIMESCHEDULE_INIT_DEFAULT, BLUELOCALTIMESCHEDULE_INIT_DEFAULT, BLUELOCALTIMESCHEDULE_INIT_DEFAULT, BLUELOCALTIMESCHEDULE_INIT_DEFAULT}, false, 0, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, 5u, 3600u}
59
+ #define BLUELOCKSTATUS_INIT_DEFAULT {_BLUELOCKSTATE_MIN, 0}
60
+ #define BLUELOCKCONFIG_INIT_ZERO {0, {BLUELOCALTIMESCHEDULE_INIT_ZERO, BLUELOCALTIMESCHEDULE_INIT_ZERO, BLUELOCALTIMESCHEDULE_INIT_ZERO, BLUELOCALTIMESCHEDULE_INIT_ZERO}, 0, 0, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, 0, 0}
61
+ #define BLUELOCKSTATUS_INIT_ZERO {_BLUELOCKSTATE_MIN, 0}
62
+
63
+ /* Field tags (for use in manual encoding/decoding) */
64
+ #define BLUELOCKCONFIG_OPENSCHEDULES_TAG 1
65
+ #define BLUELOCKCONFIG_OPENSCHEDULEBYUSER_TAG 2
66
+ #define BLUELOCKCONFIG_CLOSEDDAYS_TAG 20
67
+ #define BLUELOCKCONFIG_DEFAULTOPENTIMESEC_TAG 21
68
+ #define BLUELOCKCONFIG_EXTENDEDOPENTIMESEC_TAG 22
69
+ #define BLUELOCKSTATUS_STATE_TAG 1
70
+ #define BLUELOCKSTATUS_OPENINGS_TAG 2
71
+
72
+ /* Struct field encoding specification for nanopb */
73
+ #define BLUELOCKCONFIG_FIELDLIST(X, a) \
74
+ X(a, STATIC, REPEATED, MESSAGE, openSchedules, 1) \
75
+ X(a, STATIC, REQUIRED, BOOL, openScheduleByUser, 2) \
76
+ X(a, STATIC, REPEATED, UINT32, closedDays, 20) \
77
+ X(a, STATIC, REQUIRED, UINT32, defaultOpenTimeSec, 21) \
78
+ X(a, STATIC, REQUIRED, UINT32, extendedOpenTimeSec, 22)
79
+ #define BLUELOCKCONFIG_CALLBACK NULL
80
+ #define BLUELOCKCONFIG_DEFAULT (const pb_byte_t*)"\x10\x00\xa8\x01\x05\xb0\x01\x90\x1c\x00"
81
+ #define BlueLockConfig_t_openSchedules_MSGTYPE BlueLocalTimeSchedule_t
82
+
83
+ #define BLUELOCKSTATUS_FIELDLIST(X, a) \
84
+ X(a, STATIC, REQUIRED, UENUM, state, 1) \
85
+ X(a, STATIC, REQUIRED, UINT32, openings, 2)
86
+ #define BLUELOCKSTATUS_CALLBACK NULL
87
+ #define BLUELOCKSTATUS_DEFAULT (const pb_byte_t*)"\x08\x01\x00"
88
+
89
+ extern const pb_msgdesc_t BlueLockConfig_t_msg;
90
+ extern const pb_msgdesc_t BlueLockStatus_t_msg;
91
+
92
+ /* Defines for backwards compatibility with code written before nanopb-0.4.0 */
93
+ #define BLUELOCKCONFIG_FIELDS &BlueLockConfig_t_msg
94
+ #define BLUELOCKSTATUS_FIELDS &BlueLockStatus_t_msg
95
+
96
+ /* Maximum encoded size of messages (where known) */
97
+ #define BLUELOCKCONFIG_SIZE 338
98
+ #define BLUELOCKSTATUS_SIZE 8
99
+
100
+ #ifdef __cplusplus
101
+ } /* extern "C" */
102
+ #endif
103
+
104
+ #endif
@@ -0,0 +1,22 @@
1
+ /* Automatically generated nanopb constant definitions */
2
+ /* Generated by nanopb-0.4.8-dev */
3
+
4
+ #include "BlueSDK.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(BLUEI18N, BlueI18n_t, AUTO)
10
+
11
+
12
+ PB_BIND(BLUEDEVICEDETAILSBLUETOOTH, BlueDeviceDetailsBluetooth_t, AUTO)
13
+
14
+
15
+ PB_BIND(BLUEDEVICEDETAILSUWB, BlueDeviceDetailsUWB_t, AUTO)
16
+
17
+
18
+ PB_BIND(BLUEDEVICEINFO, BlueDeviceInfo_t, AUTO)
19
+
20
+
21
+
22
+
@@ -0,0 +1,159 @@
1
+ /* Automatically generated nanopb header */
2
+ /* Generated by nanopb-0.4.8-dev */
3
+
4
+ #ifndef PB_BLUESDK_PB_H_INCLUDED
5
+ #define PB_BLUESDK_PB_H_INCLUDED
6
+ #include "pb.h"
7
+ #include "BlueCore.pb.h"
8
+
9
+ #if PB_PROTO_HEADER_VERSION != 40
10
+ #error Regenerate this file with the current version of nanopb generator.
11
+ #endif
12
+
13
+ /* Enum definitions */
14
+ typedef enum BlueDeviceType {
15
+ BlueDeviceType_BluetoothDevice = 1,
16
+ BlueDeviceType_UWBDevice = 2
17
+ } BlueDeviceType_t;
18
+
19
+ /* Struct definitions */
20
+ typedef struct BlueI18n {
21
+ pb_callback_t nfcWaitMessage;
22
+ pb_callback_t nfcOssSuccessReadConfigurationMessage;
23
+ pb_callback_t nfcOssSuccessUpdateConfigurationMessage;
24
+ pb_callback_t nfcOssSuccessClearEventsMessage;
25
+ pb_callback_t nfcOssSuccessIsProvisionedMessage;
26
+ pb_callback_t nfcOssSuccessProvisionMessage;
27
+ pb_callback_t nfcOssSuccessUnprovisionMessage;
28
+ pb_callback_t nfcOssSuccessFormatMessage;
29
+ } BlueI18n_t;
30
+
31
+ typedef struct BlueDeviceDetailsBluetooth {
32
+ int32_t rssi;
33
+ int32_t txPower;
34
+ bool isIBeacon;
35
+ } BlueDeviceDetailsBluetooth_t;
36
+
37
+ typedef struct BlueDeviceDetailsUWB {
38
+ bool notUsed;
39
+ } BlueDeviceDetailsUWB_t;
40
+
41
+ typedef struct BlueDeviceInfo {
42
+ BlueDeviceType_t deviceType;
43
+ pb_callback_t deviceId;
44
+ float distanceMeters;
45
+ bool has_manufacturerInfo;
46
+ BlueBleManufacturerInfo_t manufacturerInfo;
47
+ pb_size_t which_details;
48
+ union {
49
+ BlueDeviceDetailsBluetooth_t bluetooth;
50
+ BlueDeviceDetailsUWB_t uwb;
51
+ } details;
52
+ } BlueDeviceInfo_t;
53
+
54
+
55
+ #ifdef __cplusplus
56
+ extern "C" {
57
+ #endif
58
+
59
+ /* Helper constants for enums */
60
+ #define _BLUEDEVICETYPE_MIN BlueDeviceType_BluetoothDevice
61
+ #define _BLUEDEVICETYPE_MAX BlueDeviceType_UWBDevice
62
+ #define _BLUEDEVICETYPE_ARRAYSIZE ((BlueDeviceType_t)(BlueDeviceType_UWBDevice+1))
63
+
64
+
65
+
66
+
67
+ #define BlueDeviceInfo_t_deviceType_ENUMTYPE BlueDeviceType_t
68
+
69
+
70
+ /* Initializer values for message structs */
71
+ #define BLUEI18N_INIT_DEFAULT {{{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}}
72
+ #define BLUEDEVICEDETAILSBLUETOOTH_INIT_DEFAULT {0, 0, 0}
73
+ #define BLUEDEVICEDETAILSUWB_INIT_DEFAULT {0}
74
+ #define BLUEDEVICEINFO_INIT_DEFAULT {_BLUEDEVICETYPE_MIN, {{NULL}, NULL}, 0, false, BLUEBLEMANUFACTURERINFO_INIT_DEFAULT, 0, {BLUEDEVICEDETAILSBLUETOOTH_INIT_DEFAULT}}
75
+ #define BLUEI18N_INIT_ZERO {{{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}}
76
+ #define BLUEDEVICEDETAILSBLUETOOTH_INIT_ZERO {0, 0, 0}
77
+ #define BLUEDEVICEDETAILSUWB_INIT_ZERO {0}
78
+ #define BLUEDEVICEINFO_INIT_ZERO {_BLUEDEVICETYPE_MIN, {{NULL}, NULL}, 0, false, BLUEBLEMANUFACTURERINFO_INIT_ZERO, 0, {BLUEDEVICEDETAILSBLUETOOTH_INIT_ZERO}}
79
+
80
+ /* Field tags (for use in manual encoding/decoding) */
81
+ #define BLUEI18N_NFCWAITMESSAGE_TAG 1
82
+ #define BLUEI18N_NFCOSSSUCCESSREADCONFIGURATIONMESSAGE_TAG 2
83
+ #define BLUEI18N_NFCOSSSUCCESSUPDATECONFIGURATIONMESSAGE_TAG 3
84
+ #define BLUEI18N_NFCOSSSUCCESSCLEAREVENTSMESSAGE_TAG 4
85
+ #define BLUEI18N_NFCOSSSUCCESSISPROVISIONEDMESSAGE_TAG 5
86
+ #define BLUEI18N_NFCOSSSUCCESSPROVISIONMESSAGE_TAG 6
87
+ #define BLUEI18N_NFCOSSSUCCESSUNPROVISIONMESSAGE_TAG 7
88
+ #define BLUEI18N_NFCOSSSUCCESSFORMATMESSAGE_TAG 8
89
+ #define BLUEDEVICEDETAILSBLUETOOTH_RSSI_TAG 1
90
+ #define BLUEDEVICEDETAILSBLUETOOTH_TXPOWER_TAG 2
91
+ #define BLUEDEVICEDETAILSBLUETOOTH_ISIBEACON_TAG 3
92
+ #define BLUEDEVICEDETAILSUWB_NOTUSED_TAG 1
93
+ #define BLUEDEVICEINFO_DEVICETYPE_TAG 1
94
+ #define BLUEDEVICEINFO_DEVICEID_TAG 2
95
+ #define BLUEDEVICEINFO_DISTANCEMETERS_TAG 3
96
+ #define BLUEDEVICEINFO_MANUFACTURERINFO_TAG 4
97
+ #define BLUEDEVICEINFO_BLUETOOTH_TAG 5
98
+ #define BLUEDEVICEINFO_UWB_TAG 6
99
+
100
+ /* Struct field encoding specification for nanopb */
101
+ #define BLUEI18N_FIELDLIST(X, a) \
102
+ X(a, CALLBACK, REQUIRED, STRING, nfcWaitMessage, 1) \
103
+ X(a, CALLBACK, REQUIRED, STRING, nfcOssSuccessReadConfigurationMessage, 2) \
104
+ X(a, CALLBACK, REQUIRED, STRING, nfcOssSuccessUpdateConfigurationMessage, 3) \
105
+ X(a, CALLBACK, REQUIRED, STRING, nfcOssSuccessClearEventsMessage, 4) \
106
+ X(a, CALLBACK, REQUIRED, STRING, nfcOssSuccessIsProvisionedMessage, 5) \
107
+ X(a, CALLBACK, REQUIRED, STRING, nfcOssSuccessProvisionMessage, 6) \
108
+ X(a, CALLBACK, REQUIRED, STRING, nfcOssSuccessUnprovisionMessage, 7) \
109
+ X(a, CALLBACK, REQUIRED, STRING, nfcOssSuccessFormatMessage, 8)
110
+ #define BLUEI18N_CALLBACK pb_default_field_callback
111
+ #define BLUEI18N_DEFAULT NULL
112
+
113
+ #define BLUEDEVICEDETAILSBLUETOOTH_FIELDLIST(X, a) \
114
+ X(a, STATIC, REQUIRED, INT32, rssi, 1) \
115
+ X(a, STATIC, REQUIRED, INT32, txPower, 2) \
116
+ X(a, STATIC, REQUIRED, BOOL, isIBeacon, 3)
117
+ #define BLUEDEVICEDETAILSBLUETOOTH_CALLBACK NULL
118
+ #define BLUEDEVICEDETAILSBLUETOOTH_DEFAULT NULL
119
+
120
+ #define BLUEDEVICEDETAILSUWB_FIELDLIST(X, a) \
121
+ X(a, STATIC, REQUIRED, BOOL, notUsed, 1)
122
+ #define BLUEDEVICEDETAILSUWB_CALLBACK NULL
123
+ #define BLUEDEVICEDETAILSUWB_DEFAULT NULL
124
+
125
+ #define BLUEDEVICEINFO_FIELDLIST(X, a) \
126
+ X(a, STATIC, REQUIRED, UENUM, deviceType, 1) \
127
+ X(a, CALLBACK, REQUIRED, STRING, deviceId, 2) \
128
+ X(a, STATIC, REQUIRED, FLOAT, distanceMeters, 3) \
129
+ X(a, STATIC, OPTIONAL, MESSAGE, manufacturerInfo, 4) \
130
+ X(a, STATIC, ONEOF, MESSAGE, (details,bluetooth,details.bluetooth), 5) \
131
+ X(a, STATIC, ONEOF, MESSAGE, (details,uwb,details.uwb), 6)
132
+ #define BLUEDEVICEINFO_CALLBACK pb_default_field_callback
133
+ #define BLUEDEVICEINFO_DEFAULT (const pb_byte_t*)"\x08\x01\x00"
134
+ #define BlueDeviceInfo_t_manufacturerInfo_MSGTYPE BlueBleManufacturerInfo_t
135
+ #define BlueDeviceInfo_t_details_bluetooth_MSGTYPE BlueDeviceDetailsBluetooth_t
136
+ #define BlueDeviceInfo_t_details_uwb_MSGTYPE BlueDeviceDetailsUWB_t
137
+
138
+ extern const pb_msgdesc_t BlueI18n_t_msg;
139
+ extern const pb_msgdesc_t BlueDeviceDetailsBluetooth_t_msg;
140
+ extern const pb_msgdesc_t BlueDeviceDetailsUWB_t_msg;
141
+ extern const pb_msgdesc_t BlueDeviceInfo_t_msg;
142
+
143
+ /* Defines for backwards compatibility with code written before nanopb-0.4.0 */
144
+ #define BLUEI18N_FIELDS &BlueI18n_t_msg
145
+ #define BLUEDEVICEDETAILSBLUETOOTH_FIELDS &BlueDeviceDetailsBluetooth_t_msg
146
+ #define BLUEDEVICEDETAILSUWB_FIELDS &BlueDeviceDetailsUWB_t_msg
147
+ #define BLUEDEVICEINFO_FIELDS &BlueDeviceInfo_t_msg
148
+
149
+ /* Maximum encoded size of messages (where known) */
150
+ /* BlueI18n_size depends on runtime parameters */
151
+ /* BlueDeviceInfo_size depends on runtime parameters */
152
+ #define BLUEDEVICEDETAILSBLUETOOTH_SIZE 24
153
+ #define BLUEDEVICEDETAILSUWB_SIZE 2
154
+
155
+ #ifdef __cplusplus
156
+ } /* extern "C" */
157
+ #endif
158
+
159
+ #endif
@@ -0,0 +1,64 @@
1
+ /* Automatically generated nanopb constant definitions */
2
+ /* Generated by nanopb-0.4.8-dev */
3
+
4
+ #include "BlueSystem.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(BLUETIMEOFFSETPERIOD, BlueTimeOffsetPeriod_t, AUTO)
10
+
11
+
12
+ PB_BIND(BLUEBASECONFIG, BlueBaseConfig_t, AUTO)
13
+
14
+
15
+ PB_BIND(BLUEBLECONFIG, BlueBleConfig_t, 2)
16
+
17
+
18
+ PB_BIND(BLUEONLINECONFIG, BlueOnlineConfig_t, AUTO)
19
+
20
+
21
+ PB_BIND(BLUEACCESSCONFIG, BlueAccessConfig_t, AUTO)
22
+
23
+
24
+ PB_BIND(BLUEOSSCONFIG, BlueOssConfig_t, AUTO)
25
+
26
+
27
+ PB_BIND(BLUESYSTEMCONFIG, BlueSystemConfig_t, 2)
28
+
29
+
30
+ PB_BIND(BLUESYSTEMTIMEUNIX, BlueSystemTimeUnix_t, AUTO)
31
+
32
+
33
+ PB_BIND(BLUESYSTEMUPDATE, BlueSystemUpdate_t, 2)
34
+
35
+
36
+ PB_BIND(BLUESYSTEMSETTINGS, BlueSystemSettings_t, AUTO)
37
+
38
+
39
+ PB_BIND(BLUESYSTEMPROVISIONING, BlueSystemProvisioning_t, 2)
40
+
41
+
42
+ PB_BIND(BLUESYSTEMSTATUS, BlueSystemStatus_t, AUTO)
43
+
44
+
45
+ PB_BIND(BLUESYSTEMLOGQUERY, BlueSystemLogQuery_t, AUTO)
46
+
47
+
48
+ PB_BIND(BLUESYSTEMLOGENTRY, BlueSystemLogEntry_t, AUTO)
49
+
50
+
51
+ PB_BIND(BLUESYSTEMLOGRESULT, BlueSystemLogResult_t, 2)
52
+
53
+
54
+ PB_BIND(BLUEEVENTLOGQUERY, BlueEventLogQuery_t, AUTO)
55
+
56
+
57
+ PB_BIND(BLUEEVENTLOGRESULT, BlueEventLogResult_t, 2)
58
+
59
+
60
+ PB_BIND(BLUEBLACKLISTENTRIES, BlueBlacklistEntries_t, 2)
61
+
62
+
63
+
64
+