diff options
author | Uros Majstorovic <majstor@majstor.org> | 2021-02-24 19:54:18 +0100 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2021-02-24 19:54:18 +0100 |
commit | 4dea6262b57f614cabd5cf4fa96c1e3d83c45fb4 (patch) | |
tree | 765eb9b4322c6158089232cccf6a30eb62ba90d9 /fw/esp32/main/app_main.c | |
parent | 3050565531af2b3a09f2213893f10c64cf9fe43f (diff) |
upgraded to esp-idf 4.2
Diffstat (limited to 'fw/esp32/main/app_main.c')
-rw-r--r-- | fw/esp32/main/app_main.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/fw/esp32/main/app_main.c b/fw/esp32/main/app_main.c index 4babcdc..8374c45 100644 --- a/fw/esp32/main/app_main.c +++ b/fw/esp32/main/app_main.c @@ -1,9 +1,11 @@ #include <freertos/FreeRTOS.h> #include <freertos/task.h> -#include <tcpip_adapter.h> #include <driver/gpio.h> -#include <esp_sleep.h> +#include <esp_event.h> +#include <esp_netif.h> +#include <esp_err.h> +#include <esp_log.h> #include "i2c.h" #include "cell.h" @@ -17,7 +19,13 @@ // Main application void app_main() { - tcpip_adapter_init(); + esp_err_t ret; + + ret = esp_netif_init(); + assert(ret == ESP_OK); + + ret = esp_event_loop_create_default(); + assert(ret == ESP_OK); eos_net_init(); |