Hello I am trying to use the function node to modify a message from the TCP in node. I am trying to interface with a controller propitary interface. I have yet only managed to send a single value to the controller. Thats done by replying "?100=16" to the message "?100" where 16 is the value.
20:33:36.265: Tx: ?100
20:33:36.312: Rx: ?100=16
When trying to send and recieve more than one value I don't have the skills to read the message in the function node and pass the correct reply. For instance I want to assign 100 in the "!14,7,100" to a variable and reply ?14=100 to confirm to the controller that the value is recieved, wrapped up like the Rx line below:
20:29:53.295: Tx: !12,1,0,0!14,7,100?14?16
20:29:53.327: Rx: !12,1,0,0!14,7,100?14=100?16=23
The TCP in node is configured as stream of string and each "command group" in the string is separated by ! or ?.
Anyone who can push me in the right direction?