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
------------------------------
Original Message:
Sent: 11-16-2022 15:56
From: Mark Macklin
Subject: Acuity Return from Dashboard
I tried this James but no luck, read timed out is what ends up happening.
------------------------------
Mark Macklin
Original Message:
Sent: 11-02-2022 14:40
From: James Peltzer
Subject: Acuity Return from Dashboard
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
Original Message:
Sent: 09-28-2022 20:08
From: Mark Macklin
Subject: Acuity Return from Dashboard
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
------------------------------