Hi Touchstone,

touchstone wrote: 
> So I made some changes to treat semicolons as marking separate
> connections.  I also added the ability to specify a delay between
> connections by a comma (so the command for two IR codes with a
> three-second delay is, "K 2822 2296 10FD... ,3;K 2422 21A1 ...")

Thinking about it, I'm even more confused ... 

The semicolons shouldn't make it into your code, but should be stripped
by the time the SocketSend-Method is called - so your -split(/;/,$Cmd)
-should never actually split something. 

Your comma separated delay will make it there and is effective I guess.
But your delay implementation by means of -sleep- will interrupt plugin
execution whereas in my implementation a callback mechanism is used
which is triggered after the specified time and does not interrupt the
execution of the plugin.

May I ask you to replace the comma (to indicate the delay) in your
cmd-definition by a semicolon - then your changes would completely
become uneffective - just to check my code works.

If something is wrong with my implementation and it doesn't work for
you, I'm more than happy to make it work. 


Kind regards

Günther



Primary System: LMS on Win 7 PC, 4 SBT, 1 Duet, 1 piCorePlayer &
HifiMeDIY Sabre II DAC, 2 Duet Controller, 2 iPods, 1 iPhone (iPeng),
Sony XPeria Mini & ION,  Android Tablet (SqueezeControl, OrangeSqueeze,
SqueezeCommander) -- Secondary System: Mobile Server based on
SqueezePlug on RaspBerry PI

Visit 'SBNetIO' (http://code.google.com/p/sbnetio) - yet another remote
control plugin.
------------------------------------------------------------------------
cadfish's Profile: http://forums.slimdevices.com/member.php?userid=58296
View this thread: http://forums.slimdevices.com/showthread.php?t=100514

_______________________________________________
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to