Added wifi logger
This commit is contained in:
parent
505281add5
commit
45fde1a28c
|
@ -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");
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in New Issue