rednet.open

From ComputerCraft Wiki
Jump to: navigation, search


Grid Redstone.png  Function rednet.open
Assuming a modem is attached to the specified side, rednet.open() tells the computer that side can be used for networking. The modem will be automatically configured to start listening on two channel numbers - one which has the same value as the computer's ID, and another which is used for detecting rednet broadcasts (65535).

See also: modem.open()
Syntax rednet.open(string side ("left" / "right" / "front" / "back" / "bottom" / "top"))
Returns nil
Part of ComputerCraft
API rednet

Examples

Grid paper.png  Example
Tells the computer that there is a modem to its left side that can be used for networking.
Code
rednet.open( "left" )


Grid disk.png Rednet API Functions
rednet.open - rednet.close - rednet.send - rednet.broadcast - rednet.receive - rednet.isOpen - rednet.host - rednet.unhost - rednet.lookup
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox