modem.isWireless

From ComputerCraft
Jump to navigation Jump to search

modem.isWireless
Function
Syntax
modem.isWireless()
Returns boolean isWireless
API modem
Source CC:Tweaked (source)

Returns whether the modem is wireless.

ExampleExampleCheck whether a modem is a wireless modem
Checks whether a modem is a wireless modem.
Code
local modem = peripheral.find("modem")
print(modem.isWireless())
Output
true