VoxCommando
Help and Support (Using VoxCommando) => EventGhost => Topic started by: DHHJ on September 02, 2012, 06:54:24 PM
-
When I build a command using EventGhost.Send along with a Payload Range, the packet received by EG has a single quote around the chosen payload.
For example if the command is EventGhost.Send and the chosen value from a payload range containing Orange,Red,Blue is Red, then the event in EG appears as Broadcast.'Red'.
I have a number of EG macros built with the event already defined without quotes (coming from an iRule panel I'm already using).
Any way to overcome this or is the best way to add a second event in each EG macro? Thanks.
-
Please send me examples of at least one VC command and one EG macro so i can play with it a bit. thanks.
-
I think you might be confusing suffix with payload. It's understandable since eventghost and VoxCommando both use the term payload.
If you want to use the VC payload as a suffix when sending to eventghost you can do it like this in vc when editing your action to send to eventghost:
eventname.{1}
It will also send any payloads as eg payloads, but your macro can simply ignore them.
Hope this helps. If not send me some stuff to play with. :)
-
Sorry for the confusion. I have tried both a payload {1} and without a payload. Both are sending the chosen variabel with single quotes. Attached is a short example. thanks.
[attachment=1]
-
you did not send an eventghost macro which is more what I am interested in seeing. AFAIK VC does not send the quotes, it is how the broadcaster plugin represents payloads.
What does your history window look like after sending the command from iRule?
-
Hi James, I think it was in the first post ;)
For example if the command is EventGhost.Send and the chosen value from a payload range containing Orange,Red,Blue is Red, then the event in EG appears as Broadcast.'Red'.
-
he sent me XML for a VC group, I need xml for an EG macro
-
he sent me XML for a VC group, I need xml for an EG macro
Ups :bonk
-
Sorry for making it so confusing!
I'm using the Broadcaster plug-in in EG and when I send EventGhost.Send {1} from VC (and per the example above I say Red as the choice), Broadcaster displays:
Broadcaster.Red 'Red'
If I send EventGhost.Send from VC (and per the example above I again say Red as the choice), Broadcaster displays:
Broadcaster.'Red'
iRule sends a udp packet to EG and Broadcaster displays Broadcast.Red
So I'm simply trying to get VC to send a payload/suffix that doesn't include the single quotes.
Maybe the easiest way around this to include 2 events in the EG macro- one for VC and one for iRule.
-
You still did not send me the xml for the eventGhost macro so I can't really troubleshoot the problem properly, but I don't see why you can't just use this:
Broadcaster.Red 'Red'
The fact that there is also a payload should not affect your macro and it should work exactly the same as if you received the event
Broadcaster.Red
The part appearing in single quotes is the payload, and unless your macro is trying to read a payload it won't matter what it is. Since you say that iRule is generating only
Broadcaster.Red
then I can only assume that your macro ignores the payload.
-
Got it. Thanks. You were right- the payload is ignored.
-
Glad to hear it :D