This is the S+ code snippet for code I used:?
FUNCTION SendCommand()
{
? ? TEMP = Serial_TX;? //local copy of incoming data
?
? ? MAKESTRING(ZV_Device_TX, "switch %s server rs232\n", DecoderName );
DELAY (DelayTime);
? ? MAKESTRING(ZV_Device_TX,? "send %s rs232 \x22%s\x22\n", DecoderName, TEMP );
? ? ? ? DELAY (DelayTime);
? ? MAKESTRING(ZV_Device_TX,? "show responses %s rs232 last\n", DecoderName );
}
There are 3 commands I sent,
1
the first makes connection between server and end point.?
This tells what type of data you are sending.?
2
This is the data sent with the command in quotes /x22
3
This command tells the server to send back the first reply from the 232 port.?
NOTE: did not find a way to subscribe to 232 replies, so you will either need to know the index number of the reply, or you can just have the most recent sent back (which is what I did here).?
( This is sending via the server not using the supplied endpoint modules )