Hello,
For the need of a project, I need to know which X10 device are plugged or unplugged.
After reading sdk documentation and this forum, I was thinking to use this method :
status = ActiveHomeObj.SendAction("queryplc", unitID + " on")
On result, I should have the following matching : {-1, unplugged}, {0, off}, {1, on}
And with a loop from A to P and from 1 to 16, I was thinking to be able to know the status of all "port".
My program compile, and I get some result but not those expected.
I don't detect the current status but the value of the last request send.
If I unplug the device (for example a LM12F) or change it channel, it is not detected when I do a new query.
I found the application that store those information : X10nets.exe.
If I stop this program, all status are set to -1. No check to know if something is plugged.
I would like to know if there is a way to really ask to device the "real" current status ?
Regards,
L'elfe
PS : I have downloaded the version 3.0.0.200 of library ahscript.dll, and set I on the folder C:\Program Files\ActiveHome Pro otherwise I couldn't even get a status "on" or "off", and I'm using VS2008