Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- component = require("component")
- term = require("term")
- event = require("event")
- computer = component.computer
- modem = component.modem
- modem.open(457)
- msg = term.read()
- msg = msg:gsub("%s+", "")
- if msg == "pingtmobile1" then
- modem.broadcast(457, "PING_TMOBILE1")
- local _, _, from, port, dst, message = event.pull("modem_message")
- print(dst)
- else
- os.exit()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement