Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Wireless MODEM
- rednet.open("top")
- local modem = peripheral.wrap("right")
- while true do
- ids, msg, ptrc = rednet.receive()
- print("Ricevuto "..msg)
- print("Inoltro richiesta a "..msg..":80")
- modem.sendChannel(80, msg)
- modem.setListening(80, true)
- local event, side, id, chn, mess = os.pullEvent("lan_message")
- print("Ricevuto risposta da: 144.91.97."..id)
- sleep(2)
- rednet.send(ids, mess)
- sleep(0.5)
- end
Advertisement
Add Comment
Please, Sign In to add comment