blob: c1819e7347700f3ec4d5943fee8afc17786cb660 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#define EOS_WIFI_MTYPE_STATUS 0
#define EOS_WIFI_MTYPE_SCAN 1
#define EOS_WIFI_MTYPE_START 2
#define EOS_WIFI_MTYPE_STOP 3
#define EOS_WIFI_MTYPE_CONNECT 4
#define EOS_WIFI_MTYPE_DISCONNECT 5
#define EOS_WIFI_STATUS_OFF 0
#define EOS_WIFI_STATUS_DISCONNECTED 1
#define EOS_WIFI_STATUS_CONNECTED 2
#define EOS_WIFI_STATUS_GOT_IP 3
#define EOS_WIFI_MAX_SCAN_RECORDS 20
void eos_wifi_init(void);
int eos_wifi_scan(void);
int eos_wifi_auth(char *ssid, char *pass);
int eos_wifi_connect(void);
int eos_wifi_disconnect(void);
ssize_t eos_wifi_get_status(unsigned char *buffer);
void eos_wifi_send_status(void);
void eos_wifi_send_scan(void);
|