Hi,
I'm trying to put in place a tcp communication using rosstalk and my device.
I'm using the sendmessage method with callback. The callback function is the one supposed to give me the response of my device a a tcp message.
The problem is that the response is always a null string.
I was wondering if there is a bug in Dashboard or if i'm doing something wrong.
The code looks like this:
function callback(success, sentData, resultString, exception)
{
ogscript.debug("TCP result: " + resultString);
}
var ip = params.getValue(0xC,0);
var port = params.getValue(0xD,0);
rosstalk.sendMessage(ip, port, message, callback);//Send message to external device
I would appreciate if somebody could shed some light on this issue.
Thanks
Bruno