I have a question regarding buffers

I have a question regarding buffers.
The buffer appears as shown in the current image.
The problem arises when the buffer is only one digit.

For example, it comes out in the form of 0x7, but in the case of , it should come out in the form of 0x07.

As you can see in the picture, 0x42 0x7 should be combined to come out in the form of 0x4207, but in NordRed, if you combine the buffers, it comes out in the form of 0x427.

To summarize again:

  1. Appears in the form of a 0x42 0x7 buffer
  2. Combining the two buffers should result in 0x4207.
  3. However, in NodeRed, when combining buffers, it comes out in the form of 0x427.

Is it possible to convert a single-digit buffer to a two-digit format?
11

How did you do the combine?

Ps: are you creating a new contrib node? Or just using node-red? (This forum category is for creating new nodes - just checking)

Ah, it's solved. Adding ('hex') solved the problem.

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