Replies: 3 comments 1 reply
-
This seems to be the bug in ESP32 WiFiClient use internally in this library that causes the session time out. I recommend you should consider moving to new library which is better and easier to use. |
Beta Was this translation helpful? Give feedback.
-
With this library you can try to update ESP32 Arduino Core and try again. |
Beta Was this translation helpful? Give feedback.
-
Thanks for your answer Mobitz. |
Beta Was this translation helpful? Give feedback.
-
Hello. My name is Ruben, and I'm coding from Neuquén, in Patagonia (Argentina).
I'm working on an IoT project using an ESP32, Firebase, and an online web server. This is a work in progress.
The project was originally developed on an Arduino Duemilanove, then migrated to a NodeMCU ESP8266, and it worked correctly on both platforms.
However, now that it's running on an ESP32 (WROOM 32D DevkitC-V4), it's experiencing periodic freezes.
When I don't run the GET methods in the code, the ESP runs without issues. But when they are called, it freezes approximately every 34 seconds and hangs for about a minute, then continues for another 34 seconds and repeats the freeze. The error report says that the getBool or the getString method failed because of a 'connection refused' response.
I tried using another FirebaseData object to make the reading, as I read it might avoid a simultaneous writing and reading problem. I also tried changing the TX-RX buffer size. And added a few delay()s to give time to the processor and the internet connection.
Some variations I made, based on things I read in forums, only affected the time it took to freeze (from 34 to 50 seconds approximately).
What am I doing wrong?
As I said, it's a work in progress, so here is just a part of the code I'm using to test the problem.
Thanks in advance for any help.
Beta Was this translation helpful? Give feedback.
All reactions