Difference between revisions of "Rednet.send"
From ComputerCraft Wiki
m |
m (Moved to CAT:APIFunctions) |
||
| Line 13: | Line 13: | ||
}} | }} | ||
}} | }} | ||
| + | |||
| + | [[Category:API_Functions]] | ||
Revision as of 18:36, 28 November 2012
| Sends a message to a specific Computer or Turtle. (see rednet.broadcast( message ) and rednet.receive( timeout ). To get the id from a computer see os.computerID(). Setting WaitUntilPortOpen to True can help when the server is not receiving a response from the responding client. | |
| Syntax | rednet.send(int receiverID, string message, boolean WaitUntilPortOpen) |
| 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
| Sends a Message to the Computer with the ID 22 (assuming a modem is attached and open), and will wait until the port is available to use. | |
| Code |
rednet.send(22,"ComputerCraft", true) |