PHP Class Phue\Command\GetNewSensors

Inheritance: implements Phue\Command\CommandInterface
Show file Open project: sqmk/phue

Protected Properties

Property Type Description
$lastScan string Last scan
$sensors array Found sensors

Public Methods

Method Description
getSensors ( ) : array Get sensors
isScanActive ( ) : boolean Is scan currently active
send ( Client $client ) : self Send command

Method Details

getSensors() public method

Get sensors
public getSensors ( ) : array
return array List of new sensors

isScanActive() public method

Is scan currently active
public isScanActive ( ) : boolean
return boolean True if active, false if not

send() public method

Send command
public send ( Client $client ) : self
$client Phue\Client Phue Client
return self This object

Property Details

$lastScan protected property

Last scan
protected string $lastScan
return string

$sensors protected property

Found sensors
protected array $sensors
return array