That shows the buffer you are interested in is under msg.payload.
So the elements you mention can be referenced as msg.payload[12] and msg.payload[13] for example.
Nick
--
http://nodered.org
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/28ee1481-25e0-4227-96de-bbc2e5ba93cd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Functions must return message objects not raw values. Typically you'd update msg.payload with the value you want and return the message:
var MSB = msg.payload[12] ;
var LSB = msg.payload[13] ;
var Vtg = MSB*256+LSB;
msg.payload = Vtg;
return msg
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/7020741a-1019-4e95-b7b2-b1e8258a35f8%40googlegroups.com.