splitted into several modules; include cleanup

This commit is contained in:
2021-01-20 20:55:33 +01:00
parent 14028679e1
commit e4c620c9c5
17 changed files with 757 additions and 697 deletions

View File

@ -183,4 +183,4 @@ void vTaskReceiveData(void *arg)
}
vTaskDelay(200 / portTICK_PERIOD_MS);
}
}
}

View File

@ -11,6 +11,7 @@
#include "Mesh_OTA.h"
#define GPIO_BOOT_BTN 0 //GPIO0 (Boot BTN)
#define GPIO_LED 2 //GPIO2 (internal blue LED in DevKit V1.0)

View File

@ -1,15 +1,9 @@
#include <string.h>
#include "esp_wifi.h"
#include <stdio.h>
#include "sdkconfig.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_system.h"
#include "esp_event.h"
#include "esp_log.h"
#include "esp_mesh.h"
#include "esp_mesh_internal.h"
#include "nvs_flash.h"
#include "driver/gpio.h"
#include "esp_ota_ops.h"
#include "esp_partition.h"
#include "esp_spi_flash.h"
#include "Mesh_OTA.h"
#include "Blinky_LED.h"
@ -19,7 +13,7 @@ static const char *LOG_TAG = "esp_main";
void app_main(void)
{
esp_err_t err = ESP_OK;
ESP_LOGI(LOG_TAG, "hardcoded: 0.0.1");
ESP_LOGI(LOG_TAG, "hardcoded version: 0.0.1");
ESP_LOGI(LOG_TAG, "start mesh network");
err = errMeshNetworkInitialize();