Create linkedSend.lua

This commit is contained in:
erius0 2021-01-08 02:32:44 +03:00 committed by GitHub
parent b24660c1a2
commit 23e44639ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

14
linkedSend.lua Normal file
View 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