Modem.open

From ComputerCraft Wiki
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
local modem = peripheral.wrap("top")

modem.open(1)
print("Channel 1 is now opened for listening.")
Output Channel 1 is now opened for listening.
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox