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
3e93fbd5
Commit
3e93fbd5
authored
Oct 13, 2014
by
funshine
Browse files
add readme
parent
56384c05
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
3e93fbd5
...
@@ -93,18 +93,18 @@ node.list()
...
@@ -93,18 +93,18 @@ node.list()
wifi module
wifi module
-----------
-----------
常量:wifi.
STATION, wifi.SOFTAP, wifi.STATIONAP
常量:wifi.STATION, wifi.SOFTAP, wifi.STATIONAP
wifi.setmode(mode)
wifi.setmode(mode)
描述:设置wifi的工作模式
描述:设置wifi的工作模式
mode:取值:wifi.
STATION, wifi.SOFTAP或wifi.STATIONAP
mode:取值:wifi.STATION, wifi.SOFTAP或wifi.STATIONAP
返回设置之后的当前mode
返回设置之后的当前mode
wifi.getmode()
wifi.getmode()
描述:获取wifi的工作模式
描述:获取wifi的工作模式
返回:wifi.
STATION, wifi.SOFTAP或wifi.STATIONAP
返回:wifi.STATION, wifi.SOFTAP或wifi.STATIONAP
wifi.startconfig( channel, function succeed_callback )
wifi.startconfig( channel, function succeed_callback )
...
@@ -166,7 +166,7 @@ wifi.ap.getip()
...
@@ -166,7 +166,7 @@ wifi.ap.getip()
描述:ap模式下获取ip
描述:ap模式下获取ip
返回:字符串形式的ip,如"192.168.0.2"
返回:字符串形式的ip,如"192.168.0.2"
wifi.
ap.getmac()
wifi.ap.getmac()
描述:ap模式下获取mac
描述:ap模式下获取mac
返回:字符串形式的mac,如"1A-33-44-FE-55-BB"
返回:字符串形式的mac,如"1A-33-44-FE-55-BB"
...
@@ -217,7 +217,7 @@ net.createConnection(type, secure)
...
@@ -217,7 +217,7 @@ net.createConnection(type, secure)
描述:建立一个客户端
描述:建立一个客户端
type:net.TCP或 net.UDP
type:net.TCP或 net.UDP
secure:true 或者 false,表示是否为安全连接
secure:true 或者 false,表示是否为安全连接
返回:net.
socket子模块
返回:net.socket子模块
net.server module
net.server module
-------------
-------------
...
...
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