Modem.closeAll

From ComputerCraft Wiki
Revision as of 15:48, 9 April 2014 by MKlegoman357 (Talk | contribs) (Expanded)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.