properly start wifi manager
This commit is contained in:
parent
4747daef72
commit
657a5e44b9
1 changed files with 3 additions and 1 deletions
|
@ -22,6 +22,8 @@
|
|||
static uint8_t id;
|
||||
static QueueHandle_t uart0_queue;
|
||||
|
||||
EventGroupHandle_t wm_event_group;
|
||||
|
||||
static void uart_event_task(void *pvParameters) {
|
||||
uart_event_t event;
|
||||
uint8_t *dtmp = (uint8_t*) malloc(RD_BUF_SIZE);
|
||||
|
@ -112,7 +114,7 @@ void app_main() {
|
|||
|
||||
ESP_LOGI(TAG, "MAC: %X:%X:%X:%X:%X:%X\n", mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]);
|
||||
|
||||
wifi_manager_load_config();
|
||||
wm_event_group = wifi_manager_start();
|
||||
|
||||
if(wifi_manager_ap_count() == 0) {
|
||||
ESP_LOGI(TAG, "Adding new AP");
|
||||
|
|
Loading…
Reference in a new issue