2021-06-19 14:42:38 +00:00
|
|
|
#include <espressif/esp_common.h>
|
|
|
|
#include <esp/uart.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
|
2021-07-09 19:35:41 +00:00
|
|
|
#include "system.h"
|
2021-07-02 16:45:29 +00:00
|
|
|
#include "wifi.h"
|
|
|
|
#include "web.h"
|
|
|
|
#include "mqtt.h"
|
|
|
|
#include "lux.h"
|
2021-06-19 14:42:38 +00:00
|
|
|
|
|
|
|
|
|
|
|
void user_init(void)
|
|
|
|
{
|
|
|
|
uart_set_baud(0, 115200);
|
|
|
|
printf("SDK version: %s\n", sdk_system_get_sdk_version());
|
|
|
|
|
|
|
|
sdk_wifi_set_sleep_type(WIFI_SLEEP_MODEM);
|
|
|
|
|
2021-07-09 19:35:41 +00:00
|
|
|
system_init_config();
|
2021-06-19 14:42:38 +00:00
|
|
|
}
|