Difference between revisions of "Rednet.broadcast"

From ComputerCraft Wiki
Jump to: navigation, search
(Created the Page)
 
m
Line 6: Line 6:
 
|api=rednet
 
|api=rednet
 
|addon=ComputerCraft
 
|addon=ComputerCraft
|desc=Sends a message to all Computer in Range. (see [[rednet.send( receiverID, message )]] and [[rednet.receive( timeout )]].
+
|desc=Sends a message to all Computer in Range. (see [[rednet.send]] and [[rednet.receive]]).
 
|examples=
 
|examples=
 
{{Example
 
{{Example

Revision as of 07:59, 30 May 2012


Grid Redstone.png  Function rednet.broadcast
Sends a message to all Computer in Range. (see rednet.send and rednet.receive).
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")