From 9380be167ee6dd26cd039e812df8d779c16b61fc Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Tue, 9 Mar 2021 17:17:00 +0100 Subject: [PATCH] network separated --- src/.gitignore | 1 + src/main/CMakeLists.txt | 1 + src/main/app_main.c | 1 + src/main/network_mngr.c | 2 +- 4 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 src/.gitignore diff --git a/src/.gitignore b/src/.gitignore new file mode 100644 index 0000000..567609b --- /dev/null +++ b/src/.gitignore @@ -0,0 +1 @@ +build/ diff --git a/src/main/CMakeLists.txt b/src/main/CMakeLists.txt index 61fac40..023b5fb 100644 --- a/src/main/CMakeLists.txt +++ b/src/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "app_main.c" + "network_mngr.c" INCLUDE_DIRS ".") diff --git a/src/main/app_main.c b/src/main/app_main.c index 3573cc5..ec6d001 100644 --- a/src/main/app_main.c +++ b/src/main/app_main.c @@ -14,6 +14,7 @@ #include +static const char *TAG = "app"; void deviceInit() { /* Initialize NVS partition */ diff --git a/src/main/network_mngr.c b/src/main/network_mngr.c index 18db7ec..5135418 100644 --- a/src/main/network_mngr.c +++ b/src/main/network_mngr.c @@ -23,7 +23,7 @@ #include -static const char *TAG = "app"; +static const char *TAG = "nm"; /* Signal Wi-Fi events on this event-group */ const int WIFI_CONNECTED_EVENT = BIT0;