You can likely use node-red-contrib-buffer-parser.
Example:
However, since you have not stated the format of the data nor have you provided equivelent values for the data
array you provided, it is pure guess work on my behalf - I have no idea if the values I have produced are what you expect.
Demo flow (import using CTRL-I
)
[{"id":"7bb716b730bd660b","type":"inject","z":"edf82570772f4a51","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":1245,"y":120,"wires":[["cd719cc34eff5df7"]],"l":false},{"id":"cd719cc34eff5df7","type":"function","z":"edf82570772f4a51","name":"Your data: canid=1535, dlc=8","func":"msg.payload = {\n timestamp: 1679811479673,\n ext: false,\n canid: 1535,\n dlc: 8,\n rtr: false,\n data: [67,3,32,2,231,5,0,0]\n}\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1400,"y":120,"wires":[["3ff798b9fc5e960e"]]},{"id":"ac1073394cf6edca","type":"function","z":"edf82570772f4a51","name":"Your data: canid=1663, dlc=4","func":"msg.payload = {\n timestamp: 1679811479672,\n ext: false,\n canid: 1663,\n dlc: 4,\n rtr: false,\n data: [64,3,32,2]\n}\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1400,"y":160,"wires":[["3ff798b9fc5e960e"]]},{"id":"6fd213678ebf8e1d","type":"inject","z":"edf82570772f4a51","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":1245,"y":160,"wires":[["ac1073394cf6edca"]],"l":false},{"id":"3ff798b9fc5e960e","type":"buffer-maker","z":"edf82570772f4a51","name":"Array of bytes, to buffer","specification":"spec","specificationType":"ui","items":[{"name":"item1","type":"byte","length":-1,"dataType":"msg","data":"payload.data"}],"swap1":"","swap2":"","swap3":"","swap1Type":"swap","swap2Type":"swap","swap3Type":"swap","msgProperty":"payload.buffer","msgPropertyType":"str","x":1690,"y":140,"wires":[["3a6a26f0a95aac7f"]]},{"id":"3a6a26f0a95aac7f","type":"buffer-parser","z":"edf82570772f4a51","name":"Buffer to 32bit Decimals","data":"payload.buffer","dataType":"msg","specification":"spec","specificationType":"ui","items":[{"type":"int32be","name":"values","offset":0,"length":-1,"offsetbit":0,"scale":"1","mask":""}],"swap1":"","swap2":"","swap3":"","swap1Type":"swap","swap2Type":"swap","swap3Type":"swap","msgProperty":"payload","msgPropertyType":"str","resultType":"keyvalue","resultTypeType":"return","multipleResult":false,"fanOutMultipleResult":false,"setTopic":true,"outputs":1,"x":1420,"y":220,"wires":[["66076f2c2c417fbd"]]},{"id":"66076f2c2c417fbd","type":"debug","z":"edf82570772f4a51","name":"debug 167","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1660,"y":220,"wires":[]}]