computercraft.identification – ComputerCraft computer identification#
This device can be queried to request the server identification for the computer.
Available methods#
- computercraft.identification.getComputerID()#
Get the server-wide computer numerical identifier.
- Returns:
The computer identifier.
- Return type:
number
- computercraft.identification.getComputerLabel()#
Get the computer label.
- Returns:
The computer label, or
nilif no label has been set.- Return type:
string | nil
- computercraft.identification.setComputerLabel(label)#
Set the computer label.
- Parameters:
label (
string | nil) – The label to set.
Events#
This device does not raise events.