1syntax = "proto3";
2
3enum WifiStationState {
4    Connected = 0;
5    Connecting = 1;
6    Disconnected = 2;
7    ConnectionFailed = 3;
8}
9
10enum WifiConnectFailedReason {
11    AuthError = 0;
12    NetworkNotFound = 1;
13}
14
15enum WifiAuthMode {
16    Open = 0;
17    WEP  = 1;
18    WPA_PSK = 2;
19    WPA2_PSK = 3;
20    WPA_WPA2_PSK = 4;
21    WPA2_ENTERPRISE = 5;
22}
23
24message WifiConnectedState {
25    string ip4_addr = 1;
26    WifiAuthMode auth_mode = 2;
27    bytes ssid = 3;
28    bytes bssid = 4;
29    int32 channel = 5;
30}
31