This commit is contained in:
j3d1 2022-06-27 20:00:48 +02:00
parent 7424a80945
commit 8b0020c387
7 changed files with 79 additions and 20 deletions

View file

@ -11,9 +11,9 @@
#include <espressif/esp_common.h>
#include <esp/uart.h>
void user_init(void)
{
#define PUB_MSG_LEN 16
void user_init(void) {
uart_set_baud(0, 115200);
printf("SDK version: %s\n", sdk_system_get_sdk_version());
@ -30,4 +30,11 @@ void user_init(void)
xTaskCreate(&httpd_task, "httpd_task", 1024, NULL, 2, NULL);
xTaskCreate(&lux_task, "lux_task", 512, NULL, 1, NULL);
wifi_alive = xSemaphoreCreateBinary();
publish_queue = xQueueCreate(3, PUB_MSG_LEN);
xTaskCreate(&beat_task, "beat_task", 256, NULL, 3, NULL);
}