rednet.broadcast

From ComputerCraft Wiki
Revision as of 16:43, 24 March 2012 by AyrA (Talk | contribs) (Created the Page)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Grid Redstone.png  Function rednet.broadcast
Sends a message to all Computer in Range. (see rednet.send( receiverID, message ) and rednet.receive( timeout ).
Syntax rednet.broadcast(string message)
Returns boolean success code. True if a message has been sent, false if not. "true" does not guarantee, that any computer was reachable!
Part of ComputerCraft
API rednet

Examples

Grid paper.png  Example
Sends a Message to all Computers (assuming a modem is attached and open)
Code
rednet.broadcast("ComputerCraft")