Modem.open

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

Jump to: navigation, search
Grid Redstone.png  Function modem.open
Opens the specified channel to allow listening for messages.
Syntax modem.open(number channel)
Returns nil
Part of ComputerCraft
API Modem

Examples

Grid paper.png  Example
Opens channel 1 to allow listening for messages.
Code
modem.open(1)
print("Channel 1 is now opened for listening.")
Output Channel 1 is now opened for listening.