Modem.open
From ComputerCraft Wiki
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
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. |