peripheral.call

Calls a peripheral's function directly, at the specified side or network name.

ExampleCheck if the modem on top of the computer is wireless.
Check if the modem on top of the computer is wireless.
Code
<nowiki>
peripheral.call("top", "isWireless")
</nowiki>
Output true

peripheral.call
Function
Syntax
peripheral.call(
  • side or network name : string
  • function name : string
  • function arguments... : any
)

Returns anything
API peripheral
Source CC:Tweaked
This article is issued from Computercraft. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.