rednet.close

From ComputerCraft Wiki
Revision as of 06:33, 6 June 2014 by Bomb Bloke (Talk | contribs) (Parameter optional as of CC 1.6.)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Grid Redstone.png  Function rednet.close
Tells the computer that the modem on the specified side can no longer be used for rednet networking, or affects all sides if none are specified. ComputerCraft versions prior to 1.6 require that a side be specified.
Syntax rednet.close([ string side ("left" / "right" / "front" / "back" / "bottom" / "top") ])
Returns nil
Part of ComputerCraft
API rednet

Examples

Grid paper.png  Example
Tells the computer to stop using the modem on the left for rednet purposes.
Code
rednet.close( "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