Hi All,
I have something odd happening on a Custom Panel I'm writing.
I'm sending a TCP byte message to some kit and based upon the response, performing actions in my panel.
The issue i'm seeing is that although I can see the response in Wireshark to a message I send, I can't get my listener in Dashboard to give me any output.
It works fine if I send a different message that just happens to be 1 byte longer. But the way I've got the task setup it should grab all the bytes anyway.
Here's the code I'm using on the Listener task:
if (event.isMessageEvent())
{
ogscript.debug("Got message");
var data = [];
//get the first byte
data.push(event.getBytes()[0]);
var datapush = event.getBytes();
ogscript.debug("datapush = " + datapush);
var stream = this.getInputStream();
ogscript.debug("Data available: " + stream.available()); //print message length
//get the rest of the bytes in the message and add to array
while( stream.available())
data.push(stream.read().toString(16));
var CONNECTED = new Array();
CONNECTED[0] = data;
params.setValue('CONNECTED' , 0, CONNECTED.toString());
var CONNECTEDSTRING = CONNECTED;
ogscript.debug("CONNECTED STRING = " + CONNECTEDSTRING);
var replace = params.getValue('CONNECTED', 0).replace(/,/g, " ");
ogscript.debug("replace = " + replace);
var split = replace.split(" ");
ogscript.debug("split = " + split);
var Checksum = split[5];
ogscript.debug("Checksum RX = " + Checksum);
}
and a screenshot of my listener setup:

I'd be really grateful for some help with this one please.
Cheers,
Chris
------------------------------
Chris Mason
ES BROADCAST LTD
------------------------------