Using NetworkClient/TinyGsmClient with ESP_SSLClient for hybrid network. Main Loop get stuck after 30-40 mins. #285
Replies: 5 comments 6 replies
-
When you update the library, it is necessary to check the examples and documentation for the changes and what is required to change in your code. https://github.com/mobizt/FirebaseClient?tab=readme-ov-file#changes-since-v210 |
Beta Was this translation helpful? Give feedback.
-
For ESP32, the PPP library is recommended for GSM modem. Anyway, the SSL client is on your side, and you should debug it. |
Beta Was this translation helpful? Give feedback.
-
As I mentioned the SSL Client is on your side, and it is used for data transferring. You have to debug the SSL client and memory usage. For |
Beta Was this translation helpful? Give feedback.
-
This macro enables the internal For ESP_SSLClient debugging. /** Call setDebugLevel(level) to set the debug
* esp_ssl_debug_none = 0
* esp_ssl_debug_error = 1
* esp_ssl_debug_warn = 2
* esp_ssl_debug_info = 3
* esp_ssl_debug_dump = 4
*/
ssl_client.setDebugLevel(1); What is the last I focus on the SSL Client because library can't control the network and client and just use its The timeout was applied when operating with SSL Client and data was transferred as small chunks and it will never get stuck at the library code. |
Beta Was this translation helpful? Give feedback.
-
Hello! I have another question of same category of switching between GSM and WiFi simultaneuosly without reboot.
It is working properly now without crash/stuck.... Now I have another problem during network change when I restart Realtime Database streaming i get this error
I am properly using :
before swithching network and library is reinitialized from scratch after network switching. But i think so the stream task does not end properly which is why i get this error? Can please point out what to do exactly ?? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
I have been using this library for long time, recently I made a hybrid system to work on GSM and WiFi at the same time by shifting to the one which is more stable. I am using ESP_SSLClient to switch between Network Client vs GSM Client. It is working fine, But after recent update to 2.1.8. Main loop gets stuck during update after 30-40 mins and nevers returns back while the second core keeps running fine. My heap goes down to 180k before getting stuck, I do have PSRAM enabled on ESP32 S3 (16 R2). I can't figure out what's wrong bcz main loop entirely gets stuck.
Also my hybrid network management works on 2nd Core different then main core. So main loop is never disturbed (moreover Library is Init and Deinit from main loop as well)
Any help will be appreciated.....
Thanks...
Beta Was this translation helpful? Give feedback.
All reactions