Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local modem = peripheral.find("modem")
- local channel = 42
- while true do
- write("> Command (open/close): ")
- local cmd = read()
- modem.transmit(channel, 0, cmd)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement