Add esp32s2 support

This commit is contained in:
2026-04-12 21:25:01 +03:00
parent 98cc0db107
commit 818a84bf4f
10 changed files with 176 additions and 91 deletions

View File

@@ -1,8 +1,9 @@
#include "esp_log.h"
#include "system_init.h"
#include "protocol_test.h"
#include "freertos/FreeRTOS.h"
#include "freertos/projdefs.h"
#include "freertos/task.h"
#include "protocol.h"
static const char* TAG = "iot_fish";
@@ -10,9 +11,14 @@ extern "C" void app_main(void)
{
system_init();
for (int i=0; i<10; i++)
for (int i=0; i<5; i++)
{
protocol_run_tests();
char buf[512];
int len = build_telemetry_single(buf, sizeof(buf), "123", "dev1", 123456, "temperature", 22.5, "C", nullptr, 0);
if (len > 0) {
ESP_LOGI("protocol", "%s\n", buf);
}
vTaskDelay(pdMS_TO_TICKS(1000));
}