PHP Class Phue\Command\UpdateSensorConfig

Inheritance: extends CreateSensor
Afficher le fichier Open project: sqmk/phue Class Usage Examples

Protected Properties

Свойство Type Description
$config array Sensor config
$sensorId string Sensor Id

Méthodes publiques

Méthode Description
__construct ( mixed $sensor ) Constructs a command
configAttribute ( string $key, mixed $value ) : self Config attribute
send ( Client $client ) Send command

Method Details

__construct() public méthode

Constructs a command
public __construct ( mixed $sensor )
$sensor mixed Sensor Id or Sensor object

configAttribute() public méthode

Config attribute
public configAttribute ( string $key, mixed $value ) : self
$key string Key
$value mixed Value
Résultat self This object

send() public méthode

Send command
public send ( Client $client )
$client Phue\Client Phue Client

Property Details

$config protected_oe property

Sensor config
protected array $config
Résultat array

$sensorId protected_oe property

Sensor Id
protected string $sensorId
Résultat string