13-11-2013, 15:50:39
(Dieser Beitrag wurde zuletzt bearbeitet: 13-11-2013, 15:52:47 von nstratem.)
Set PointTemperature sieht dann in PHP so aus:
PHP-Code:
function setPointTemperature($logicalDeviceId, $pointTemperature)
{
$data = '<BaseRequest
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="SetActuatorStatesRequest"
Version="1.60"
RequestId="33300000-2200-1000-0000-'.substr(md5(uniqid()), 0, 12).'"
SessionId="'.$this->sessionId.'"
BasedOnConfigVersion="'.$this->configurationVersion.'"
>
<ActuatorStates>
<LogicalDeviceState xsi:type="RoomTemperatureActuatorState"
LID="'.$logicalDeviceId.'"
PtTmp="'.$pointTemperature.'"
OpnMd="Auto"
WRAc="False"
/>
</ActuatorStates>
</BaseRequest>
';
$response = $this->doRequest($data);
}