Author Topic: Return Multiple Values from single phrase in Payload?  (Read 6648 times)

0 Members and 1 Guest are viewing this topic.

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Return Multiple Values from single phrase in Payload?
« Reply #15 on: October 14, 2013, 08:47:15 PM »

With regard to testing by manually entering "C N N" in the payload field and using the save and execute: to test your command this way you would need to use the payloadXML value, not the payloadXML phrase. The way payloadXML works is that the value column corresponds to {1} and the phrase column corresponds to {PF.1} (aka 'friendly payload' -- a description of a payload that humans can understand).

So, to test the command using the payload field you need to enter channel numbers not channel names. If you look again at the top screenshot, you can see that the regex action is trying to evaluate "C N N", when what it needs is the channel number.

Or better yet, test using actual voice commands. Everything looks correct, so it should be working as long as your IP is correct and your map tables. In any case, you should not have problems with the regex if you test properly.

JasonFox

  • $upporter
  • Jr. Member
  • *****
  • Posts: 27
  • Karma: 4
    • View Profile
Re: Return Multiple Values from single phrase in Payload?
« Reply #16 on: October 14, 2013, 08:58:15 PM »
and unsurprisingly you are both correct!  ::bow

Sorry to have taken up so much of everyone's time on what turned out to be simple(stupid) errors on my part.

If it's any consolation I did learn a lot along the way.  :P

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Return Multiple Values from single phrase in Payload?
« Reply #17 on: October 14, 2013, 09:13:33 PM »
That's Ok.  It is certainly at a higher level of difficulty than the usual stuff, and we're glad that you got it working, and are also very happy that you learned stuff!  ;D