Skip to content

Instantly share code, notes, and snippets.

@mininao
Last active June 3, 2016 23:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mininao/a3f29eebb39c18c8104ae28e2a74b747 to your computer and use it in GitHub Desktop.
Save mininao/a3f29eebb39c18c8104ae28e2a74b747 to your computer and use it in GitHub Desktop.
Firebase Android Set while Stream bug repro
connecting........
connected: 192.168.0.17
streaming error
PUT /x.json?auth=HV63Wib4SFGFLQM7Bg0w4b3s341rHACvEZgmDAg8: -3
Exception (28):
epc1=0x40206bda epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000
ctx: cont
sp: 3fff0ef0 end: 3fff10e0 offset: 01a0
>>>stack>>>
3fff1090: 00000003 00000000 3fff0084 40206bda
3fff10a0: 00000000 3fff0084 3ffeff00 40202293
3fff10b0: 00000000 00000000 00000001 40206939
3fff10c0: feefeffe 00000000 3fff00a8 40206964
3fff10d0: feefeffe feefeffe 3fff00c0 40100718
<<<stack<<<
#include <ESP8266WiFi.h>
#include <FirebaseArduino.h>
// Set these to run example.
#define FIREBASE_HOST "stream-set-repro.firebaseio.com"
#define FIREBASE_AUTH "HV63Wib4SFGFLQM7Bg0w4b3s341rHACvEZgmDAg8"
#define WIFI_SSID "XXX"
#define WIFI_PASSWORD "YYY"
void setup() {
Serial.begin(9600);
// connect to wifi.
WiFi.begin(WIFI_SSID, WIFI_PASSWORD);
Serial.print("connecting");
while (WiFi.status() != WL_CONNECTED) {
Serial.print(".");
delay(500);
}
Serial.println();
Serial.print("connected: ");
Serial.println(WiFi.localIP());
Firebase.begin(FIREBASE_HOST, FIREBASE_AUTH);
Firebase.stream("/x");
}
void loop() {
if (Firebase.failed()) {
Serial.println("streaming error");
Serial.println(Firebase.error());
}
if (Firebase.available()) {
Firebase.setBool("x", false);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment