Modem.close

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

Jump to: navigation, search
Grid Redstone.png  Function modem.close
Closes the specified channel.
Syntax modem.close(number channel)
Returns nil
Part of ComputerCraft
API Modem

Examples

Grid paper.png  Example
Closes channel 1.
Code
modem.close(1)
print("Channel 1 is now closed and is no longer used for listening.")
Output Channel 1 is now closed and is no longer used for listening.