public function getDeviceState($deviceName)
    {
        $uri = "deviceStates/$deviceName";
        $response = $this->client->getEndpoint()->get($uri);

        return new DeviceState($this->client, \GuzzleHttp\json_decode($response->getBody()));
    }
public function getDeviceState($deviceName)
    {
        $uri = "deviceStates/$deviceName";
        $response = $this->client->getEndpoint()->get($uri);

        return new DeviceState($this->client, \GuzzleHttp\json_decode($response->getBody()));
    }
public function getDeviceState ( $ deviceName ) { $ uri = "deviceStates/$deviceName" ; $ response = $ this -> client -> getEndpoint ( ) -> get ( $ uri ) ; return new DeviceState ( $ this -> client , \ GuzzleHttp \ json_decode ( $ response -> getBody ( ) ) ) ; }
Retrieve the current state of a device.

@param string $deviceName
@return DeviceState
Retrieve the current state of a device .