rednet.close

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

rednet.close
Function
Syntax
rednet.close(
  • side : string
)

Returns nil
API rednet
Source CC:Tweaked (source)

Closes rednet on the modem attached to side.

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

ExampleClose the top modem.
If rednet is open on the top modem on the computer, this will close it.
Code
<nowiki>
rednet.close("top")
    </nowiki>
Output Rednet events will no longer trigger on the top modem.
This article is issued from Computercraft. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.