aboutsummaryrefslogtreecommitdiff
path: root/embassy-net-esp-hosted/src/proto.rs
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2023-06-09 03:36:48 +0200
committerDario Nieuwenhuis <[email protected]>2023-06-22 21:12:10 +0200
commit6c123596b7d48ee66ea93e8b1515e91231e9bced (patch)
tree7f657d78d2fac5a24982d74b909789d60a2dfee7 /embassy-net-esp-hosted/src/proto.rs
parent1f2be2dac5eeed739d2866b9b63ca06fdd84c276 (diff)
wip: esp-hosted net driver.
Diffstat (limited to 'embassy-net-esp-hosted/src/proto.rs')
-rw-r--r--embassy-net-esp-hosted/src/proto.rs598
1 files changed, 598 insertions, 0 deletions
diff --git a/embassy-net-esp-hosted/src/proto.rs b/embassy-net-esp-hosted/src/proto.rs
new file mode 100644
index 000000000..e105e393c
--- /dev/null
+++ b/embassy-net-esp-hosted/src/proto.rs
@@ -0,0 +1,598 @@
1use heapless::{String, Vec};
2
3/// internal supporting structures for CtrlMsg
4
5#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
6pub struct ScanResult {
7 #[noproto(tag = "1")]
8 pub ssid: String<32>,
9 #[noproto(tag = "2")]
10 pub chnl: u32,
11 #[noproto(tag = "3")]
12 pub rssi: u32,
13 #[noproto(tag = "4")]
14 pub bssid: String<32>,
15 #[noproto(tag = "5")]
16 pub sec_prot: CtrlWifiSecProt,
17}
18
19#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
20pub struct ConnectedStaList {
21 #[noproto(tag = "1")]
22 pub mac: String<32>,
23 #[noproto(tag = "2")]
24 pub rssi: u32,
25}
26/// * Req/Resp structure *
27
28#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
29pub struct CtrlMsgReqGetMacAddress {
30 #[noproto(tag = "1")]
31 pub mode: u32,
32}
33
34#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
35pub struct CtrlMsgRespGetMacAddress {
36 #[noproto(tag = "1")]
37 pub mac: String<32>,
38 #[noproto(tag = "2")]
39 pub resp: u32,
40}
41
42#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
43pub struct CtrlMsgReqGetMode {}
44
45#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
46pub struct CtrlMsgRespGetMode {
47 #[noproto(tag = "1")]
48 pub mode: u32,
49 #[noproto(tag = "2")]
50 pub resp: u32,
51}
52
53#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
54pub struct CtrlMsgReqSetMode {
55 #[noproto(tag = "1")]
56 pub mode: u32,
57}
58
59#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
60pub struct CtrlMsgRespSetMode {
61 #[noproto(tag = "1")]
62 pub resp: u32,
63}
64
65#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
66pub struct CtrlMsgReqGetStatus {}
67
68#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
69pub struct CtrlMsgRespGetStatus {
70 #[noproto(tag = "1")]
71 pub resp: u32,
72}
73
74#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
75pub struct CtrlMsgReqSetMacAddress {
76 #[noproto(tag = "1")]
77 pub mac: String<32>,
78 #[noproto(tag = "2")]
79 pub mode: u32,
80}
81
82#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
83pub struct CtrlMsgRespSetMacAddress {
84 #[noproto(tag = "1")]
85 pub resp: u32,
86}
87
88#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
89pub struct CtrlMsgReqGetApConfig {}
90
91#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
92pub struct CtrlMsgRespGetApConfig {
93 #[noproto(tag = "1")]
94 pub ssid: String<32>,
95 #[noproto(tag = "2")]
96 pub bssid: String<32>,
97 #[noproto(tag = "3")]
98 pub rssi: u32,
99 #[noproto(tag = "4")]
100 pub chnl: u32,
101 #[noproto(tag = "5")]
102 pub sec_prot: CtrlWifiSecProt,
103 #[noproto(tag = "6")]
104 pub resp: u32,
105}
106
107#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
108pub struct CtrlMsgReqConnectAp {
109 #[noproto(tag = "1")]
110 pub ssid: String<32>,
111 #[noproto(tag = "2")]
112 pub pwd: String<32>,
113 #[noproto(tag = "3")]
114 pub bssid: String<32>,
115 #[noproto(tag = "4")]
116 pub is_wpa3_supported: bool,
117 #[noproto(tag = "5")]
118 pub listen_interval: u32,
119}
120
121#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
122pub struct CtrlMsgRespConnectAp {
123 #[noproto(tag = "1")]
124 pub resp: u32,
125 #[noproto(tag = "2")]
126 pub mac: String<32>,
127}
128
129#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
130pub struct CtrlMsgReqGetSoftApConfig {}
131
132#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
133pub struct CtrlMsgRespGetSoftApConfig {
134 #[noproto(tag = "1")]
135 pub ssid: String<32>,
136 #[noproto(tag = "2")]
137 pub pwd: String<32>,
138 #[noproto(tag = "3")]
139 pub chnl: u32,
140 #[noproto(tag = "4")]
141 pub sec_prot: CtrlWifiSecProt,
142 #[noproto(tag = "5")]
143 pub max_conn: u32,
144 #[noproto(tag = "6")]
145 pub ssid_hidden: bool,
146 #[noproto(tag = "7")]
147 pub bw: u32,
148 #[noproto(tag = "8")]
149 pub resp: u32,
150}
151
152#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
153pub struct CtrlMsgReqStartSoftAp {
154 #[noproto(tag = "1")]
155 pub ssid: String<32>,
156 #[noproto(tag = "2")]
157 pub pwd: String<32>,
158 #[noproto(tag = "3")]
159 pub chnl: u32,
160 #[noproto(tag = "4")]
161 pub sec_prot: CtrlWifiSecProt,
162 #[noproto(tag = "5")]
163 pub max_conn: u32,
164 #[noproto(tag = "6")]
165 pub ssid_hidden: bool,
166 #[noproto(tag = "7")]
167 pub bw: u32,
168}
169
170#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
171pub struct CtrlMsgRespStartSoftAp {
172 #[noproto(tag = "1")]
173 pub resp: u32,
174 #[noproto(tag = "2")]
175 pub mac: String<32>,
176}
177
178#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
179pub struct CtrlMsgReqScanResult {}
180
181#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
182pub struct CtrlMsgRespScanResult {
183 #[noproto(tag = "1")]
184 pub count: u32,
185 #[noproto(repeated, tag = "2")]
186 pub entries: Vec<ScanResult, 16>,
187 #[noproto(tag = "3")]
188 pub resp: u32,
189}
190
191#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
192pub struct CtrlMsgReqSoftApConnectedSta {}
193
194#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
195pub struct CtrlMsgRespSoftApConnectedSta {
196 #[noproto(tag = "1")]
197 pub num: u32,
198 #[noproto(repeated, tag = "2")]
199 pub stations: Vec<ConnectedStaList, 16>,
200 #[noproto(tag = "3")]
201 pub resp: u32,
202}
203
204#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
205pub struct CtrlMsgReqOtaBegin {}
206
207#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
208pub struct CtrlMsgRespOtaBegin {
209 #[noproto(tag = "1")]
210 pub resp: u32,
211}
212
213#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
214pub struct CtrlMsgReqOtaWrite {
215 #[noproto(tag = "1")]
216 pub ota_data: Vec<u8, 1024>,
217}
218
219#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
220pub struct CtrlMsgRespOtaWrite {
221 #[noproto(tag = "1")]
222 pub resp: u32,
223}
224
225#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
226pub struct CtrlMsgReqOtaEnd {}
227
228#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
229pub struct CtrlMsgRespOtaEnd {
230 #[noproto(tag = "1")]
231 pub resp: u32,
232}
233
234#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
235pub struct CtrlMsgReqVendorIeData {
236 #[noproto(tag = "1")]
237 pub element_id: u32,
238 #[noproto(tag = "2")]
239 pub length: u32,
240 #[noproto(tag = "3")]
241 pub vendor_oui: Vec<u8, 8>,
242 #[noproto(tag = "4")]
243 pub vendor_oui_type: u32,
244 #[noproto(tag = "5")]
245 pub payload: Vec<u8, 64>,
246}
247
248#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
249pub struct CtrlMsgReqSetSoftApVendorSpecificIe {
250 #[noproto(tag = "1")]
251 pub enable: bool,
252 #[noproto(tag = "2")]
253 pub r#type: CtrlVendorIeType,
254 #[noproto(tag = "3")]
255 pub idx: CtrlVendorIeid,
256 #[noproto(optional, tag = "4")]
257 pub vendor_ie_data: Option<CtrlMsgReqVendorIeData>,
258}
259
260#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
261pub struct CtrlMsgRespSetSoftApVendorSpecificIe {
262 #[noproto(tag = "1")]
263 pub resp: u32,
264}
265
266#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
267pub struct CtrlMsgReqSetWifiMaxTxPower {
268 #[noproto(tag = "1")]
269 pub wifi_max_tx_power: u32,
270}
271
272#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
273pub struct CtrlMsgRespSetWifiMaxTxPower {
274 #[noproto(tag = "1")]
275 pub resp: u32,
276}
277
278#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
279pub struct CtrlMsgReqGetWifiCurrTxPower {}
280
281#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
282pub struct CtrlMsgRespGetWifiCurrTxPower {
283 #[noproto(tag = "1")]
284 pub wifi_curr_tx_power: u32,
285 #[noproto(tag = "2")]
286 pub resp: u32,
287}
288
289#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
290pub struct CtrlMsgReqConfigHeartbeat {
291 #[noproto(tag = "1")]
292 pub enable: bool,
293 #[noproto(tag = "2")]
294 pub duration: u32,
295}
296
297#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
298pub struct CtrlMsgRespConfigHeartbeat {
299 #[noproto(tag = "1")]
300 pub resp: u32,
301}
302/// * Event structure *
303
304#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
305pub struct CtrlMsgEventEspInit {
306 #[noproto(tag = "1")]
307 pub init_data: Vec<u8, 64>,
308}
309
310#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
311pub struct CtrlMsgEventHeartbeat {
312 #[noproto(tag = "1")]
313 pub hb_num: u32,
314}
315
316#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
317pub struct CtrlMsgEventStationDisconnectFromAp {
318 #[noproto(tag = "1")]
319 pub resp: u32,
320}
321
322#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
323pub struct CtrlMsgEventStationDisconnectFromEspSoftAp {
324 #[noproto(tag = "1")]
325 pub resp: u32,
326 #[noproto(tag = "2")]
327 pub mac: String<32>,
328}
329
330#[derive(Debug, Default, Clone, Eq, PartialEq, noproto::Message)]
331pub struct CtrlMsg {
332 /// msg_type could be req, resp or Event
333 #[noproto(tag = "1")]
334 pub msg_type: CtrlMsgType,
335 /// msg id
336 #[noproto(tag = "2")]
337 pub msg_id: CtrlMsgId,
338 /// union of all msg ids
339 #[noproto(
340 oneof,
341 tags = "101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 301, 302, 303, 304"
342 )]
343 pub payload: Option<CtrlMsgPayload>,
344}
345
346/// union of all msg ids
347#[derive(Debug, Clone, Eq, PartialEq, noproto::Oneof)]
348pub enum CtrlMsgPayload {
349 /// * Requests *
350 #[noproto(tag = "101")]
351 ReqGetMacAddress(CtrlMsgReqGetMacAddress),
352 #[noproto(tag = "102")]
353 ReqSetMacAddress(CtrlMsgReqSetMacAddress),
354 #[noproto(tag = "103")]
355 ReqGetWifiMode(CtrlMsgReqGetMode),
356 #[noproto(tag = "104")]
357 ReqSetWifiMode(CtrlMsgReqSetMode),
358 #[noproto(tag = "105")]
359 ReqScanApList(CtrlMsgReqScanResult),
360 #[noproto(tag = "106")]
361 ReqGetApConfig(CtrlMsgReqGetApConfig),
362 #[noproto(tag = "107")]
363 ReqConnectAp(CtrlMsgReqConnectAp),
364 #[noproto(tag = "108")]
365 ReqDisconnectAp(CtrlMsgReqGetStatus),
366 #[noproto(tag = "109")]
367 ReqGetSoftapConfig(CtrlMsgReqGetSoftApConfig),
368 #[noproto(tag = "110")]
369 ReqSetSoftapVendorSpecificIe(CtrlMsgReqSetSoftApVendorSpecificIe),
370 #[noproto(tag = "111")]
371 ReqStartSoftap(CtrlMsgReqStartSoftAp),
372 #[noproto(tag = "112")]
373 ReqSoftapConnectedStasList(CtrlMsgReqSoftApConnectedSta),
374 #[noproto(tag = "113")]
375 ReqStopSoftap(CtrlMsgReqGetStatus),
376 #[noproto(tag = "114")]
377 ReqSetPowerSaveMode(CtrlMsgReqSetMode),
378 #[noproto(tag = "115")]
379 ReqGetPowerSaveMode(CtrlMsgReqGetMode),
380 #[noproto(tag = "116")]
381 ReqOtaBegin(CtrlMsgReqOtaBegin),
382 #[noproto(tag = "117")]
383 ReqOtaWrite(CtrlMsgReqOtaWrite),
384 #[noproto(tag = "118")]
385 ReqOtaEnd(CtrlMsgReqOtaEnd),
386 #[noproto(tag = "119")]
387 ReqSetWifiMaxTxPower(CtrlMsgReqSetWifiMaxTxPower),
388 #[noproto(tag = "120")]
389 ReqGetWifiCurrTxPower(CtrlMsgReqGetWifiCurrTxPower),
390 #[noproto(tag = "121")]
391 ReqConfigHeartbeat(CtrlMsgReqConfigHeartbeat),
392 /// * Responses *
393 #[noproto(tag = "201")]
394 RespGetMacAddress(CtrlMsgRespGetMacAddress),
395 #[noproto(tag = "202")]
396 RespSetMacAddress(CtrlMsgRespSetMacAddress),
397 #[noproto(tag = "203")]
398 RespGetWifiMode(CtrlMsgRespGetMode),
399 #[noproto(tag = "204")]
400 RespSetWifiMode(CtrlMsgRespSetMode),
401 #[noproto(tag = "205")]
402 RespScanApList(CtrlMsgRespScanResult),
403 #[noproto(tag = "206")]
404 RespGetApConfig(CtrlMsgRespGetApConfig),
405 #[noproto(tag = "207")]
406 RespConnectAp(CtrlMsgRespConnectAp),
407 #[noproto(tag = "208")]
408 RespDisconnectAp(CtrlMsgRespGetStatus),
409 #[noproto(tag = "209")]
410 RespGetSoftapConfig(CtrlMsgRespGetSoftApConfig),
411 #[noproto(tag = "210")]
412 RespSetSoftapVendorSpecificIe(CtrlMsgRespSetSoftApVendorSpecificIe),
413 #[noproto(tag = "211")]
414 RespStartSoftap(CtrlMsgRespStartSoftAp),
415 #[noproto(tag = "212")]
416 RespSoftapConnectedStasList(CtrlMsgRespSoftApConnectedSta),
417 #[noproto(tag = "213")]
418 RespStopSoftap(CtrlMsgRespGetStatus),
419 #[noproto(tag = "214")]
420 RespSetPowerSaveMode(CtrlMsgRespSetMode),
421 #[noproto(tag = "215")]
422 RespGetPowerSaveMode(CtrlMsgRespGetMode),
423 #[noproto(tag = "216")]
424 RespOtaBegin(CtrlMsgRespOtaBegin),
425 #[noproto(tag = "217")]
426 RespOtaWrite(CtrlMsgRespOtaWrite),
427 #[noproto(tag = "218")]
428 RespOtaEnd(CtrlMsgRespOtaEnd),
429 #[noproto(tag = "219")]
430 RespSetWifiMaxTxPower(CtrlMsgRespSetWifiMaxTxPower),
431 #[noproto(tag = "220")]
432 RespGetWifiCurrTxPower(CtrlMsgRespGetWifiCurrTxPower),
433 #[noproto(tag = "221")]
434 RespConfigHeartbeat(CtrlMsgRespConfigHeartbeat),
435 /// * Notifications *
436 #[noproto(tag = "301")]
437 EventEspInit(CtrlMsgEventEspInit),
438 #[noproto(tag = "302")]
439 EventHeartbeat(CtrlMsgEventHeartbeat),
440 #[noproto(tag = "303")]
441 EventStationDisconnectFromAp(CtrlMsgEventStationDisconnectFromAp),
442 #[noproto(tag = "304")]
443 EventStationDisconnectFromEspSoftAp(CtrlMsgEventStationDisconnectFromEspSoftAp),
444}
445
446/// Enums similar to ESP IDF
447#[derive(Debug, Default, Clone, Copy, Eq, PartialEq, Hash, PartialOrd, Ord, noproto::Enumeration)]
448#[repr(u32)]
449pub enum CtrlVendorIeType {
450 #[default]
451 Beacon = 0,
452 ProbeReq = 1,
453 ProbeResp = 2,
454 AssocReq = 3,
455 AssocResp = 4,
456}
457
458#[derive(Debug, Default, Clone, Copy, Eq, PartialEq, Hash, PartialOrd, Ord, noproto::Enumeration)]
459#[repr(u32)]
460pub enum CtrlVendorIeid {
461 #[default]
462 Id0 = 0,
463 Id1 = 1,
464}
465
466#[derive(Debug, Default, Clone, Copy, Eq, PartialEq, Hash, PartialOrd, Ord, noproto::Enumeration)]
467#[repr(u32)]
468pub enum CtrlWifiMode {
469 #[default]
470 None = 0,
471 Sta = 1,
472 Ap = 2,
473 Apsta = 3,
474}
475
476#[derive(Debug, Default, Clone, Copy, Eq, PartialEq, Hash, PartialOrd, Ord, noproto::Enumeration)]
477#[repr(u32)]
478pub enum CtrlWifiBw {
479 #[default]
480 BwInvalid = 0,
481 Ht20 = 1,
482 Ht40 = 2,
483}
484
485#[derive(Debug, Default, Clone, Copy, Eq, PartialEq, Hash, PartialOrd, Ord, noproto::Enumeration)]
486#[repr(u32)]
487pub enum CtrlWifiPowerSave {
488 #[default]
489 PsInvalid = 0,
490 MinModem = 1,
491 MaxModem = 2,
492}
493
494#[derive(Debug, Default, Clone, Copy, Eq, PartialEq, Hash, PartialOrd, Ord, noproto::Enumeration)]
495#[repr(u32)]
496pub enum CtrlWifiSecProt {
497 #[default]
498 Open = 0,
499 Wep = 1,
500 WpaPsk = 2,
501 Wpa2Psk = 3,
502 WpaWpa2Psk = 4,
503 Wpa2Enterprise = 5,
504 Wpa3Psk = 6,
505 Wpa2Wpa3Psk = 7,
506}
507
508/// enums for Control path
509#[derive(Debug, Default, Clone, Copy, Eq, PartialEq, Hash, PartialOrd, Ord, noproto::Enumeration)]
510#[repr(u32)]
511pub enum CtrlStatus {
512 #[default]
513 Connected = 0,
514 NotConnected = 1,
515 NoApFound = 2,
516 ConnectionFail = 3,
517 InvalidArgument = 4,
518 OutOfRange = 5,
519}
520
521#[derive(Debug, Default, Clone, Copy, Eq, PartialEq, Hash, PartialOrd, Ord, noproto::Enumeration)]
522#[repr(u32)]
523pub enum CtrlMsgType {
524 #[default]
525 MsgTypeInvalid = 0,
526 Req = 1,
527 Resp = 2,
528 Event = 3,
529 MsgTypeMax = 4,
530}
531
532#[derive(Debug, Default, Clone, Copy, Eq, PartialEq, Hash, PartialOrd, Ord, noproto::Enumeration)]
533#[repr(u32)]
534pub enum CtrlMsgId {
535 #[default]
536 MsgIdInvalid = 0,
537 /// * Request Msgs *
538 ReqBase = 100,
539 ReqGetMacAddress = 101,
540 ReqSetMacAddress = 102,
541 ReqGetWifiMode = 103,
542 ReqSetWifiMode = 104,
543 ReqGetApScanList = 105,
544 ReqGetApConfig = 106,
545 ReqConnectAp = 107,
546 ReqDisconnectAp = 108,
547 ReqGetSoftApConfig = 109,
548 ReqSetSoftApVendorSpecificIe = 110,
549 ReqStartSoftAp = 111,
550 ReqGetSoftApConnectedStaList = 112,
551 ReqStopSoftAp = 113,
552 ReqSetPowerSaveMode = 114,
553 ReqGetPowerSaveMode = 115,
554 ReqOtaBegin = 116,
555 ReqOtaWrite = 117,
556 ReqOtaEnd = 118,
557 ReqSetWifiMaxTxPower = 119,
558 ReqGetWifiCurrTxPower = 120,
559 ReqConfigHeartbeat = 121,
560 /// Add new control path command response before Req_Max
561 /// and update Req_Max
562 ReqMax = 122,
563 /// * Response Msgs *
564 RespBase = 200,
565 RespGetMacAddress = 201,
566 RespSetMacAddress = 202,
567 RespGetWifiMode = 203,
568 RespSetWifiMode = 204,
569 RespGetApScanList = 205,
570 RespGetApConfig = 206,
571 RespConnectAp = 207,
572 RespDisconnectAp = 208,
573 RespGetSoftApConfig = 209,
574 RespSetSoftApVendorSpecificIe = 210,
575 RespStartSoftAp = 211,
576 RespGetSoftApConnectedStaList = 212,
577 RespStopSoftAp = 213,
578 RespSetPowerSaveMode = 214,
579 RespGetPowerSaveMode = 215,
580 RespOtaBegin = 216,
581 RespOtaWrite = 217,
582 RespOtaEnd = 218,
583 RespSetWifiMaxTxPower = 219,
584 RespGetWifiCurrTxPower = 220,
585 RespConfigHeartbeat = 221,
586 /// Add new control path command response before Resp_Max
587 /// and update Resp_Max
588 RespMax = 222,
589 /// * Event Msgs *
590 EventBase = 300,
591 EventEspInit = 301,
592 EventHeartbeat = 302,
593 EventStationDisconnectFromAp = 303,
594 EventStationDisconnectFromEspSoftAp = 304,
595 /// Add new control path command notification before Event_Max
596 /// and update Event_Max
597 EventMax = 305,
598}