espressif云端数据模型凝问
Re: espressif云端数据模型凝问
Postby wuyunzhou » Fri May 15, 2015 11:05 am
在 json 里面,整个都是字符类型传输,二进制也要使用 base64 等编码。
如果你的维度超过 5 个,可以考虑分组,多个 Datastream。
另外,在 LOW_POWER_MODE 情况下,可以积累 Datapoint ,然后一次发送。
Datapoint 还支持 json object,string 类型。
如果你只是需要传递 string 而不需要保存,请使用 RPC 接口。
如果你的维度超过 5 个,可以考虑分组,多个 Datastream。
另外,在 LOW_POWER_MODE 情况下,可以积累 Datapoint ,然后一次发送。
Datapoint 还支持 json object,string 类型。
如果你只是需要传递 string 而不需要保存,请使用 RPC 接口。
Re: espressif云端数据模型凝问
Postby wuyunzhou » Tue May 19, 2015 10:50 am
可以的,使用 Mbox 接口,只要拥有合法的 key,监听同一个 Mbox,就能相互发送消息,是一种 1:N 的模型,可以单发,多发。
这种模型,本质上就是 message queue,提供 subscribe unsubscribe publish 等行为。
http://iot.espressif.cn/#/api-zh-cn/#api-mbox
如果对使用方法不熟悉,可以联系我 wuyunzhou # espressif.com
这种模型,本质上就是 message queue,提供 subscribe unsubscribe publish 等行为。
http://iot.espressif.cn/#/api-zh-cn/#api-mbox
如果对使用方法不熟悉,可以联系我 wuyunzhou # espressif.com
danshi126 wrote:hi wuyunzhou
我想做的是能通过云端做个低数据量的透传功能,从目前你们提供的Demo来看,APP发送POST命令到云端,ESP8266能立即响应APP的数据,那么如果ESP8266发送POST命令给云端,APP端能立即响应吗,还是必须由APP发送GET命令去云端获取到才能响应ESP8266发送的数据;
Who is online
Users browsing this forum: No registered users and 140 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.