Stream stops after 30 minutes, if writing to the database in the loop section commented out ( Example : CallBack.ino) #541
Replies: 4 comments 9 replies
-
That is not because of what you mentioned. As long as stream is running in separate RTOS task in ESP32 and schedule tasks in ESP8266, you will get the debug info of stream time out status. I guess that you use ESP8266 and your code in loop causes blocking operation that causes the new schedule task cannot be created. The above condition is not possible in ESP32 which stream task runs in RTOS task. |
Beta Was this translation helpful? Give feedback.
-
Board using : ESP32 No stream timeout occurred in that period, Esp32 didn't freezes either as other functions running well, fbdo writes to the firebase seamlessly, but stream data has no response over database changes. I dont know why, but it happens some times in 30 minutes and sometimes in 1 hour. |
Beta Was this translation helpful? Give feedback.
-
Here is my debug data, [516048][V][ssl_client.cpp:155] start_ssl_client(): Setting up the SSL/TLS structure... [517716][V][ssl_client.cpp:369] send_ssl_data(): Writing HTTP request with 177 bytes... [620905][V][ssl_client.cpp:62] start_ssl_client(): Free internal heap before TLS 147500 [625749][V][ssl_client.cpp:369] send_ssl_data(): Writing HTTP request with 177 bytes... [672621][V][ssl_client.cpp:146] start_ssl_client(): Seeding the random number generator Loop() code : if (stream.httpConnected()) { } else { What I think is,
stream timeout never happened, but stream.httpConnected() showing FALSE, and database change is not getting by esp32 Could you please help me to understand the behavior? |
Beta Was this translation helpful? Give feedback.
-
Thanks for everything.... “Keep up the good work! |
Beta Was this translation helpful? Give feedback.
-
Example : CallBack.ino
If the following line commented out from the loop section of the example: CallBack.ino, Stream stops responding after 30 minutes
Can you help me to understand the behavior?
Beta Was this translation helpful? Give feedback.
All reactions