I am using a TCP out node to send data to a server in order to mimic our current PLC socket connection message structure but I am not sure how to insert ASCI codes as part of this message.
[
{
"id": "f3a6c6925f5bde8b",
"type": "tcp out",
"z": "f2ee9bee06dc25c0",
"name": "",
"host": "10.3.102.164",
"port": "57200",
"beserver": "client",
"base64": false,
"end": false,
"tls": "",
"x": 870,
"y": 980,
"wires": []
},
{
"id": "0dbe48d8bf3570a8",
"type": "inject",
"z": "f2ee9bee06dc25c0",
"name": "",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "{SOH}H 41580{STX}{ETX} {EOT}",
"payloadType": "str",
"x": 490,
"y": 980,
"wires": [
[
"f3a6c6925f5bde8b",
"b2e00899a82c3129"
]
]
}
]