Create linkedSend.lua
This commit is contained in:
parent
b24660c1a2
commit
23e44639ed
1 changed files with 14 additions and 0 deletions
14
linkedSend.lua
Normal file
14
linkedSend.lua
Normal file
|
@ -0,0 +1,14 @@
|
|||
local component = require("component")
|
||||
local event = require("event")
|
||||
local t = component.tunnel
|
||||
print("exit - выйти")
|
||||
while true do
|
||||
io.write("msg: ")
|
||||
_, message = pcall(io.read)
|
||||
if message == "exit" then
|
||||
break
|
||||
end
|
||||
t.send(message)
|
||||
local _, _, _, _, _, message = event.pull("modem_message")
|
||||
print(message)
|
||||
end
|
Loading…
Reference in a new issue