fix dns memory leak, fix readme
This commit is contained in:
parent
23b7ff8ab0
commit
8766dc6d81
Binary file not shown.
|
@ -1,6 +1,6 @@
|
||||||
# **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-24
|
version 0.9.2 build 2014-11-25
|
||||||
# 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
|
||||||
```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")
|
||||||
|
|
Loading…
Reference in New Issue