esp8266 finally installed the firmware! Half a month! Start marching into the simple, rough LUA language!!

Source: Internet
Author: User
Tags lua

Test 2017-10-2720:33:33 for the first time

Thank you for this great God's summary.

Http://www.cnblogs.com/yangfengwu/p/7524326.html



This is the content of the debug output!
1ESP8266 started--pengwenzheng--2017.10. ---First test2>connecting .....3Connected,ip is 192.168.15.1684File.remove ("Init.lua");5> File.Open ("Init.lua","w+");6> w =File.writeline7> w ([==[]==]);8> w ([==[print ("\ n")]==]);9> w ([==[print ("ESP8266 [Email protected]# #2017.10.27# #first Test")]==]);Ten> w ([==[dofile ("Wifi.lua")]==]); One>file.close (); A> Dofile ("Init.lua"); - - theESP8266 [Email protected]##2017.10. -# #first Test ->connecting ..... - connecting ..... -Connected,ip is 192.168.15.168
################################################
This is the LUA scripting language code

Wifi.setmode (WiFi. Station)
Wifi.sta.config ("Maker_space", "chuangke666")
Wifi.sta.connect ()
Tmr.alarm (1,1000,1,function ()
If wifi.sta.getip () = = Nil Then
Print ("Connecting ...")
Else
Tmr.stop (1)
Print ("Connected,ip is"). Wifi.sta.getip ())
End
End

esp8266 finally installed the firmware! Half a month! Start marching into the simple, rough LUA language!!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.