Skip to content
funshine edited this page Feb 13, 2015 · 19 revisions

中文版本API文档
API doc English

###change log: 2015-02-13
add node.compile() api to compile lua text file into lua bytecode file.
this will reduce memory usage noticeably when require modules into NodeMCU.
raise internal LUA_BUFFERSIZE from 1024 to 4096.
lua require("mod") will load "mod.lc" file first if exist.
build latest pre_build bin.

2015-02-12
fix float print.
update spiffs, add file.rename api to file module.
fix some file system bug. need more tests.
add support to 8Mbyte, 16Mbyte flash.
remove node.led() and node.key() api.
some update to lua_modules and examples.
build latest pre_build bin.

2015-01-27
support floating point LUA.
use macro LUA_NUMBER_INTEGRAL in user_config.h control this feature.
LUA_NUMBER_INTEGRAL to disable floating point support,
// LUA_NUMBER_INTEGRAL to enable floating point support.
build pre_build bin.

2015-01-26
applied sdk095_patch1 to sdk 0.9.5.
added LUA examples and modules by dvv.
added node.readvdd33() API by alonewolfx2.
build pre_build bin.

2015-01-24
migrate to sdk 0.9.5 release.
tmr.time() now return second(not precise yet).
build pre_build bin.

2015-01-23
merge mqtt branch to master.
build pre_build bin.

2015-01-18
merge mqtt module to new branch mqtt from https://github.com/tuanpmt/esp_mqtt.
merge spi module from iabdalkader:spi.
fix #110,set local port to random in client mode.
modify gpio.read to NOT set pin to input mode automatic.
add PATH env with C:\MinGW\bin;C:\MinGW\msys\1.0\bin;C:\Python27 in eclipse project. resolve #103.

2015-01-08
fix net.socket:send() issue when multi sends are called.
NOTE: if data length is bigger than 1460, send next packet AFTER "sent" callback is called.
fix file.read() api, take 0xFF as a regular byte, not EOF.
pre_build/latest/nodemcu_512k_latest.bin is removed. use pre_build/latest/nodemcu_latest.bin instead.

2015-01-07
retrive more ram back.
add api file.format() to rebuild file system.
rename "NodeMcu" to "NodeMCU" in firmware.
add some check for file system op.

2014-12-30
modify uart.on api, when run_input set to 0, uart.on now can read raw data from uart.
serial input now accept non-ascii chars.
fix dev-kit gpio map..
add setip, setmac, sleeptype api to wifi module.
add tmr.time() api to get rtc time and calibration.

2014-12-26
fix a bug when readline from uart.

2014-12-22
update to sdk 0.9.4
opensource
folder "pre_build" contain pre-build bin firmware.
folder "lua_examples" contain some pure lua examples.
folder "lua_modules" contain some pure lua lib based on NodeMCU.

2014-12-19
Important Re-arrange GPIO MAP due to development kit.New Gpio Map
Add bitwise operation module.
Modify net.socket:connect() api to accept domain name, auto DNS.

2014-12-12
modify wifi.xx.getip() to return nil, if ip is 0.0.0.0.

2014-12-11
fix uart.setup(), now setup can set pins in other mode back to uart mode.
add wifi.sta.status() api, to get connection status in station mode.
modify tmr.now() to return a uint31 rather than uint32. now-=0x80000000 if now>0x7fffffff.

2014-12-09
increased the number of alarm in tmr module, now it has 7 alarm.

2014-12-08
add uart.setup(), uart.write() api.

2014-12-07
add ow(1-wire module), from arduino, and use same api.
add an 18b20 1-wire example.
change net.socket.send() payload max len from 256 to 1460.
modify gpio.mode() api, add internal pullup/float para.

2014-12-04
fix memory leak issue when input and run from console.

2014-12-02
fix the heap recover too slow issue, heap will recover in seconds, not minutes.
modify the return of file.open, return nil if file not exist, true if opend ok.
move startup version display before doing the init.lua.
modify wifi.ap.config(), remove the restart at the end of config.

2014-11-30
modify the max freq of pwm module to 1000.
modify the max duty cycle of pwm module to 1023.
add uart module, uart.on("data") api to receive data from uart.

2014-11-29
fix tmr.delay not work when delayed time < 1s.
fix pwm module not work when freq<77.

2014-11-25
Fix memory leak for the dns api.

2014-11-24
Fix the wrong length of wifi password comparison when configuring sta. pwd,64byte. ssid,32byte.
Fix dns problem, add a dns example to wiki.

2014-11-23
A temporary and dirty fix to heap drop issue:
to avoid reboot, a tcp-server will NOT accept a connection from client, if there is not enough memory. :(
file.list() now returns a table only. will not print result in serial directly.

2014-11-20
fix tmr.delay to support more than 2s delay, may cause bacon time out, lost connection to AP.
add tmr.wdclr to clear watchdog counter in chip, use in long time loop.
fix UDP part of net module.
add a timeout para to createServer(net.TCP, timeout).

2014-11-19
add adc module, use adc.read(0) to read adc value, no tests made.
add wifi.sta.getap() api to wifi.sta module, to get ap list.

2014-11-18
bug fixed: net.socket:connect() has no effect.

2014-11-18
bug fixed: as a tcp server, the connection can't closed with :close().
tcp server: inactive connection will closed by server in 30s (previously 180s).
add a test api node.input() to put lua chunk into lua interpretor, multi-line supported.
add a test api node.ouput(function) to direct serial output to a callback function.
file.readline() now returns line include EOL('\n'), and returns nil when EOF.

2014-11-12
full version firmware

2014-11-11
add file.seek() api to file module
now max 6 pwm channel is supported

2014-11-10
change log module to file module
now file operation support multiple read/write
for now file module only allowed one file opened

2014-11-5
delete log operation api from node module
add log module
modify wifi module api
modify node.key long_press and short_press default function
key is triged only when key is released

Clone this wiki locally