When I send multiple TCP out messages to the same target system, I get a trigger fired on each receipt of a line from the target system. I am using Unrecognised and the line text is put into a variable.
The trouble I am having is that the subsequent line input appears to overwriting the variable before I can process it. If I put a sleep of 2 seconds between each TCP out call then the variables don't get overwritten by subsequent calls and I can process them in time.
So for example if I output 4 messages 'A', 'B', 'C', 'D' expecting replies '1', '2', '3', '4' - the replies I am actually getting might be '1', '3', '4', '4'. It looks like a trigger is firing as each response is received, it is just that the variable is replaced too quickly.
Am I missing something, or do I have to add in logic to wait for replies before sending further messages?
TIA