Added wifi logger

This commit is contained in:
Brian Campuzano 2017-02-20 23:41:59 -08:00
parent 505281add5
commit 45fde1a28c
2 changed files with 6 additions and 4 deletions

View File

@ -1,12 +1,13 @@
// ESP components
#include "esp_wifi.h"
#include "esp_event.h"
#include "esp_event_loop.h"
#include "esp_log.h"
// Limbo components
#include "limbo_wifi.h"
#include "skynet.h"
static const char* TAG = "limbo_wifi";
esp_err_t event_handler(void *ctx, system_event_t *event)
{
return ESP_OK;
@ -30,4 +31,6 @@ void limbo_wifi_init(void)
ESP_ERROR_CHECK( esp_wifi_set_config(WIFI_IF_STA, &sta_config) );
ESP_ERROR_CHECK( esp_wifi_start() );
ESP_ERROR_CHECK( esp_wifi_connect() );
ESP_LOGI(TAG, "Completed wifi init");
}

View File

@ -1,10 +1,9 @@
// ESP components
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_system.h"
#include "nvs_flash.h"
// Limbo components
#include "heartbeat.h"
#include "limbo_wifi.h"