Difference between revisions of "Rednet.send"

From ComputerCraft Wiki
Jump to: navigation, search
(Anh em may voi nhau coi di)
(Undo revision 1826 by 37.59.80.67 (talk))
Line 1: Line 1:
Hello my friend heres my new gig easy as it looks Ill send u a total of 5350++ backlinks to your website in 2 tiers. This gig its for 1 website and up to 5 keywords. First tier to your main website 350 page rank 1-5 and the the second tier of 5000 profile backlinks pointing to your first tier.Ill send u a report in a txt file in less than 48 hours.Any question just send me a private message
+
{{lowercase}}
 +
{{Function
 +
|name=rednet.send
 +
|args=[[int]] receiverID, [[string]] message
 +
|returns=[[boolean]] success code. True if a message has been sent, false if not. "true" does not guarantee, that the destination was reachable!
 +
|api=rednet
 +
|addon=ComputerCraft
 +
|desc=Sends a message to a Computer. (see [[rednet.broadcast( message )]] and [[rednet.receive( timeout )]].<br />To get the id from a computer see [[os.computerID()]].
 +
|examples=
 +
{{Example
 +
|desc=Sends a Message to the Computer with the ID 22 (assuming a modem is attached and open)
 +
|code=rednet.send(22,"ComputerCraft")
 +
}}
 +
}}

Revision as of 16:00, 24 June 2012


Grid Redstone.png  Function rednet.send
Sends a message to a Computer. (see rednet.broadcast( message ) and rednet.receive( timeout ).
To get the id from a computer see os.computerID().
Syntax rednet.send(int receiverID, string message)
Returns boolean success code. True if a message has been sent, false if not. "true" does not guarantee, that the destination was reachable!
Part of ComputerCraft
API rednet

Examples

Grid paper.png  Example
Sends a Message to the Computer with the ID 22 (assuming a modem is attached and open)
Code
rednet.send(22,"ComputerCraft")