wdt

API description
__wdtInit Help you to init wdt.
__wdtEnable Enable wdt.
__wdtFeed Feed your watch dog.

Native binding API

__wdtInit

  • Content
  __wdtInit(
    second, // number
  )

__wdtEnable

  • Content
  __wdtEnable()

__wdtFeed

  • Content
  __wdtFeed()
  • Example
print('reboot!');
__wdtInit(4);
__wdtEnable();

setInterval(function() {
  __wdtFeed();
}, 7000);

results matching ""

    No results matching ""