for a,b in pairs(rs.getSides()) do
if peripheral.getType(b) == "modem" then
rednet.open(b)
end
end
while true do
local id, msg = rednet.receive()
print("ITEM RECIVED: ", msg)
if msg == "00x0 -0" then
print("Connection Terminated!")
os.sleep(10)
os.shutdown()
end
end
Comments