Jump to content

Com Debugging


jasemilly

Recommended Posts

HI

Not sure this the correct section for this post, but when it works I intend for I to be AJAX based

 

I have followed the instructions here http://cocoontech.com/portal/articles/tutorials/home-automation/16-how-to-interface-homeseer-with-php

 

But I get the error fatal error Call to undefined method com::DeviceStatus()

 

I am running a vista machine and apache PHP are configured ok.

 

How do I start error trapping.

 

I know the object is ok, as I can use it in visual studio, how does PHP know were this object is.

 

sorry if this basic or wrong I am pretty stuck and unsure whee to begin, so thanks for any help.

Link to comment
Share on other sites

I assume you saw the note on step 4? (link added)

make sure you change Homeseer.Application to whatever the object is named in your DCOM configuration screen, usually the other name is Homeseer.ClsString

Without going into details I don't know, COM objects are all registered in Windows. PHP itself doesn't have to know where the actual object DLL is.

 

Are you sure the method is called "DeviceStatus" and not "devicestatus" like I see in the article?

Link to comment
Share on other sites

Hi this is it

 

<!DOCTYPE html>

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<title></title>

</head>

<body>

 

<?php

// $hs = new COM("Homeseer.Application");

$hs = new COM("homeseer.clsString");

// $hs->ExecX10("a1","off","0","0");

$status=$hs->devicestatus("A1");

echo $status;

unset($hs);

?>

</body>

</html>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.