modem.open

From ComputerCraft
⧼vector-jumptonavigation⧽ ⧼vector-jumptosearch⧽

modem.open
Function
Syntax
modem.open()
Returns nil
API modem
Source CC:Tweaked (source)

Opens a channel on a modem. A channel must be opened to receive messages from it. A modem can only have 128 channels open at the same time.

channel must be a number between 0 and 65535.

ExampleExampleOpen channel 42
Open channel 42.
Code
local modem = peripheral.find("modem")
modem.open(42)