Modem.closeAll
From ComputerCraft Wiki
Function modem.closeAll | |
Closes all channels on the modem. | |
Syntax | modem.closeAll() |
Returns | nil |
Part of | ComputerCraft |
API | Modem |
Examples
Example | |
Closes all channels on the modem. | |
Code |
local modem = peripheral.wrap("top") modem.closeAll() print("All channels are now closed and computer is no longer listening for any messages.") |
Output | All channels are now closed and computer is no longer listening for any messages. |