Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local f = fs.open("conf", "r")
- local conf = textutils.unserialise(f.readAll())
- f.close()
- rednet.open(conf.modem)
- local function query(m)
- local msg
- repeat
- rednet.broadcast(m, "mw")
- _, msg = rednet.receive("mw", 1)
- until msg
- return msg
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement