Modem.open
From ComputerCraft Wiki
| Opens the specified channel to allow listening for messages. | |
| Syntax | modem.open(number channel) |
| Returns | nil |
| Part of | ComputerCraft |
| API | Modem |
Examples
| 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. |