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
419ec338
Commit
419ec338
authored
Feb 01, 2017
by
Marcel Stör
Browse files
Add two small fixes
parent
d2fbf40c
Changes
1
Show whitespace changes
Inline
Side-by-side
docs/en/modules/net.md
View file @
419ec338
...
...
@@ -78,7 +78,7 @@ Creates an UDP socket.
none
#### Returns
net.udpsocket sub module
[
net.udpsocket sub module
](
#netudpsocket-module
)
#### See also
[
`net.createConnection()`
](
#netcreateconnection
)
...
...
@@ -442,10 +442,10 @@ The syntax and functional similar to [`net.server:listen()`](#netserverlisten),
Register callback functions for specific events.
The syntax and functional similar to
[
`net.socket:on()`
](
#netsocketon
)
. However, only "receive
d
", "sent" and "dns" are supported events.
The syntax and functional similar to
[
`net.socket:on()`
](
#netsocketon
)
. However, only "receive", "sent" and "dns" are supported events.
!!! note
The
`receive
d
`
callback receives
`port`
and
`ip`
*after*
the
`data`
argument.
The
`receive`
callback receives
`port`
and
`ip`
*after*
the
`data`
argument.
## net.udpsocket:send()
...
...
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