Answers for "rednet receive"

0

rednet receive

-- Waits until someone sends a message to this computer, then displays it.
local senderId, message, protocol = rednet.receive()
print(message)

-- Waits five seconds or until someone sends a message to this computer, then displays it.
senderId, message, protocol = rednet.receive(5)
print(message)

-- Waits until someone sends a message to this computer with a protocol of "futons", then displays it.
senderId, message, protocol = rednet.receive("futons")
print(message)

-- Waits five seconds or until someone sends a message to this computer with a protocol of "futons", then displays it.
senderId, message, protocol = rednet.receive("futons",5)
print(message)
Posted by: Guest on October-20-2021

Browse Popular Code Answers by Language