Thank you Steve, i was not aware how to do that
return <paste-copy-data>
But like i said a bunch of registers give me the same value.
[
{
"id": "5b592e561f6a0087",
"type": "buffer-parser",
"z": "210d4bb2856c7935",
"name": "",
"data": "payload",
"dataType": "msg",
"specification": "spec",
"specificationType": "ui",
"items": [
{
"type": "int16be",
"name": "item1",
"offset": 0,
"length": 1,
"offsetbit": 0,
"scale": "1",
"mask": ""
}
],
"swap1": "",
"swap2": "",
"swap3": "",
"swap1Type": "swap",
"swap2Type": "swap",
"swap3Type": "swap",
"msgProperty": "payload",
"msgPropertyType": "str",
"resultType": "value",
"resultTypeType": "return",
"multipleResult": false,
"fanOutMultipleResult": false,
"setTopic": true,
"outputs": 1,
"x": 490,
"y": 1380,
"wires": [
[
"50008624a981021c"
]
]
},
{
"id": "3e08f6b03c95841b",
"type": "function",
"z": "210d4bb2856c7935",
"name": "function 2",
"func": "\nreturn { \"topic\": \"ddd203704ceff98f\", \"messageId\": \"67a130531e302eb43e8bb489\", \"payload\": [32752], \"queueLengthByUnitId\": { \"unitId\": 1, \"queueLength\": 0 }, \"queueUnitId\": 1, \"unitId\": 1, \"modbusRequest\": { \"value\": 1738616915219, \"unitid\": \"1\", \"fc\": 3, \"address\": \"1109\", \"quantity\": \"1\", \"messageId\": \"67a130531e302eb43e8bb489\" }, \"responseBuffer\": { \"data\": [32752], \"buffer\": [127, 240] }, \"_msgid\": \"82c3756a384214f2\" }",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 320,
"y": 1420,
"wires": [
[
"5b592e561f6a0087",
"89ee906547774cec",
"7851ffe3ec7f3edf"
]
]
},
{
"id": "2cef89322d0395b9",
"type": "inject",
"z": "210d4bb2856c7935",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 150,
"y": 1420,
"wires": [
[
"3e08f6b03c95841b"
]
]
},
{
"id": "50008624a981021c",
"type": "debug",
"z": "210d4bb2856c7935",
"name": "debug 49",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 660,
"y": 1380,
"wires": []
},
{
"id": "89ee906547774cec",
"type": "buffer-parser",
"z": "210d4bb2856c7935",
"name": "",
"data": "payload",
"dataType": "msg",
"specification": "spec",
"specificationType": "ui",
"items": [
{
"type": "int16be",
"name": "item1",
"offset": 0,
"length": 1,
"offsetbit": 0,
"scale": "1",
"mask": ""
}
],
"swap1": "",
"swap2": "",
"swap3": "",
"swap1Type": "swap",
"swap2Type": "swap",
"swap3Type": "swap",
"msgProperty": "payload",
"msgPropertyType": "str",
"resultType": "value",
"resultTypeType": "return",
"multipleResult": false,
"fanOutMultipleResult": false,
"setTopic": true,
"outputs": 1,
"x": 490,
"y": 1420,
"wires": [
[
"c4782b6323c9f752"
]
]
},
{
"id": "c4782b6323c9f752",
"type": "debug",
"z": "210d4bb2856c7935",
"name": "debug 51",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 660,
"y": 1420,
"wires": []
},
{
"id": "b43e7fc1cf70f330",
"type": "buffer-parser",
"z": "210d4bb2856c7935",
"name": "",
"data": "payload",
"dataType": "msg",
"specification": "spec",
"specificationType": "ui",
"items": [
{
"type": "int16be",
"name": "item1",
"offset": 0,
"length": 1,
"offsetbit": 0,
"scale": "1",
"mask": ""
}
],
"swap1": "swap16",
"swap2": "",
"swap3": "",
"swap1Type": "swap",
"swap2Type": "swap",
"swap3Type": "swap",
"msgProperty": "payload",
"msgPropertyType": "str",
"resultType": "value",
"resultTypeType": "return",
"multipleResult": false,
"fanOutMultipleResult": false,
"setTopic": true,
"outputs": 1,
"x": 490,
"y": 1460,
"wires": [
[]
]
},
{
"id": "7851ffe3ec7f3edf",
"type": "buffer-parser",
"z": "210d4bb2856c7935",
"name": "",
"data": "payload",
"dataType": "msg",
"specification": "spec",
"specificationType": "ui",
"items": [
{
"type": "int16le",
"name": "item1",
"offset": 0,
"length": 1,
"offsetbit": 0,
"scale": "1",
"mask": ""
}
],
"swap1": "",
"swap2": "",
"swap3": "",
"swap1Type": "swap",
"swap2Type": "swap",
"swap3Type": "swap",
"msgProperty": "payload",
"msgPropertyType": "str",
"resultType": "value",
"resultTypeType": "return",
"multipleResult": false,
"fanOutMultipleResult": false,
"setTopic": true,
"outputs": 1,
"x": 490,
"y": 1460,
"wires": [
[
"40a8ab858fefba6e"
]
]
},
{
"id": "40a8ab858fefba6e",
"type": "debug",
"z": "210d4bb2856c7935",
"name": "debug 52",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 660,
"y": 1460,
"wires": []
}
]