rednet.isOpen

From ComputerCraft
Jump to navigation Jump to search

rednet.isOpen
Function
Syntax
rednet.isOpen()
Returns boolean open
API rednet
Source CC:Tweaked (source)

Checks if a modem is open on Rednet.

channel must be a Modem or side, like “modem_1234” or “top”

Error creating thumbnail: Unable to save thumbnail to destination
ExampleCheck if modem_1234 is open
Check if modem_1234 is open.
Code
local modem = peripheral.wrap("modem_1234")
print(rednet.isOpen(modem))
Output
true