Facility Control

 View Only
  • 1.  Acuity Return from Dashboard

    Posted 09-28-2022 20:09
    I am trying to ask the Acuity what the state of a key is via Dashboard, but I don't get a result back. I know how to query when doing something like XPT MLE:6:KEY:1:? but not for something like KEYSTATE 6:1. Guessing I am just missing something simple.

    Here is what I was trying:

    function callbackFunctiontest(success, cmd, result, exception)
    {
    ogscript.debug(result);
    }
    rosstalk.sendMessage(%const['hosts']['ACUITY.host']%, %const['hosts']['ACUITY.port']%, 'KEYSTATE 6:1', callbackFunctiontest);

    ------------------------------
    Mark Macklin
    ------------------------------


  • 2.  RE: Acuity Return from Dashboard

    Posted 11-02-2022 14:41
    Hi Mark
    This was missed when originally posted. By default, unless a RossTalk command ends with a question mark, DashBoard will not wait for a response. For what you are trying to do, rosstalk.sendMessageWithResponse would be needed:
    function callbackFunctiontest(success, cmd, result, exception)
    {
    ogscript.debug(result);
    }
    rosstalk.sendMessageWithResponse(%const['hosts']['ACUITY.host']%, %const['hosts']['ACUITY.port']%, 'KEYSTATE 6:1', '\r\n', callbackFunctiontest);​


    ------------------------------
    James Peltzer
    Ross Video
    ------------------------------



  • 3.  RE: Acuity Return from Dashboard

    Posted 11-16-2022 15:56
    I tried this James but no luck, read timed out is what ends up happening.

    ------------------------------
    Mark Macklin
    ------------------------------



  • 4.  RE: Acuity Return from Dashboard

    Posted 11-18-2022 16:34
    My apologies Mark, 
    rosstalk.sendMessageWithResponse requires a slightly different form of the RossTalk Message as it does not automatically terminate its messages with a carriage return and linefeed. 

    function callbackFunctiontest(success, cmd, result, exception)
    {
    ogscript.debug(result);
    }
    rosstalk.sendMessageWithResponse(%const['hosts']['ACUITY.host']%, %const['hosts']['ACUITY.port']%, 'KEYSTATE 6:1\r\n', '\r\n', callbackFunctiontest);​


    ------------------------------
    James Peltzer
    Ross Video
    ------------------------------



  • 5.  RE: Acuity Return from Dashboard

    Posted 11-18-2022 16:49
    How dare you James haha, your brain scares me but I am glad you are there to know the answers to my random questions. Truly appreciate all the help you provide!

    ------------------------------
    Mark Macklin
    ------------------------------