Author |
|
jeffw_00 Super User
Joined: June 30 2007
Online Status: Offline Posts: 929
|
Posted: October 22 2008 at 23:37 | IP Logged
|
|
|
Hi - The definition of this function reads in part...
Return value
Integer. Returns the CMD2 value from the Insteon acknowledgement if successful (a positive value). Returns - 100 if the ID cannot be found. -1 is returned if the controller is not available, -2 is returned if the controller does not support Insteon.
What does it mean if an insteon (lamp/appliance) module, that works 99% of the time, occasionally returns a -2?
thanks!
/j
Edited by jeffw_00 - October 22 2008 at 23:37
|
Back to Top |
|
|
jeffw_00 Super User
Joined: June 30 2007
Online Status: Offline Posts: 929
|
Posted: November 04 2008 at 13:55 | IP Logged
|
|
|
bump?
|
Back to Top |
|
|
dhoward Admin Group
Joined: June 29 2001 Location: United States
Online Status: Offline Posts: 4447
|
Posted: November 05 2008 at 22:13 | IP Logged
|
|
|
Jeff,
I traced the code to this function and found some problems with the Help documentation.
-100 will be returned if the requested ID cannot be found in the InsteonDevices table.
-1 will be returned if the "Controller" associated with the requested ID cannot be found in the active controllers list.
-1 will also be returned if the "Controller" associated with the requested ID is not an Insteon controller (this shouldnt happen but you never know ).
-2 will be returned if the requested ID did not respond to the Insteon command. This could be a timeout, the device is not physically connected, COMM error, etc. Basically PowerHome sent the Insteon command and did not get a reply.
-3 will be returned if the "Controller" for the requested ID is in the active controller list, supports Insteon, but is not "Connected" (ie. you ran the ph_disconnect function or the controller never connected properly).
This should cover all possible error return values.
HTH,
Dave.
|
Back to Top |
|
|
jeffw_00 Super User
Joined: June 30 2007
Online Status: Offline Posts: 929
|
Posted: November 05 2008 at 22:30 | IP Logged
|
|
|
Very helpful Dave. I appreciate it!
/j
(ps - looking forward to the cleanup release of PH2!)
|
Back to Top |
|
|