Difference between revisions of "Id"

From ComputerCraft Wiki
Jump to: navigation, search
m (Added deletion recommendation)
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{ToDelete|This contains information already available on the [[CraftOS Shell]] page.}}
+
The '''id''' program is a default program in both [[CraftOS]] and [[TurtleOS]].
 +
[[File:ID_CraftOS.png|thumb|right|300px|The ID Program in action.]]
  
The '''id''' program prints the current computer's ID, using [[os.getComputerID|os.getComputerID()]].
+
Using the program will print the ID of the computer, with the text "This is computer #(ID)".
 +
If the computer is labelled, it will also print the label, with the text "This computer is labelled "Label Name"".
  
 +
This program can be used to find the ID of the computer you're working on, useful when networking with the [[Rednet (API)|Rednet API]].
 
[[Category:Programs]]
 
[[Category:Programs]]

Latest revision as of 18:47, 23 August 2016

The id program is a default program in both CraftOS and TurtleOS.

The ID Program in action.

Using the program will print the ID of the computer, with the text "This is computer #(ID)". If the computer is labelled, it will also print the label, with the text "This computer is labelled "Label Name"".

This program can be used to find the ID of the computer you're working on, useful when networking with the Rednet API.