# Linux vs. Windows injecting buffer values

**URL:** https://discourse.nodered.org/t/linux-vs-windows-injecting-buffer-values/46352
**Category:** General
**Created:** [27 May 2021 15:44 UTC](https://discourse.nodered.org/t/linux-vs-windows-injecting-buffer-values/46352 "2021-05-27T15:44:19Z")
**Posts on this page:** 5
**Page:** 2

<div class="post-metadata">

### Author: ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)
#### Post date: [29 May 2021 17:01 UTC](https://discourse.nodered.org/t/linux-vs-windows-injecting-buffer-values/46352/21 "2021-05-29T17:01:30Z")

</div>

Take a clone of the repository, update the text and submit a pull request. That gets reviewed, updates if needed then hopefully accepted and it will be in the next release.

Bit complex the first time if you've not done one but GitHub have great documentation.

---

<div class="post-metadata">

### Author: ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)
#### Post date: [29 May 2021 17:06 UTC](https://discourse.nodered.org/t/linux-vs-windows-injecting-buffer-values/46352/22 "2021-05-29T17:06:14Z")

</div>

the source (for english) is here - [node-red/20-inject.html at master · node-red/node-red · GitHub](https://github.com/node-red/node-red/blob/master/packages/node_modules/%40node-red/nodes/locales/en-US/common/20-inject.html)

---

<div class="post-metadata">

### Author: ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)
#### Post date: [29 May 2021 17:20 UTC](https://discourse.nodered.org/t/linux-vs-windows-injecting-buffer-values/46352/23 "2021-05-29T17:20:22Z")

</div>

Just to add context, `0x10` is absolutely valid as a JavaScript number without the quotes.

The fact is however, the buffer TypedInput requires a JSON array of numbers. JSON does not support `0x10` style encoding of numbers. To use that syntax they have to be provided as strings - hence the need for quotes in the TypedInput

---

<div class="post-metadata">

### Author: ![tree-frog](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/tree-frog/32/89303_2.png) [@tree-frog](https://discourse.nodered.org/u/tree-frog)
#### Post date: [29 May 2021 20:23 UTC](https://discourse.nodered.org/t/linux-vs-windows-injecting-buffer-values/46352/24 "2021-05-29T20:23:21Z")

</div>

@knolleary ,  
I had no idea that my frustration with Inject node syntax would bring out the "big guns".

> [@knolleary](#):
>
> Just to add context, `0x10` is absolutely valid as a JavaScript number without the quotes.
> 
> The fact is however, the buffer TypedInput requires a JSON array of numbers. JSON does not support `0x10` style encoding of numbers. To use that syntax they have to be provided as strings - hence the need for quotes in the TypedInput

For me, it is a matter of understanding what the nodes will take and what they won't. When you're in the middle of working on a non-user-friendly printer and trying to send it a simple command, I wanted to send it a basic command easily to test it. Not so simple...

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [12 June 2021 20:23 UTC](https://discourse.nodered.org/t/linux-vs-windows-injecting-buffer-values/46352/25 "2021-06-12T20:23:47Z")

</div>

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

[Previous page](https://discourse.nodered.org/t/linux-vs-windows-injecting-buffer-values/46352.md?page=1)
