Hi. I'm reading serial data and its a bunch of hex encoded numbers. For example I might get 30,44,30,33 which is 0x0D03 or 3,331. Seems like a simple matter for buffer parser but I cannot get it to work.
My simple example below gives me a confusing error message: ""RangeError: The value of "offset" is out of range. It must be >= 0 and <= 0. Received 4" How could it be greater and less than zero?
Here is my flow, seems pretty simple but it's got me confused.
[{"id":"257ad45cdf54c5f2","type":"tab","label":"Flow 2","disabled":false,"info":"","env":[]},{"id":"c6494528af2baa59","type":"inject","z":"257ad45cdf54c5f2","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"[48,68,48,51]","payloadType":"bin","x":170,"y":120,"wires":[["f908186aec31e041"]]},{"id":"f908186aec31e041","type":"buffer-parser","z":"257ad45cdf54c5f2","name":"","data":"payload","dataType":"msg","specification":"spec","specificationType":"ui","items":[{"type":"int32le","name":"Cell1","offset":0,"length":4,"offsetbit":0,"scale":"1","mask":""}],"swap1":"","swap2":"","swap3":"","swap1Type":"swap","swap2Type":"swap","swap3Type":"swap","msgProperty":"payload","msgPropertyType":"str","resultType":"keyvalue","resultTypeType":"output","multipleResult":false,"fanOutMultipleResult":false,"setTopic":true,"outputs":1,"x":410,"y":120,"wires":[["371baf5d5bde9dfb"]]},{"id":"371baf5d5bde9dfb","type":"debug","z":"257ad45cdf54c5f2","name":"","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":610,"y":120,"wires":[]}]