Files
arp_monitoring/main/main.c
T
2026-09-03 20:18:59 +03:00

31 lines
690 B
C

#include "arp_monitor.h"
#include "device_list.h"
#include "web_server.h"
#include "esp_err.h"
#include "esp_event.h"
#include "esp_netif.h"
#include "esp_log.h"
#ifdef CONFIG_IDF_TARGET_LINUX
#include "protocol_examples_common.h"
#endif
static const char *TAG = "main";
void app_main(void)
{
device_list_init();
arp_monitor_init();
#ifdef CONFIG_IDF_TARGET_LINUX
ESP_ERROR_CHECK(esp_netif_init());
ESP_ERROR_CHECK(esp_event_loop_create_default());
ESP_ERROR_CHECK(example_connect());
ESP_LOGI(TAG, "Linux network interface initialized");
#else
ESP_LOGW(TAG, "Network initialization for the ESP32 target is not configured");
#endif
web_server_init();
}