modem.isWireless

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

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