Wirepas SDK
app_setup_int.h
Go to the documentation of this file.
1/* Copyright 2025 Wirepas Ltd. All Rights Reserved.
2 *
3 * See file LICENSE.txt for full license details.
4 *
5 */
6#ifndef APP_SETUP_INT_H
7#define APP_SETUP_INT_H
32#define APP_SETUP_FORMAT 0xabb5e70b
33
37#define APP_SETUP_VERSION 2
38
42#define APP_SETUP_CLEAR_BYTE 0xff
43
47#define APP_SETUP_KEY_SIZE_BYTES 16
48
52#define APP_SETUP_PROV_UID_MAX_SIZE_BYTES 79
53
57#define APP_SETUP_AUTH_UID_SIZE_BYTES 16
58
66typedef struct __attribute__((__packed__))
67{
71 uint32_t format;
72
76 uint16_t version;
77
81 uint16_t length;
82
84
88typedef struct __attribute__((__packed__))
89{
93 uint32_t id;
94
98 uint8_t role;
103
104 uint8_t reserved;
105
107
111typedef struct __attribute__((__packed__))
112{
113
118
123
128
133
134 uint8_t reserved;
135
139 uint8_t network_enc_key[APP_SETUP_KEY_SIZE_BYTES];
140
144 uint8_t network_auth_key[APP_SETUP_KEY_SIZE_BYTES];
145
149 uint8_t mgmt_enc_key[APP_SETUP_KEY_SIZE_BYTES];
150
154 uint8_t mgmt_auth_key[APP_SETUP_KEY_SIZE_BYTES];
155
157
161typedef struct __attribute__((__packed__))
162{
166 uint8_t method;
167
171 uint8_t num_retries;
172
176 uint16_t timeout;
177
181 uint8_t enc_key[APP_SETUP_KEY_SIZE_BYTES];
182
186 uint8_t auth_key[APP_SETUP_KEY_SIZE_BYTES];
187
192
197
199
203typedef struct __attribute__((__packed__))
204{
209
214
218 uint16_t reserved;
219
221
253
254#endif // APP_SETUP_INT_H
app_setup_action_t action
#define APP_SETUP_PROV_UID_MAX_SIZE_BYTES
Maximum size of provisioning UID.
app_setup_hdr_t header
#define APP_SETUP_KEY_SIZE_BYTES
All security keys are 16 bytes long.
app_setup_network_t network
app_setup_provisioning_t provisioning
app_setup_node_t node
Application setup data structure.
Provisioning configuration.
Actions for application setup.
Application setup data header.
Node configuration.
Key management configuration.