return event group handle for wifi manager
This commit is contained in:
parent
a1d175fbce
commit
82f88e28cb
1 changed files with 3 additions and 1 deletions
|
@ -190,7 +190,7 @@ void wifi_manager_load_config() {
|
||||||
ESP_LOGI(TAG, "load_config found %d APs", ap_store.count);
|
ESP_LOGI(TAG, "load_config found %d APs", ap_store.count);
|
||||||
};
|
};
|
||||||
|
|
||||||
void wifi_manager_start() {
|
EventGroupHandle_t wifi_manager_start() {
|
||||||
ESP_ERROR_CHECK(nvs_open("wm-config", NVS_READWRITE, &nvs));
|
ESP_ERROR_CHECK(nvs_open("wm-config", NVS_READWRITE, &nvs));
|
||||||
|
|
||||||
wm_event_group = xEventGroupCreate();
|
wm_event_group = xEventGroupCreate();
|
||||||
|
@ -198,4 +198,6 @@ void wifi_manager_start() {
|
||||||
wifi_manager_load_config();
|
wifi_manager_load_config();
|
||||||
|
|
||||||
xTaskCreate(&wifi_manager_main_loop, "wm_main_loop", 4096, NULL, 6, NULL);
|
xTaskCreate(&wifi_manager_main_loop, "wm_main_loop", 4096, NULL, 6, NULL);
|
||||||
|
|
||||||
|
return wm_event_group;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue