-
Notifications
You must be signed in to change notification settings - Fork 1.1k
WDG
wuzhun.wz edited this page Jun 12, 2018
·
1 revision
API
|
说明
|
WDG.start(timeout)
|
功能:启动看门狗定时器
参数: timeout:喂狗超时时间,单位是ms
返回值:0=ok other=fail
|
WDG.stop()
|
功能:停止看门狗定时器
参数: 无
返回值:0=ok other=fail
|
WDG.feed()
|
功能:喂狗
参数: 无
返回值:0=ok other=fail
|
WDG.start(2000);
setInterval(function() {
WDG.feed();
console.log('feed the dog!\n');
}, 1000);
如果在规定的时间内没有进行喂狗操作,系统将自动重启。
�
| Home | Tutorial | Hardware | Porting Guide | Utilities | API Reference | Technical Docs | Certification |
Crafted with ❤️ by AliOS Things Team.