ESP8266 LUA scripting language development: preparatory work -LUA development notes

 

 

 

 

Foreword

Lua need to use this software development

  

  Note: The JDK software that is required in accordance with the JAVA virtual machine, if too JDK is not installed, please see the JDK installation tutorial to install JDK

 

  

 

  

 

 

 

  

Development Board USB cable access to the computer

 

 

 

Choose their own serial number

115200 baud

Then click Open

 

 

 

Reset the module

 

 

 

note:

Like it started a main microcontroller as default

LUA development time, LUA default execution init.lua file

Because now there is no init.lua file so there is the following display

 

 

 

New init.lua file

 

 

 

 

 

 

 

 

 

 

 

Print hello 8266

 

print("hello 8266")

 

Then the documents sent to the module

 

 

 

 

 

Now inside the print on the preservation program, it can be reset at

 

 

 

Print variables

print("hello 8266")

aa = 6598545566

print(aa)

 

 

 

 

Print an array

print("hello 8266")

aa = 6598545566

print(aa)


temp={123,"string",true}


print(temp[1])
print(temp[2])
print(temp[3])

 

 

 

Before learning behind the links below 5 inside look on it

https://www.cnblogs.com/yangfengwu/category/941915.html

 

 

 

Guess you like

Origin www.cnblogs.com/yangfengwu/p/12037904.html