Hi all,
I’m having a few issues with a program I’m writing using C# (LifxNet wrapper) and a couple of LIFX Originals. Basically I’m sending the same command to both lights but it seems to be a hit and miss situation where sometimes one light will instantly receive the command but the other won’t at all and other times they both receive the command.
A good example of this is using the (light) SetPower command. In my code I send the SetPower On command to both my bulbs at the same time and sometimes they will both turn on but, more often then not, only one will turn on and the other will just stay off like it never received the command.
Now one workaround for this issue I have found is to put my code in a while loop using the GetPower command to poll the bulbs and continuously send the SetPower command until the light eventually gets it (usually the 2nd or 3rd attempt in most cases). However this isn’t very practical because, not only is it inefficient, but it looks pretty bad having one light turn on and the second light turn on 3 seconds later.
For what it’s worth this problem doesn’t happen when using the Lifx iPhone app or other applications which utilise the LAN protocol, so I haven’t ruled out it’s a problem in my own code, but at the same time it doesn’t feel like that is the cause here.
So with that all said, I guess my question would be, is there a reason why these bulbs are not receiving these messages? Or is this a common issue found using the LifxNet wrapper maybe?
Any advice would be much appreciated.