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
0d3e0bbb
"app/vscode:/vscode.git/clone" did not exist on "837cf206338516b157ebe9a45bbbda943bb71a70"
Commit
0d3e0bbb
authored
Jun 13, 2016
by
Tino Hager
Committed by
Marcel Stör
Jun 13, 2016
Browse files
Documentation Change - Memory leak (#1358)
Fixes #1303
parent
b47a56de
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
0d3e0bbb
...
...
@@ -28,11 +28,11 @@ The NodeMCU programming model is similar to that of [Node.js](https://en.wikiped
-- a simple HTTP server
srv
=
net
.
createServer
(
net
.
TCP
)
srv
:
listen
(
80
,
function
(
conn
)
conn
:
on
(
"receive"
,
function
(
conn
,
payload
)
conn
:
on
(
"receive"
,
function
(
sck
,
payload
)
print
(
payload
)
conn
:
send
(
"<h1> Hello, NodeMCU.</h1>"
)
sck
:
send
(
"<h1> Hello, NodeMCU.</h1>"
)
end
)
conn
:
on
(
"sent"
,
function
(
conn
)
conn
:
close
()
end
)
conn
:
on
(
"sent"
,
function
(
sck
)
sck
:
close
()
end
)
end
)
```
```
lua
...
...
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