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
pub mod custom_digest;
pub mod data_mode;
pub mod edm;
pub mod ethernet;
pub mod general;
pub mod gpio;
pub mod network;
pub mod ping;
pub mod security;
pub mod system;
pub mod wifi;
use atat::atat_derive::{AtatCmd, AtatResp, AtatUrc};
#[derive(Debug, Clone, AtatResp, PartialEq)]
pub struct NoResponse;
#[derive(Debug, Clone, AtatCmd)]
#[at_cmd("", NoResponse, timeout_ms = 1000)]
pub struct AT;
#[derive(Debug, PartialEq, Clone, AtatUrc)]
pub enum Urc {
#[at_urc("+UUDPC")]
PeerConnected(data_mode::urc::PeerConnected),
#[at_urc("+UUDPD")]
PeerDisconnected(data_mode::urc::PeerDisconnected),
#[at_urc("+UUWLE")]
WifiLinkConnected(wifi::urc::WifiLinkConnected),
#[at_urc("+UUWLD")]
WifiLinkDisconnected(wifi::urc::WifiLinkDisconnected),
#[at_urc("+UUWAPU")]
WifiAPUp(wifi::urc::WifiAPUp),
#[at_urc("+UUWAPD")]
WifiAPDown(wifi::urc::WifiAPDown),
#[at_urc("+UUWAPSTAC")]
WifiAPStationConnected(wifi::urc::WifiAPStationConnected),
#[at_urc("+UUWAPSTAD")]
WifiAPStationDisconnected(wifi::urc::WifiAPStationDisconnected),
#[at_urc("+UUETHLU")]
EthernetLinkUp(ethernet::urc::EthernetLinkUp),
#[at_urc("+UUETHLD")]
EthernetLinkDown(ethernet::urc::EthernetLinkDown),
#[at_urc("+UUNU")]
NetworkUp(network::urc::NetworkUp),
#[at_urc("+UUND")]
NetworkDown(network::urc::NetworkDown),
#[at_urc("+UUNERR")]
NetworkError(network::urc::NetworkError),
#[at_urc("+UUPING")]
PingResponse(ping::urc::PingResponse),
#[at_urc("+UUPINGER")]
PingErrorResponse(ping::urc::PingErrorResponse),
}