Closed Ripwords closed 1 year ago
Just a note: I have credentials saved in a different file, DB_SECRET, API_KEY and such, so that's not the problem as the data is uploaded successfully for a few attempts, before connection refused starts
First, update the library.
I see that you are using Async function, please avoid using it if you are using it together with other functions as I already noted in the example comment (at the bottom of basic example).
The library data transfer is fast enough which async is not needed.
I've updated to the latest version uploaded a few hours ago, and changed the WiFi network to my mobile network and also removed use of async. The behaviour has improved, but after awhile it still returns me "connection refused" i've already set the BSSL size to maximum as well
It is your network issue that resists for internet access.
It's not necessary to set SSL buffer size as much, 2048 is ok for general use.
I see you reserved the stack for some FreeRTOS task as much as 36k which is not necessary too.
You should debug your code which memory allocation failure can be a problem in your case.
Note that, library was intensively test 24/7 with WiFI, Ethernet and GSM network and it works fine.
Okay thanks for the suggestions, I will try to debug
[170621][E][WiFiClientImpl.h:468] tcpWrite(): fail on fd 48, errno: 104, "Connection reset by peer"
I turned on Core Debuggin and received this error message
That is because server denied to connect or your network interruption.
Another possible issue, when you use WiFiManger to control your WiFi, you should set reconnect WiFi option to false to prevent network reconnection conflicts.
Firebase.reconnectWiFi(false);
I think that may be my problem, thanks again, i have also turned on TCP fbdo.keepAlive not sure if that will help
This seems to have solved my issue for now. Thanks again for your help
Thanks for feedback and I will update the document too.
I've tried the examples and have had no issues for the past few months, however recently when running the code, the connection would start getting refused after uploading data for a few attempts and i start getting "connection refused" error.
As you can see in this image, the data is logged and then suddenly the connection starts getting refused. There is a Failed (DHT) error but that's my sensor error unrelated to the Firebase logic.
Thanks in advance, let me know if there's any information more that you require. I am using an ESP32 DOIT Devkit