【发布时间】:2014-04-16 06:49:09
【问题描述】:
提供的 Firebase + Electric Imp 代码似乎不再适用,特别是对于流式传输。
https://github.com/firebase/ElectricImpDemo/blob/master/ImpFirebase-HRmonitor/bracelet-agent.nut
是否有我应该知道的已知回归?还是图书馆的新版本?读取和写入工作正常,但是当我发出流式请求时,我只会返回空数据。
这里是实际使用 firebase 电动小鬼 api 的 sn-p:
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);
【问题讨论】: