Difference between revisions of "Rednet.send"
From ComputerCraft Wiki
m (moved Rednet.send( receiverID, message ) to Rednet.send) |
m |
||
Line 6: | Line 6: | ||
|api=rednet | |api=rednet | ||
|addon=ComputerCraft | |addon=ComputerCraft | ||
− | |desc=Sends a message to a Computer. (see [[rednet.broadcast( message )]] and [[rednet.receive( timeout )]]. To get the id from a computer see [[os.computerID()]]. | + | |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= | |examples= | ||
{{Example | {{Example |
Revision as of 07:58, 30 May 2012
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
Example | |
Sends a Message to the Computer with the ID 22 (assuming a modem is attached and open) | |
Code |
rednet.send(22,"ComputerCraft") |