📜  用电话启动计算机程序 - 任何代码示例

📅  最后修改于: 2022-03-11 14:58:30.546000             🧑  作者: Mango

代码示例1
-- Phone
rednet.open("back")
rednet.send(id, "command")
sleep(3)
rednet.close("back")

-- Receiver
rednet.open("left")
id, msg = rednet.receive()
if msg == "command" then
    function()
    rednet.close("left")
end