private function ReceiveAPIData(ISCP_API_Data $APIData) { $ReplyAPIDataID = $this->GetIDForIdent('ReplyAPIData'); $ReplyAPIData = $APIData->ToJSONString(''); if (!$this->lock('ReplyAPIData')) { throw new Exception('ReplyAPIData is locked', E_USER_NOTICE); } SetValueString($ReplyAPIDataID, $ReplyAPIData); $this->unlock('ReplyAPIData'); // IPS_LogMessage('ReceiveAPIData2', print_r($APIData, true)); if ($APIData->Mapping != null) { if ($APIData->Mapping->IsVariable) { $this->UpdateVariable($APIData); } } }
private function SendDataToZone(ISCP_API_Data $APIData) { // IPS_LogMessage('SendDataToZone',print_r($APIData,true)); $Data = $APIData->ToJSONString('{43E4B48E-2345-4A9A-B506-3E8E7A964757}'); IPS_SendDataToChildren($this->InstanceID, $Data); }