-
Hi, I haven't found anything about FirebaseClient and FreeRTOS on the internet. The recommendation is not to use in standard way delay in loop, but as i know RTOS needs small delay to yield cpu. Is it problem for FirebaseClient? Is there any example code how to use Firebase on one core... |
Beta Was this translation helpful? Give feedback.
Answered by
mobizt
May 24, 2024
Replies: 1 comment
-
You can use void setup()
{
auto loopTask = [](void *pvParameters)
{
for (;;)
{
app.loop();
Database.loop();
if (app.ready())
{
//Your code here.
}
vTaskDelay(10 / portTICK_PERIOD_MS);
}
};
xTaskCreatePinnedToCore(loopTask, "loopTask", 8000, NULL, 3, NULL, 1 /* must be core 1 for network task */);
} |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
kalu1
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use
FreeRTOS
as normal as this.