Modem.closeAll

From ComputerCraft Wiki
Jump to: navigation, search
Grid Redstone.png  Function modem.closeAll
Closes all channels on the modem.
Syntax modem.closeAll()
Returns nil
Part of ComputerCraft
API Modem

Examples

Grid paper.png  Example
Closes all channels on the modem.
Code
local modem = peripheral.wrap("top")

modem.closeAll()
print("All channels are now closed and computer is no longer listening for any messages.")
Output All channels are now closed and computer is no longer listening for any messages.
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox