提供された Firebase + Electric Imp コードは、特にストリーミングでは機能しないようです。
https://github.com/firebase/ElectricImpDemo/blob/master/ImpFirebase-HRmonitor/bracelet-agent.nut
知っておくべき既知の回帰はありますか? それともライブラリの新しいバージョンですか?読み取りと書き込みは正常に機能しますが、ストリーミング リクエストを行うと、空のデータが返されます。
firebase electric imp API を実際に使用したスニペットは次のとおりです。
firebase <- Firebase("https://smarthouse.firebaseio.com", null);
firebase.on("/", function(state) {
server.log("got a change");
server.log(http.jsonencode(state));
});
firebase.stream("/door", true);