summaryrefslogtreecommitdiff
path: root/code/esp32/components/eos/include
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2020-05-09 19:44:11 +0200
committerUros Majstorovic <majstor@majstor.org>2020-05-09 19:44:11 +0200
commitd6409bc79af876f527304dad5b28d1bb167ce87e (patch)
tree542c8a05f9393bedcc3b00e2418bae9c1ae72c51 /code/esp32/components/eos/include
parente6c06c38ea7ed2c46a605af4c87f154377caadba (diff)
fixed wifi driver
Diffstat (limited to 'code/esp32/components/eos/include')
-rw-r--r--code/esp32/components/eos/include/eos.h2
-rw-r--r--code/esp32/components/eos/include/wifi.h7
2 files changed, 7 insertions, 2 deletions
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);