modem.close

From ComputerCraft
Jump to navigation Jump to search

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

Closes a channel on a modem. A channel must be open 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.

ExampleExampleClose channel 42
Close channel 42.
Code
local modem = peripheral.find("modem")
modem.close(42)