Computer (API)

From ComputerCraft Wiki
Revision as of 07:16, 26 March 2014 by Oeed (Talk | contribs) (Added peripheral API message)

Jump to: navigation, search
This API requires the use of a wrapped peripheral!
This API does not behave like a regular API, to use it you must first wrap the peripheral and call the methods on the wrapped object. For more information see this page.
This page is a stub.
Please help us by expanding it.

computer stands for the variable you wrapped the computer to. Example: computer = peripheral.wrap( "top" )

Method name Description
computer.turnOn() Turns on the Computer or Turtle.
computer.shutdown() Shuts off the Computer or Turtle.
computer.reboot() Reboots the Computer or Turtle.
computer.getID() Gets the ID of the Computer or Turtle if it is running, otherwise returns nothing.