properly start wifi manager

This commit is contained in:
Morgan Allen 2018-09-21 21:29:41 -07:00
parent 4747daef72
commit 657a5e44b9

View file

@ -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");