21 lines
496 B
C
21 lines
496 B
C
#include "arp_monitor.h"
|
|
#include "device_list.h"
|
|
#include "web_server.h"
|
|
#include "esp_log.h"
|
|
|
|
void app_main(void)
|
|
{
|
|
device_list_init();
|
|
arp_monitor_init();
|
|
web_server_init();
|
|
|
|
arp_event_t event = {0};
|
|
IP4_ADDR(&event.ip, 192, 168, 1, 10);
|
|
uint8_t mac[6] = {0xAA, 0xBB, 0xCC, 0xDD, 0xEE, 0xFF};
|
|
memcpy(event.mac, mac, ETH_HWADDR_LEN);
|
|
|
|
arp_monitor_post_event(&event);
|
|
vTaskDelay(pdMS_TO_TICKS(100));
|
|
ESP_LOGI("TEST", "Count = %u", device_list_count());
|
|
}
|