FirebaseExtended / firebase-arduino

Arduino samples for Firebase.
Apache License 2.0
943 stars 494 forks source link

Need to call getString for setString to work #505

Open devnull69 opened 3 years ago

devnull69 commented 3 years ago

Latest FirebaseArduino version ESP8266 board version 2.7.4 ArduinoJson version 5.13.1

I have an issue when using FirebaseArduino (in setup())with ESP8266. The Firebase connect data is definitely correct

If I try to write to a path in Firebase like this

  Firebase.begin(FIREBASE_HOST, FIREBASE_AUTH);
  ...
  Firebase.setString("my/path", stringVariable);

I will end up with an Exception 29 (StoreProhibited)

But if I add any call to getString first, before setting a string, it works consistently

  Firebase.begin(FIREBASE_HOST, FIREBASE_AUTH);
  String result = Firebase.getString("/any/path");
  ...
  Firebase.setString("my/path", stringVariable);

Is this correct?