Hi!
The server is working, the response I am receiving through HTTP request node.
[
{
"id": "e04b0f75.efce08",
"type": "tab",
"label": "Flow 1",
"disabled": false,
"info": ""
},
{
"id": "4db09aba.6408d4",
"type": "join",
"z": "e04b0f75.efce08",
"name": "",
"mode": "custom",
"build": "array",
"property": "payload",
"propertyType": "msg",
"key": "topic",
"joiner": "|",
"joinerType": "str",
"accumulate": false,
"timeout": "",
"count": "3",
"reduceRight": false,
"reduceExp": "",
"reduceInit": "",
"reduceInitType": "",
"reduceFixup": "",
"x": 710,
"y": 280,
"wires": [
[
"4d340796.b64e88",
"19267ce4.02a55b"
]
]
},
{
"id": "b622dd82.eb625",
"type": "http request",
"z": "e04b0f75.efce08",
"name": "http req",
"method": "use",
"ret": "txt",
"paytoqs": false,
"url": "",
"tls": "",
"persist": true,
"proxy": "",
"authType": "",
"x": 660,
"y": 500,
"wires": [
[
"9239ba5a.ee413"
]
]
},
{
"id": "9239ba5a.ee413",
"type": "debug",
"z": "e04b0f75.efce08",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"targetType": "full",
"x": 930,
"y": 500,
"wires": []
},
{
"id": "4d340796.b64e88",
"type": "function",
"z": "e04b0f75.efce08",
"name": "",
"func": "msg.payload= 'temp|'+msg.payload[0]+'#hr|'+msg.payload[1]+'#lux|'+msg.payload[2];,
"outputs": 1,
"noerr": 0,
"x": 850,
"y": 280,
"wires": [
[
"a54f1ec9.9912d8"
]
]
},
{
"id": "d994620a.ea092",
"type": "debug",
"z": "e04b0f75.efce08",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"targetType": "full",
"x": 510,
"y": 640,
"wires": []
},
{
"id": "a54f1ec9.9912d8",
"type": "change",
"z": "e04b0f75.efce08",
"name": "url&method",
"rules": [
{
"t": "set",
"p": "url",
"pt": "msg",
"to": "http://IP:PPPP/iot/d?k=KEY&i=sensor&getCmd=1",
"tot": "str"
},
{
"t": "set",
"p": "method",
"pt": "msg",
"to": "POST",
"tot": "str"
},
{
"t": "set",
"p": "headers",
"pt": "msg",
"to": "{\"Service\":\"Service\",\"Content-Type\":\"text/plain\",\"ServicePath\":\"/Sensor\"}",
"tot": "json"
},
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "$string(payload)\t\t",
"tot": "jsonata"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 350,
"y": 520,
"wires": [
[
"b622dd82.eb625",
"d994620a.ea092"
]
]
},
{
"id": "19267ce4.02a55b",
"type": "debug",
"z": "e04b0f75.efce08",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"x": 890,
"y": 200,
"wires": []
}
]
This is my code, I modified some parts.
Thanks.