Add esp32s2 support
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user