Difference between revisions of "Rednet.close"
From ComputerCraft Wiki
Bomb Bloke (Talk | contribs) (Parameter optional as of CC 1.6.) |
|||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{lowercase}} | {{lowercase}} | ||
{{Function | {{Function | ||
− | |name=rednet.close | + | |name=rednet.close |
− | |args=[[string (type)|string]] side ("left" | + | |args=[<nowiki/> [[string (type)|string]] side ''("left" / "right" / "front" / "back" / "bottom" / "top")'' ] |
|api=rednet | |api=rednet | ||
|addon=ComputerCraft | |addon=ComputerCraft | ||
− | |desc=Tells the computer that the side can no longer be used for networking. | + | |desc=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. |
|examples= | |examples= | ||
{{Example | {{Example | ||
− | |desc=Tells the computer | + | |desc=Tells the computer to stop using the modem on the left for rednet purposes. |
|code=rednet.close( "left" ) | |code=rednet.close( "left" ) | ||
}} | }} | ||
}} | }} | ||
+ | |||
+ | {{RednetAPIFunctions}} | ||
+ | |||
+ | [[Category:API_Functions]] |
Latest revision as of 06:33, 6 June 2014
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
Example | |
Tells the computer to stop using the modem on the left for rednet purposes. | |
Code |
rednet.close( "left" ) |
Rednet API Functions |
---|
rednet.open - rednet.close - rednet.send - rednet.broadcast - rednet.receive - rednet.isOpen - rednet.host - rednet.unhost - rednet.lookup |