ESP8266 Developer Zone The Official ESP8266 Forum 2015-04-10T16:49:02+08:00 https://bbs.espressif.com:443/feed.php?f=9&t=335 2015-04-10T16:49:02+08:00 2015-04-10T16:49:02+08:00 https://bbs.espressif.com:443/viewtopic.php?t=335&p=1283#p1283 <![CDATA[Re: 创建云端定时器服务器返回错误]]> Statistics: Posted by wuyunzhou — Fri Apr 10, 2015 4:49 pm


]]>
2015-04-10T16:41:56+08:00 2015-04-10T16:41:56+08:00 https://bbs.espressif.com:443/viewtopic.php?t=335&p=1281#p1281 <![CDATA[Re: 创建云端定时器服务器返回错误]]>
另外一个特别需要注意的:
考虑到网络的不可靠,现在的运行模式是这样的:
1)服务端并不直接去调度 device,只是起到一个通知功能。device 接收到 timer 事件之后,设置 sdk 内部的 timer。
2)当服务器设置 timer 之后,会转发到 device,如果 device 回复 nonce: , status: 200, 那么这个 timer 设置成功。sdk 内部自行保证按照时间去调度一定的 action。
同样的,还有更新,删除等事件。

Statistics: Posted by wuyunzhou — Fri Apr 10, 2015 4:41 pm


]]>
2015-04-07T22:54:24+08:00 2015-04-07T22:54:24+08:00 https://bbs.espressif.com:443/viewtopic.php?t=335&p=1250#p1250 <![CDATA[创建云端定时器服务器返回错误]]> {
"body": {
"timers": [
{
"type": "FIXEDTIME",
"time_actions": [
{
"action": "action1",
"time": "201504072240"
}
]
}
]
},
"get": {
"is_humanize_format": "true"
},
"created": "2015-04-07 22:40:50",
"token": "xxx",
"meta": {
"Authorization": "token xxx"
},
"path": "/v1/device/timers/",
"post": {},
"method": "POST"
}

Statistics: Posted by wslmcu — Tue Apr 07, 2015 10:54 pm


]]>