Difference between revisions of "Rednet.announce"

From ComputerCraft Wiki
Jump to: navigation, search
(Corrected mapping from "Boolean" to "Boolean (type)")
(Deprecated.)
 
Line 3: Line 3:
 
|name=rednet.announce
 
|name=rednet.announce
 
|api=rednet
 
|api=rednet
|returns=[[boolean_(type)|boolean]] success code. True if a message has been sent, false if not. "true" does not guarantee, that any computer was reachable!
+
|returns=[[boolean_(type)|boolean]] success
 
|addon=ComputerCraft
 
|addon=ComputerCraft
|desc=Broadcasts an empty rednet message.  
+
|desc=Only available prior to ComputerCraft 1.5; for later versions, see [[rednet.broadcast|rednet.broadcast()]].<br><br>
 +
 
 +
Broadcasts an empty rednet message. Note that its return value indicates whether that message was ''sent'', as opposed to whether it was ''received'' or even ''receivable''.
 
|examples=
 
|examples=
 
{{Example
 
{{Example
Line 13: Line 15:
 
}}
 
}}
  
[[Category:API_Functions]]
+
{{RednetAPIFunctions}}
 +
 
 +
[[Category:Deprecated_API_Functions]]

Latest revision as of 06:33, 6 June 2014


Grid Redstone.png  Function rednet.announce
Only available prior to ComputerCraft 1.5; for later versions, see rednet.broadcast().

Broadcasts an empty rednet message. Note that its return value indicates whether that message was sent, as opposed to whether it was received or even receivable.
Syntax rednet.announce()
Returns boolean success
Part of ComputerCraft
API rednet

Examples

Grid paper.png  Example
Broadcasts an empty rednet message.
Code
rednet.announce()


Grid disk.png Rednet API Functions
rednet.open - rednet.close - rednet.send - rednet.broadcast - rednet.receive - rednet.isOpen - rednet.host - rednet.unhost - rednet.lookup