Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Load the necessary Rednet API
- rednet.open("left") -- Ensure your modem is connected to the back side
- print("Listening for Rednet messages...")
- while true do
- local senderId, message, protocol = rednet.receive() -- Listen for incoming messages
- print(string.format("Received from %d: %s (Protocol: %s)", senderId, message, protocol))
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement