devices

Top  Previous  Next

Get a list of devices owned by a component

Definition

devices = deviceManager.devices( componentId )

Name

Type

Description

devices

table

table of Device objects indexed by device id.

componentId

number

Id of the component that owns this requested devices.

Example

devices = deviceManager.devices( 1 )

for id, device in pairs(devices) do

 print(id, device.name)

end

 

Related

Device Object

Availability

Lua