Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
72f60d3e
Commit
72f60d3e
authored
Dec 30, 2014
by
funshine
Browse files
rebuild bin, add setip, setmac, sleeptype api to wifi module, fix #62
parent
a2e357f1
Changes
4
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
72f60d3e
...
@@ -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
)
...
...
app/modules/wifi.c
View file @
72f60d3e
...
@@ -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
);
...
...
pre_build/0.9.4/512k-flash/nodemcu_512k_latest.bin
View file @
72f60d3e
No preview for this file type
pre_build/latest/nodemcu_512k_latest.bin
View file @
72f60d3e
No preview for this file type
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment