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
f5a7448d
You need to sign in or sign up before continuing.
Commit
f5a7448d
authored
Mar 28, 2015
by
Alex
Browse files
corr typo
wrong ip in example
parent
1bd3f566
Changes
1
Hide whitespace changes
Inline
Side-by-side
examples/fragment.lua
View file @
f5a7448d
...
@@ -14,7 +14,7 @@ sk:connect(80,"115.239.210.27")
...
@@ -14,7 +14,7 @@ sk:connect(80,"115.239.210.27")
sk
:
send
(
"GET / HTTP/1.1\r\nHost: 115.239.210.27\r\nConnection: keep-alive\r\nAccept: */*\r\n\r\n"
)
sk
:
send
(
"GET / HTTP/1.1\r\nHost: 115.239.210.27\r\nConnection: keep-alive\r\nAccept: */*\r\n\r\n"
)
sk
:
connect
(
80
,
"192.168.0.66"
)
sk
:
connect
(
80
,
"192.168.0.66"
)
sk
:
send
(
"GET / HTTP/1.1\r\nHost:
1
192.168.0.66\r\nConnection: keep-alive\r\nAccept: */*\r\n\r\n"
)
sk
:
send
(
"GET / HTTP/1.1\r\nHost: 192.168.0.66\r\nConnection: keep-alive\r\nAccept: */*\r\n\r\n"
)
i2c
.
setup
(
0
,
1
,
0
,
i2c
.
SLOW
)
i2c
.
setup
(
0
,
1
,
0
,
i2c
.
SLOW
)
function
read_bmp
(
addr
)
i2c
.
start
(
0
)
i2c
.
address
(
0
,
119
,
i2c
.
RECEIVER
)
c
=
i2c
.
read
(
0
,
1
)
i2c
.
stop
(
0
)
print
(
string.byte
(
c
))
end
function
read_bmp
(
addr
)
i2c
.
start
(
0
)
i2c
.
address
(
0
,
119
,
i2c
.
RECEIVER
)
c
=
i2c
.
read
(
0
,
1
)
i2c
.
stop
(
0
)
print
(
string.byte
(
c
))
end
...
...
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