modem.closeAll

Closes all channels on a modem. A channel must be open to receive messages on it. A modem can only have 128 channels open at the same time.

ExampleClose all channels
Close all channels.
Code
<nowiki>
local modem = peripheral.find("modem")
modem.closeAll()
    </nowiki>

modem.closeAll
Function
Syntax
modem.closeAll()
Returns nil
API modem
Source CC:Tweaked (source)
This article is issued from Computercraft. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.