PHP 클래스 Phue\Command\UpdateSensorState

상속: extends CreateSensor
파일 보기 프로젝트 열기: sqmk/phue 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$sensorId string Sensor Id
$state array Sensor state

공개 메소드들

메소드 설명
__construct ( mixed $sensor ) Constructs a command
send ( Client $client ) Send command
stateAttribute ( string $key, mixed $value ) : self State attribute

메소드 상세

__construct() 공개 메소드

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

send() 공개 메소드

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

stateAttribute() 공개 메소드

State attribute
public stateAttribute ( string $key, mixed $value ) : self
$key string Key
$value mixed Value
리턴 self This object

프로퍼티 상세

$sensorId 보호되어 있는 프로퍼티

Sensor Id
protected string $sensorId
리턴 string

$state 보호되어 있는 프로퍼티

Sensor state
protected array $state
리턴 array