rednet.close

From ComputerCraft
Jump to: navigation, search

rednet.close
Function
Syntax
rednet.close()
Returns nil
API rednet
Source CC:Tweaked (source)

Closes rednet on the modem attached to side.

Note Note: This function call requires a Modem peripheral to be attached to the computer. See Networking for more information.

Note Note: Rednet is not secure against interception or spoofing. See Network security#Rednet for more information.

ExampleExampleClose the top modem.
If rednet is open on the top modem on the computer, this will close it.
Code
rednet.close("top")
Output Rednet events will no longer trigger on the top modem.