Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- receivingID = 1
- rednet.open("top")
- while true do
- h = read()
- if h == "open" then
- rednet.send(receivingID, "open")
- elseif h == "close" then
- rednet.send(receivingID, "close")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement