Confirming command sent

IRTrans Software plugins for applications like Girder, Homeseer and many more

Moderator: marcus

Confirming command sent

Postby ontrack2 » Mon 9. Feb 2009, 20:47

Hi there,

Please excuse my question as I an new to .net and coding for the IR Trans.

I am using the ,NET DLL via VB to control a IRTRans XL. Sendiung commands to teh IRTrans unit via IRT.irsend.

Is there a way that I can programatically confirm (from my application) that the IRTrans device received the instruction (from my application) to send the command and has in fact sent it?
ontrack2
 
Posts: 3
Joined: Thu 26. Jun 2008, 05:06

Re: Confirming command sent

Postby IRTrans » Tue 10. Feb 2009, 00:32

Hi,
you only need to analyze the return parameter of "IRSend".

If there was an error you will get back a NETWORKSTATUS structure describing the error.

If everything was fine NULL will be returned.

IRTrans
IRTrans
Administrator
 
Posts: 2115
Joined: Mon 21. Apr 2008, 23:32

Re: Confirming command sent

Postby ontrack2 » Tue 10. Feb 2009, 01:12

Thanks for that. Works perfectly.

Is there anywhere a list of the values that NETWORKSTATUS can return?
ontrack2
 
Posts: 3
Joined: Thu 26. Jun 2008, 05:06

Re: Confirming command sent

Postby IRTrans » Tue 10. Feb 2009, 15:27

In case of an error NETWORKSTATUS will contain the error code and error message. There are a multitude of possible errors, therefore we do not have a list of all of them.

IRTrans
IRTrans
Administrator
 
Posts: 2115
Joined: Mon 21. Apr 2008, 23:32


Return to Plugins

Who is online

Users browsing this forum: No registered users and 6 guests

cron