Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- peripheral.find("modem", rednet.open)
- rednet.host("bar", "maker")
- while true do
- local id,message,protocol = rednet.receive()
- if protocol == "bar" then
- print("Received message from " .. id.. " with protocol " .. protocol .. " and message " .. tostring(message))
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement