Hi Everyone,
I am using the .NET dll.
I want to send a command to LED 1 and LED 2. I use the following code:
irt.send("somecontrol", "somecommand", 0, 4); //For led 1
irt.send("somecontrol", "somecommand", 0, 5); //For led 2
The first command gets executed correctly, but the second command not. From studying the log-files, it seems that the second command is not executed, because the irtrans is busy executing the first command.
I tried adding some latency:
irt.send("somecontrol", "somecommand", 0, 4); //For led 1
Thread.Sleep(50); //below 50 ms is not always working
irt.send("somecontrol", "somecommand", 0, 5); //For led 2
and it works.
The problem is then, that if I then want to send a command to for instance 6 different LEDs, then this delay becomes a little annoying.
So my question is:
Is there way to send a command to for instance two different LEDs, in one, so that they both get executed immediately(or almost immediately)?
Hope you get my question.
Best regards,
Jakob Randa.
Developer at http://www.testroniclabs.com