I need to create a program using the K8090 in C
and I'd like to know the status of a relay.
For example, on the relay 1, I've a lamp and I'd like to know if it is already on or not.
I tried with :
SendCommand(hDevice,CMD_QUERY_RELAY_STATUS, LAMPE, PARAM_NONE, PARAM_NONE);
But I found out that the BOOL returned by that function is not the relay status, but just indicate that the command worked or not.
EDIT : And I've just seen that the third param is useless too for that command
So how can I get the relay status (with an example if possible)?
Sorry if my english is not perfect.
Thank you in advance.