32 lines
513 B
C
32 lines
513 B
C
#include "leds.h"
|
|
#include "shared.h"
|
|
#include "network.h"
|
|
#include "server.h"
|
|
#include "rom/ets_sys.h"
|
|
|
|
#include <stdio.h>
|
|
#include <string.h>
|
|
|
|
static
|
|
void init_esp(void) {
|
|
ESP_ERROR_CHECK(esp_netif_init());
|
|
ESP_ERROR_CHECK(esp_event_loop_create_default());
|
|
}
|
|
|
|
void app_main(void) {
|
|
LOGLN("---- starting");
|
|
|
|
init_esp();
|
|
leds_init();
|
|
send_leds();
|
|
wifi_init();
|
|
softap_init();
|
|
server_init();
|
|
|
|
os_delay_us(10000);
|
|
send_leds();
|
|
|
|
LOGLN("---- finished setting up");
|
|
}
|
|
|