We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e927c3e commit 0f7ec91Copy full SHA for 0f7ec91
1 file changed
iocBoot/iocLuaAsyn/scripts/asyn.lua
@@ -4,18 +4,15 @@
4
5
asyn = require("asyn")
6
7
--- These values get used when the port object is created
8
-WriteTimeout = 4.0
9
-OutTerminator = "\n\n"
10
-InTerminator = "\n"
11
-
12
function get_html(port)
13
14
-- Creates a client object linking to the
15
-- asyn port with the given name. In and
16
-- Out terminators, as well as timeouts,
17
-- are copied from the global scope.
18
- p = asyn.client(port)
+ p = asynOctetClient.find(port, 0, "")
+ p.InTerminator = "\n"
+ p.OutTerminator = "\n\n"
19
20
-- Write a string across the port
21
p:write("GET / HTTP/1.0")
0 commit comments