From d6409bc79af876f527304dad5b28d1bb167ce87e Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Sat, 9 May 2020 19:44:11 +0200 Subject: fixed wifi driver --- code/esp32/components/eos/include/eos.h | 2 ++ code/esp32/components/eos/include/wifi.h | 7 +++++-- 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'code/esp32/components/eos/include') diff --git a/code/esp32/components/eos/include/eos.h b/code/esp32/components/eos/include/eos.h index 59f0ddb..58399ce 100644 --- a/code/esp32/components/eos/include/eos.h +++ b/code/esp32/components/eos/include/eos.h @@ -6,6 +6,8 @@ #define EOS_ERR_EMPTY -11 #define EOS_ERR_NOTFOUND -12 +#define EOS_ERR_BUSY -20 + #define EOS_TASK_PRIORITY_UART 1 #define EOS_TASK_PRIORITY_UART_RI 1 #define EOS_TASK_PRIORITY_I2S 1 diff --git a/code/esp32/components/eos/include/wifi.h b/code/esp32/components/eos/include/wifi.h index 42c77bd..6009f7c 100644 --- a/code/esp32/components/eos/include/wifi.h +++ b/code/esp32/components/eos/include/wifi.h @@ -5,5 +5,8 @@ #define EOS_WIFI_MAX_MTYPE 3 void eos_wifi_init(void); -void eos_wifi_connect(char *ssid, char *pass); -void eos_wifi_disconnect(void); + +int eos_wifi_scan(void); +int eos_wifi_set_auth(char *ssid, char *pass); +int eos_wifi_connect(void); +int eos_wifi_disconnect(void); -- cgit v1.2.3