computercraft start program with phone code example
Example: computercraft start program with phone
-- 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