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
626e7d3c
Commit
626e7d3c
authored
Jan 07, 2016
by
devsaurus
Browse files
close connection on sent instead on receive
parent
5a6975b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
lua_examples/webap_toggle_pin.lua
View file @
626e7d3c
...
...
@@ -26,6 +26,6 @@ srv:listen(80,function(conn)
end
buf
=
buf
..
"<option"
..
_on
..
">ON</opton><option"
..
_off
..
">OFF</option></select></form>"
;
client
:
send
(
buf
);
client
:
close
();
end
)
conn
:
on
(
"sent"
,
function
(
c
)
c
:
close
()
end
)
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