diff options
author | Uros Majstorovic <majstor@majstor.org> | 2022-09-04 18:26:23 +0200 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2022-09-04 18:26:23 +0200 |
commit | 979d6a97a53b5c9738cfb7489ca05a3874042c8d (patch) | |
tree | 4e4734337a96fb28df908e3cd84b1b5ee75708f1 /fw/fe310/eos/net/wifi.h | |
parent | 8775caf20ce7c0a776b9f66c5b287b077c8afcee (diff) |
wifi/cell driver improved
Diffstat (limited to 'fw/fe310/eos/net/wifi.h')
-rw-r--r-- | fw/fe310/eos/net/wifi.h | 18 |
1 files changed, 12 insertions, 6 deletions
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 |