Select one of the symbols to view example projects that use it.
 
Outline
#define PROTOBUF_C__NO_DEPRECATED
#include "wifi_constants.pb-c.h"
wifi_attempt_failed__init(WifiAttemptFailed *)
wifi_attempt_failed__get_packed_size(const WifiAttemptFailed *)
wifi_attempt_failed__pack(const WifiAttemptFailed *, uint8_t *)
wifi_attempt_failed__pack_to_buffer(const WifiAttemptFailed *, ProtobufCBuffer *)
wifi_attempt_failed__unpack(ProtobufCAllocator *, size_t, const uint8_t *)
wifi_attempt_failed__free_unpacked(WifiAttemptFailed *, ProtobufCAllocator *)
wifi_connected_state__init(WifiConnectedState *)
wifi_connected_state__get_packed_size(const WifiConnectedState *)
wifi_connected_state__pack(const WifiConnectedState *, uint8_t *)
wifi_connected_state__pack_to_buffer(const WifiConnectedState *, ProtobufCBuffer *)
wifi_connected_state__unpack(ProtobufCAllocator *, size_t, const uint8_t *)
wifi_connected_state__free_unpacked(WifiConnectedState *, ProtobufCAllocator *)
wifi_attempt_failed__field_descriptors
wifi_attempt_failed__field_indices_by_name
wifi_attempt_failed__number_ranges
wifi_attempt_failed__descriptor
wifi_connected_state__field_descriptors
wifi_connected_state__field_indices_by_name
wifi_connected_state__number_ranges
wifi_connected_state__descriptor
wifi_station_state__enum_values_by_number
wifi_station_state__value_ranges
wifi_station_state__enum_values_by_name
wifi_station_state__descriptor
wifi_connect_failed_reason__enum_values_by_number
wifi_connect_failed_reason__value_ranges
wifi_connect_failed_reason__enum_values_by_name
wifi_connect_failed_reason__descriptor
wifi_auth_mode__enum_values_by_number
wifi_auth_mode__value_ranges
wifi_auth_mode__enum_values_by_name
wifi_auth_mode__descriptor
Files
loading (4/5)...
SourceVuESP-IDF Framework and ExamplesESP-IDFcomponents/wifi_provisioning/proto-c/wifi_constants.pb-c.c
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/* Generated by the protocol buffer compiler. DO NOT EDIT! */ /* Generated from: wifi_constants.proto */ /* Do not generate deprecated warnings for self */ #ifndef PROTOBUF_C__NO_DEPRECATED #define PROTOBUF_C__NO_DEPRECATED #endif #include "wifi_constants.pb-c.h" void wifi_attempt_failed__init (WifiAttemptFailed *message) { static const WifiAttemptFailed init_value = WIFI_ATTEMPT_FAILED__INIT; *message = init_value; }{ ... } size_t wifi_attempt_failed__get_packed_size (const WifiAttemptFailed *message) { assert(message->base.descriptor == &wifi_attempt_failed__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); }{ ... } size_t wifi_attempt_failed__pack (const WifiAttemptFailed *message, uint8_t *out) { assert(message->base.descriptor == &wifi_attempt_failed__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); }{ ... } size_t wifi_attempt_failed__pack_to_buffer (const WifiAttemptFailed *message, ProtobufCBuffer *buffer) { assert(message->base.descriptor == &wifi_attempt_failed__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); }{ ... } WifiAttemptFailed * wifi_attempt_failed__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data) { return (WifiAttemptFailed *) protobuf_c_message_unpack (&wifi_attempt_failed__descriptor, allocator, len, data); }{ ... } void wifi_attempt_failed__free_unpacked (WifiAttemptFailed *message, ProtobufCAllocator *allocator) { if(!message) return; assert(message->base.descriptor == &wifi_attempt_failed__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); }{ ... } void wifi_connected_state__init (WifiConnectedState *message) { static const WifiConnectedState init_value = WIFI_CONNECTED_STATE__INIT; *message = init_value; }{ ... } size_t wifi_connected_state__get_packed_size (const WifiConnectedState *message) { assert(message->base.descriptor == &wifi_connected_state__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); }{ ... } size_t wifi_connected_state__pack (const WifiConnectedState *message, uint8_t *out) { assert(message->base.descriptor == &wifi_connected_state__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); }{ ... } size_t wifi_connected_state__pack_to_buffer (const WifiConnectedState *message, ProtobufCBuffer *buffer) { assert(message->base.descriptor == &wifi_connected_state__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); }{ ... } WifiConnectedState * wifi_connected_state__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data) { return (WifiConnectedState *) protobuf_c_message_unpack (&wifi_connected_state__descriptor, allocator, len, data); }{ ... } void wifi_connected_state__free_unpacked (WifiConnectedState *message, ProtobufCAllocator *allocator) { if(!message) return; assert(message->base.descriptor == &wifi_connected_state__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); }{ ... } static const ProtobufCFieldDescriptor wifi_attempt_failed__field_descriptors[1] = { { "attempts_remaining", 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_UINT32, 0, /* quantifier_offset */ offsetof(WifiAttemptFailed, attempts_remaining), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }{...}, }{...}; static const unsigned wifi_attempt_failed__field_indices_by_name[] = { 0, /* field[0] = attempts_remaining */ }{...}; static const ProtobufCIntRange wifi_attempt_failed__number_ranges[1 + 1] = { { 1, 0 }, { 0, 1 } }{...}; const ProtobufCMessageDescriptor wifi_attempt_failed__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "WifiAttemptFailed", "WifiAttemptFailed", "WifiAttemptFailed", "", sizeof(WifiAttemptFailed), 1, wifi_attempt_failed__field_descriptors, wifi_attempt_failed__field_indices_by_name, 1, wifi_attempt_failed__number_ranges, (ProtobufCMessageInit) wifi_attempt_failed__init, NULL,NULL,NULL /* reserved[123] */ }{...}; static const ProtobufCFieldDescriptor wifi_connected_state__field_descriptors[5] = { { "ip4_addr", 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ offsetof(WifiConnectedState, ip4_addr), NULL, &protobuf_c_empty_string, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }{...}, { "auth_mode", 2, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ offsetof(WifiConnectedState, auth_mode), &wifi_auth_mode__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }{...}, { "ssid", 3, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_BYTES, 0, /* quantifier_offset */ offsetof(WifiConnectedState, ssid), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }{...}, { "bssid", 4, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_BYTES, 0, /* quantifier_offset */ offsetof(WifiConnectedState, bssid), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }{...}, { "channel", 5, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_INT32, 0, /* quantifier_offset */ offsetof(WifiConnectedState, channel), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }{...}, }{...}; static const unsigned wifi_connected_state__field_indices_by_name[] = { 1, /* field[1] = auth_mode */ 3, /* field[3] = bssid */ 4, /* field[4] = channel */ 0, /* field[0] = ip4_addr */ 2, /* field[2] = ssid */ }{...}; static const ProtobufCIntRange wifi_connected_state__number_ranges[1 + 1] = { { 1, 0 }, { 0, 5 } }{...}; const ProtobufCMessageDescriptor wifi_connected_state__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "WifiConnectedState", "WifiConnectedState", "WifiConnectedState", "", sizeof(WifiConnectedState), 5, wifi_connected_state__field_descriptors, wifi_connected_state__field_indices_by_name, 1, wifi_connected_state__number_ranges, (ProtobufCMessageInit) wifi_connected_state__init, NULL,NULL,NULL /* reserved[123] */ }{...}; static const ProtobufCEnumValue wifi_station_state__enum_values_by_number[4] = { { "Connected", "WIFI_STATION_STATE__Connected", 0 }, { "Connecting", "WIFI_STATION_STATE__Connecting", 1 }, { "Disconnected", "WIFI_STATION_STATE__Disconnected", 2 }, { "ConnectionFailed", "WIFI_STATION_STATE__ConnectionFailed", 3 }, }{...}; static const ProtobufCIntRange wifi_station_state__value_ranges[] = { {0, 0},{0, 4} }{...}; static const ProtobufCEnumValueIndex wifi_station_state__enum_values_by_name[4] = { { "Connected", 0 }, { "Connecting", 1 }, { "ConnectionFailed", 3 }, { "Disconnected", 2 }, }{...}; const ProtobufCEnumDescriptor wifi_station_state__descriptor = { PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC, "WifiStationState", "WifiStationState", "WifiStationState", "", 4, wifi_station_state__enum_values_by_number, 4, wifi_station_state__enum_values_by_name, 1, wifi_station_state__value_ranges, NULL,NULL,NULL,NULL /* reserved[1234] */ }{...}; static const ProtobufCEnumValue wifi_connect_failed_reason__enum_values_by_number[2] = { { "AuthError", "WIFI_CONNECT_FAILED_REASON__AuthError", 0 }, { "NetworkNotFound", "WIFI_CONNECT_FAILED_REASON__NetworkNotFound", 1 }, }{...}; static const ProtobufCIntRange wifi_connect_failed_reason__value_ranges[] = { {0, 0},{0, 2} }{...}; static const ProtobufCEnumValueIndex wifi_connect_failed_reason__enum_values_by_name[2] = { { "AuthError", 0 }, { "NetworkNotFound", 1 }, }{...}; const ProtobufCEnumDescriptor wifi_connect_failed_reason__descriptor = { PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC, "WifiConnectFailedReason", "WifiConnectFailedReason", "WifiConnectFailedReason", "", 2, wifi_connect_failed_reason__enum_values_by_number, 2, wifi_connect_failed_reason__enum_values_by_name, 1, wifi_connect_failed_reason__value_ranges, NULL,NULL,NULL,NULL /* reserved[1234] */ }{...}; static const ProtobufCEnumValue wifi_auth_mode__enum_values_by_number[8] = { { "Open", "WIFI_AUTH_MODE__Open", 0 }, { "WEP", "WIFI_AUTH_MODE__WEP", 1 }, { "WPA_PSK", "WIFI_AUTH_MODE__WPA_PSK", 2 }, { "WPA2_PSK", "WIFI_AUTH_MODE__WPA2_PSK", 3 }, { "WPA_WPA2_PSK", "WIFI_AUTH_MODE__WPA_WPA2_PSK", 4 }, { "WPA2_ENTERPRISE", "WIFI_AUTH_MODE__WPA2_ENTERPRISE", 5 }, { "WPA3_PSK", "WIFI_AUTH_MODE__WPA3_PSK", 6 }, { "WPA2_WPA3_PSK", "WIFI_AUTH_MODE__WPA2_WPA3_PSK", 7 }, }{...}; static const ProtobufCIntRange wifi_auth_mode__value_ranges[] = { {0, 0},{0, 8} }{...}; static const ProtobufCEnumValueIndex wifi_auth_mode__enum_values_by_name[8] = { { "Open", 0 }, { "WEP", 1 }, { "WPA2_ENTERPRISE", 5 }, { "WPA2_PSK", 3 }, { "WPA2_WPA3_PSK", 7 }, { "WPA3_PSK", 6 }, { "WPA_PSK", 2 }, { "WPA_WPA2_PSK", 4 }, }{...}; const ProtobufCEnumDescriptor wifi_auth_mode__descriptor = { PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC, "WifiAuthMode", "WifiAuthMode", "WifiAuthMode", "", 8, wifi_auth_mode__enum_values_by_number, 8, wifi_auth_mode__enum_values_by_name, 1, wifi_auth_mode__value_ranges, NULL,NULL,NULL,NULL /* reserved[1234] */ }{...};
Details
Show:
from
Types: Columns:
This file uses the notable symbols shown below. Click anywhere in the file to view more details.