How the Dec to hex? And the node can show warn or errer information?

What do you want to see in your array for the input 4990?

Dear Colin :

Yeah, sorry All.

Hex is ["1388","13","88"]
Dec is [5000, 19, 136]

I hope is 5000=[50, 00] in array.
its one 16bits to two 8bits...
So what kind of suggest is better?

Thank u.

Just for info
msg.payload = Number("0x"+"138a");

if you add "0x" to the hex string it can be converted back to a number

Dear E1cid :

ok,

Thank u.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.