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
35d2b9e6
Commit
35d2b9e6
authored
Jan 16, 2015
by
Vowstar
Browse files
Fixed description of Connect to your ap.
parent
a2d1e5ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
35d2b9e6
...
@@ -155,11 +155,13 @@ baudrate:9600
...
@@ -155,11 +155,13 @@ baudrate:9600
####Connect to your ap
####Connect to your ap
```
lua
```
lua
print
(
wifi
.
sta
.
getip
())
ip
=
wifi
.
sta
.
getip
()
--0.0.0.0
print
(
ip
)
--nil
wifi
.
setmode
(
wifi
.
STATION
)
wifi
.
setmode
(
wifi
.
STATION
)
wifi
.
sta
.
config
(
"SSID"
,
"password"
)
wifi
.
sta
.
config
(
"SSID"
,
"password"
)
print
(
wifi
.
sta
.
getip
())
ip
=
wifi
.
sta
.
getip
()
print
(
ip
)
--192.168.18.110
--192.168.18.110
```
```
...
...
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