\App\IqrfNetModule\EntitiesStandardLight

IQRF Standard light

Summary

Methods
Properties
Constants
__construct()
getPower()
setPower()
toArray()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

__construct(  index,   power) : 

Constructor

Parameters

index

Index of the light

power

Power level of the light from range <0;100>

Returns

getPower()

getPower() : 

Get a power level of the light

Returns

Power level of the light from range <0;100>

setPower()

setPower(  power) : 

Set a power level of the light

Parameters

power

Power level of the light from range <0;100>

Returns

toArray()

toArray() : int||string|int

Convert an object to an array

Returns

int||string|int —

Properties in array