control

Top  Previous  Next

Return the control object.

Definition

control = deviceManager.control( controlId )

control = deviceManager.control( controlPath )

Name

Type

Description

control

control object

The control object requested or nil if not found.

controlId

number

The Id of the control requested.

controlPath

string

The Path of the control.

Example

control = deviceManager.control( 1 )

print(control.name)

 

will print the name of control with id 1.

 

control, err = deviceManager.control( "Home///Projector///Focus +")

 

if control then

    deviceManager.requestControlValueChange(control.id, 1)

else

    print(err)

end

 

Will send out the IR signal Focus + to the Projector at home.

Related

Control Object

Availability

Lua