Commit 72f60d3e authored by funshine's avatar funshine
Browse files

rebuild bin, add setip, setmac, sleeptype api to wifi module, fix #62

parent a2e357f1
...@@ -15,7 +15,10 @@ Tencent QQ group QQ群: 309957875<br /> ...@@ -15,7 +15,10 @@ Tencent QQ group QQ群: 309957875<br />
# Change log # Change log
2014-12-30<br /> 2014-12-30<br />
modify uart.on api, when run_input set to 0, uart.on now can read raw data from uart.<br /> modify uart.on api, when run_input set to 0, uart.on now can read raw data from uart.<br />
serial input now accept non-ascii chars serial input now accept non-ascii chars.<br />
fix dev-kit gpio map.<br />
add setip, setmac, sleeptype api to wifi module. <br />
add tmr.time() api to get rtc time and calibration.
[more change log](https://github.com/nodemcu/nodemcu-firmware/wiki/nodemcu_api_en#change_log)<br /> [more change log](https://github.com/nodemcu/nodemcu-firmware/wiki/nodemcu_api_en#change_log)<br />
[更多变更日志](https://github.com/nodemcu/nodemcu-firmware/wiki/nodemcu_api_cn#change_log) [更多变更日志](https://github.com/nodemcu/nodemcu-firmware/wiki/nodemcu_api_cn#change_log)
......
...@@ -194,7 +194,7 @@ static int ICACHE_FLASH_ATTR wifi_getip( lua_State* L, uint8_t mode ) ...@@ -194,7 +194,7 @@ static int ICACHE_FLASH_ATTR wifi_getip( lua_State* L, uint8_t mode )
static uint32_t parse_key(lua_State* L, const char * key){ static uint32_t parse_key(lua_State* L, const char * key){
lua_getfield(L, 1, key); lua_getfield(L, 1, key);
if( lua_isstring(L, -1) ) // deal with the ssid string if( lua_isstring(L, -1) ) // deal with the ip/netmask/gw string
{ {
const char *ip = luaL_checkstring( L, -1 ); const char *ip = luaL_checkstring( L, -1 );
return ipaddr_addr(ip); return ipaddr_addr(ip);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment