From 979d6a97a53b5c9738cfb7489ca05a3874042c8d Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Sun, 4 Sep 2022 18:26:23 +0200 Subject: wifi/cell driver improved --- fw/fe310/eos/net/wifi.h | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'fw/fe310/eos/net/wifi.h') diff --git a/fw/fe310/eos/net/wifi.h b/fw/fe310/eos/net/wifi.h index 2100144..997329f 100644 --- a/fw/fe310/eos/net/wifi.h +++ b/fw/fe310/eos/net/wifi.h @@ -15,13 +15,19 @@ #define EOS_WIFI_STATUS_CONNECTED 2 #define EOS_WIFI_STATUS_GOT_IP 3 +#define EOS_WIFI_SIZE_SSID 33 +#define EOS_WIFI_SIZE_PWD 64 + +#define EOS_WIFI_MAX_SCAN_RECORDS 20 + void eos_wifi_init(void); void eos_wifi_set_handler(unsigned char mtype, eos_evt_handler_t handler); eos_evt_handler_t eos_wifi_get_handler(unsigned char mtype); -int eos_wifi_status(unsigned char *buffer, uint8_t *status, uint8_t ip_addr[], char *ssid); -int eos_wifi_start(unsigned char *buffer); -int eos_wifi_stop(unsigned char *buffer); -int eos_wifi_scan(unsigned char *buffer); -int eos_wifi_connect(const char *ssid, const char *pwd, unsigned char *buffer); -int eos_wifi_disconnect(unsigned char *buffer); \ No newline at end of file +int eos_wifi_status_parse(unsigned char *buffer, uint16_t len, uint8_t *status, uint8_t ip_addr[], char *ssid); +int eos_wifi_status(uint8_t *status, uint8_t ip_addr[], char *ssid, unsigned char *buffer); +int eos_wifi_start(unsigned char *buffer, int sync); +int eos_wifi_stop(unsigned char *buffer, int sync); +int eos_wifi_scan(unsigned char *buffer, int sync); +int eos_wifi_connect(char *ssid, char *pwd, unsigned char *buffer, int sync); +int eos_wifi_disconnect(unsigned char *buffer, int sync); \ No newline at end of file -- cgit v1.2.3