#include "log_tracker.h"
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("Hello, ESP32-S3!");
LOG_Init();
LOG_ERR("Wokwi simulator Started at: %d", millis());
}
static unsigned long long ltime = 0;
static int counter = 0;
void loop() {
// put your main code here, to run repeatedly:
delay(10); // this speeds up the simulation
if (millis() - ltime > 5000) {
LOG_ERR("Counter: %d", counter++);
Serial.printf("Counter: %d\n", counter);
ltime = millis();
}
if (counter % 10 == 0) {
LOG_Send();
LOG_Clear();
}
}