Hi Joshua.
You can use a listener to send and receive a response but you might find another function called rosstalk.sendWithResponse helpful.
Here is a demo panel that makes use of both sendWithResponse and also uses a listener tag. It should give you an idea of how both work. Just copy and paste into a new custom panel and give it a shot.
`
if (event.isMessageEvent())
{
var rec = event.getBytesAsString().trim();
var response = '';
for (var i = rec.length - 1; i >= 0; i--)
{
response += rec.charAt(i);
}
this.writeString('REVERSE: ' + response + 'n', false);
}
function callback(success, sentData, resultString, exception)
{
ogscript.rename('ResponseOutput', resultString);
}
rosstalk.sendMessageWithResponse('localhost', 12345, params.getValue('Message', 0) + 'n', 'n', callback);
//rosstalk.sendMessageWithResponse('[host]', [port], '[data]', '[response terminator]', [callback function]);
`
#DashBoard