Replies: 1 comment
-
This is the network (internet) or hardware issue. You should try other APs or routers or change your esp8266 device. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying with Firebase Esp8266 library with the following code, but I am still getting the error "response payload read timed out due to network issue or too large data size" . Can you please suggest?
`#include <FirebaseESP8266.h>
#include <ESP8266WiFi.h>
#define FIREBASE_HOST "host_url"
#define FIREBASE_AUTH "Secret Code" //Your Firebase Database Secret goes here
#define WIFI_SSID "OnePlus Nord2 5G" //WiFi SSID to which you want NodeMCU to connect
#define WIFI_PASSWORD "qcaf4612" //Password of your wifi network
double v;
double c;
// Declare the Firebase Data object in the global scope
FirebaseData firebaseData;
void setup() {
pinMode(A0,INPUT);
Serial.begin(9600); // Select the same baud rate if you want to see the datas on Serial Monitor
Serial.println("Serial communication started\n\n");
WiFi.begin(WIFI_SSID, WIFI_PASSWORD); //try to connect with wifi
Serial.print("Connecting to ");
Serial.print(WIFI_SSID);
while (WiFi.status() != WL_CONNECTED) {
Serial.print(".");
delay(500);
}
Serial.println();
Serial.print("Connected to ");
Serial.println(WIFI_SSID);
Serial.print("IP Address is : ");
Serial.println(WiFi.localIP()); //print local IP address
Firebase.begin(FIREBASE_HOST, FIREBASE_AUTH); // connect to firebase
Firebase.reconnectWiFi(true);
//delay(1000);
Firebase.RTDB.enableClassicRequest(&firebaseData, true);
firebaseData.setBSSLBufferSize(1024 /* Rx buffer size in bytes from 512 - 16384 /, 1024 / Tx buffer size in bytes from 512 - 16384 */);
firebaseData.setResponseSize(1024);
}
void loop() {
// Firebase Error Handling And Writing Data At Specifed Path************************************************
v=(analogRead(A0))*3.3/(1024);
c=v/220.0;
if (Firebase.setInt(firebaseData, "/current", c)) { // On successful Write operation, function returns 1
/* Serial.println("Value Uploaded Successfully");
Serial.print("Val = ");
Serial.println(c);
Serial.println("\n");
*/
}
else {
Serial.println(firebaseData.errorReason());
Firebase.begin(FIREBASE_HOST, FIREBASE_AUTH); // connect to firebase
delay(1000);
}
}`
Beta Was this translation helpful? Give feedback.
All reactions