What you are doing is a simple RossTalk Fire/Forget message.
If you require 2-way communication, you have several options:
1. Use rosstalk.sendMessageWithResponse
2. Use a tag
You would use rosstalk.sendMessageWithResponse if you still want to close the connection after sending a message and just want to read a relatively simple response from the device.
You would use the listener tag if you wish to maintain an open connection to the device and send/receive data on a regular basis.
The sendMessageWithResponse looks a bit like this:
function callback(success, sentData, resultString, exception)
{
}
rosstalk.sendMessageWithResponse('[host]', [port], '[message]', '[end of message indicator]', callback);
#DashBoard