Foreword
There are currently a variety of development 8266
1. Development (SDK Development) on official has packaged the C library
2. Official SDK package on the basis of the AT command (AT command development)
3. embedded scripting language (Lua, Python and other development mode) on the basis of SDK
Therefore, we first have to understand, AT commands and scripting language is other people were housed in the base SDK
Then it further developed on the basis of the package, in fact, eventually calling SDK functions to perform.
For example: STM32 embedded language development LUA
https://www.cnblogs.com/yangfengwu/p/9315841.html Click to view
These are my STM32 embedded LUA script to achieve control LED
You can understand, now there are less do not have to get to the bottom
I'm just a scripting language developed to illustrate how come
The purpose of learning LUA developed 1: Learning LUA script syntax
For developers, this still should master,
The main view of the universe together now launched GPRS module uses a lot of people LUA development.
The source LUA develop ways to apply it
Above that, the development of a scripting language is actually still call the SDK
LUA achieve what functions it shows what function SDK package
When we want to develop SDK direct reference LUA source inside the wrapper function
for example:
GPIO2 outputs a high level control
lua language is gpio.write (4,1) Never mind why write specific, after learning later would plainly
LUA open source code, find Module inside gpio.c
Control then locate inside the high and low output gpio function write function into lgpio_write
Actually calls
Epilogue
LUA script Give us a good package of almost all of the possible use of the SDK source code
Our development SDK when you can draw directly use.
Never-ending ocean of knowledge, we must learn to stand on the shoulders of giants!