Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
8766dc6d
Commit
8766dc6d
authored
Nov 25, 2014
by
funshine
Browse files
fix dns memory leak, fix readme
parent
23b7ff8a
Changes
2
Show whitespace changes
Inline
Side-by-side
0.9.2/512k-flash/nodemcu_512k.bin
View file @
8766dc6d
No preview for this file type
README.md
View file @
8766dc6d
# **NodeMcu** #
# **NodeMcu** #
###A lua based firmware for wifi-soc esp8266
###A lua based firmware for wifi-soc esp8266
version 0.9.2 build 2014-11-2
4
version 0.9.2 build 2014-11-2
5
# Change log
# Change log
[
change log
](
https://github.com/nodemcu/nodemcu-firmware/wiki/nodemcu_api_en#change_log
)
<br
/>
[
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
)
...
@@ -77,7 +77,7 @@ braudrate:9600
...
@@ -77,7 +77,7 @@ braudrate:9600
```
lua
```
lua
-- A simple http client
-- A simple http client
conn
=
net
.
createConnection
(
net
.
TCP
,
0
)
conn
=
net
.
createConnection
(
net
.
TCP
,
0
)
conn
:
on
(
"receive"
,
function
(
conn
,
payload
)
print
(
c
)
end
)
conn
:
on
(
"receive"
,
function
(
conn
,
payload
)
print
(
payload
)
end
)
conn
:
connect
(
80
,
"115.239.210.27"
)
conn
:
connect
(
80
,
"115.239.210.27"
)
conn
:
send
(
"GET / HTTP/1.1\r\nHost: www.baidu.com\r\n"
conn
:
send
(
"GET / HTTP/1.1\r\nHost: www.baidu.com\r\n"
..
"Connection: keep-alive\r\nAccept: */*\r\n\r\n"
)
..
"Connection: keep-alive\r\nAccept: */*\r\n\r\n"
)
...
...
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