Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Example Analysis of online Control and Development using McuNode Cloud in NodeMcu

2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article to share with you is about NodeMcu using McuNode cloud online control and development example analysis, Xiaobian think quite practical, so share to everyone to learn, I hope you can read this article after some harvest, not much to say, follow Xiaobian to see it.

NodeMcu firmware requirements: at least three modules are required: net, wifi, timer, these modules will generally be integrated without problems.

Get the lua base code from McuNode open source code, which contains two files, init.lua is the core file, cmd.lua is a shortcut command that can be called by users. This file is not necessary, but you will need it if you want to use ls, rm, etc. If you do not use this file, please delete the first line dofile ('cmd. lua') of init.lua.

Modify three places in your downloaded init.lua: id (your own id, anti-collision, line 2), ssid and password for your wifi (line 28), cmd.lua does not need to be modified.

Download the above two lua files to nodemcu and restart. Since the connection between nodemcu and the server is not necessarily stable, it seems that the callback method of nodemcu disconnection is not so easy to use. You can also add some reconnect mechanisms to init.lua.

Enter your id on www.mcunode.com and connect, you will connect your module, in fact, at this time you can already plug the module into the charging treasure and use the mobile phone to develop nodemcu!

Use McuNode to download files remotely Please note that the file storage name downloaded to nodemcu, if you forget to enter it will be automatically named: fogot.lua, in fact, not only can you download lua files, html and the like can also be used folder, such as storing index.html files in the www folder in nodemcu Enter www/index.html in the file name, is it very powerful, other IDEs I have not found a shortcut to create folders yet.

The above is an example analysis of using McuNode cloud online control and development in NodeMcu. Xiaobian believes that some knowledge points may be seen or used in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report