NodeMCU教程 不断重启问题解决

这是练英语写作的,中文在下面。

Since  the execution of  "init.lua" at the time of NodeMCU booting, once there are any bugs in it, the NodeMCU may restart over and over again.Luckily, the Lua is asynchronous.At the same time of booting,we can run the order "file.remove('init.lua')" to delete the file.After fixing the bugs,upload it and run it on the NodeMCU.The problem will be solved.

—————————————————————————————————————————

上面是练英语写作的,欢迎吐槽吐舌头。中文如下:

由于NodeMCU在启动时会执行"init.lua" 文件,一旦这个文件中存在漏洞,NodeMCU可能会不断地重启。幸运地是,Lua是异步执行的,在重启的同时,执行"file.remove('init.lua')"命令即可删除"init.lua" 文件,下次启动时就不会执行这个文件了。修复漏洞后,再将"init.lua" 文件上传执行就行了。
posted @ 2016-06-20 22:08  Leytton  阅读(369)  评论(0编辑  收藏  举报