06.01.2013 Aufrufe

Migration - Smarthome-Components

Migration - Smarthome-Components

Migration - Smarthome-Components

MEHR ANZEIGEN
WENIGER ANZEIGEN

Erfolgreiche ePaper selbst erstellen

Machen Sie aus Ihren PDF Publikationen ein blätterbares Flipbook mit unserer einzigartigen Google optimierten e-Paper Software.

}<br />

$varid = IPS_GetVariableID($varid);<br />

return 'IP-SYMCON\\'.IPS_GetLocation($varid);<br />

function IPS_GetInstanceIDs()<br />

{<br />

}<br />

return IPS_GetInstanceList();<br />

function IPS_GetModuleInstance($instanceid)<br />

{<br />

}<br />

$instance = IPS_GetInstance($instanceid);<br />

return Array(<br />

);<br />

"instanceid" => $instance['InstanceID'],<br />

"instancestatus" => $instance['InstanceStatus'],<br />

"moduleguid" => $instance['ModuleInfo']['ModuleID'],<br />

"packetsreceived" => ,<br />

"packetstransmitted" => ,<br />

"packetsaccepted" => ,<br />

"packetsdropped" => ,<br />

"packetsbuffered" =><br />

function IPS_GetModuleInfo ( $mguid ) {<br />

}<br />

$marray = IPS_GetModule( $mguid );<br />

$m = Array();<br />

$m['name'] = $marray['ModuleName'];<br />

switch ($marray['ModuleType']) {<br />

}<br />

case :<br />

case 1:<br />

case 2:<br />

case 3:<br />

$m['type'] = 'Core';<br />

break;<br />

$m['type'] = 'I/O';<br />

break;<br />

$m['type'] = 'Splitter';<br />

break;<br />

$m['type'] = 'Device';<br />

break;<br />

$m['guid'] = $mguid;<br />

$larray = IPS_GetLibrary($marray['LibraryID']);<br />

$m['version'] = ($larray['Version'] >> 8) .".". ($larray['Version'] & 0xFF);<br />

return $m;

Hurra! Ihre Datei wurde hochgeladen und ist bereit für die Veröffentlichung.

Erfolgreich gespeichert!

Leider ist etwas schief gelaufen!