# How write multi data with i2c

**URL:** <https://discourse.nodered.org/t/how-write-multi-data-with-i2c/73970>\
**Category:** General\
**Created:** [20 January 2023 14:12 UTC](https://discourse.nodered.org/t/how-write-multi-data-with-i2c/73970 "2023-01-20T14:12:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![namexx](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/namexx/32/72976_2.png) [@namexx](https://discourse.nodered.org/u/namexx)\
**Post date:** [20 January 2023 14:12 UTC](https://discourse.nodered.org/t/how-write-multi-data-with-i2c/73970/1 "2023-01-20T14:12:15Z")

</div>

Hi guys! I’m using this node “node-red-contrib-i2c“

But I need write multiples bytes and this node only allow write 1 byte.

The message what need send is the next:

I Start|Address Write| data byte 0| data byte 1|… |stop|

How can do this?

Thanks!

---

<div class="post-metadata">

**Author:** ![ghayne](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ghayne/32/39_2.png) [@ghayne](https://discourse.nodered.org/u/ghayne)\
**Post date:** [20 January 2023 15:04 UTC](https://discourse.nodered.org/t/how-write-multi-data-with-i2c/73970/2 "2023-01-20T15:04:51Z")

</div>

The node documentation says:

```auto
This node will send a given String/array/buffer to a given device.

```

Try sending an array.

---

<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:** [21 March 2023 15:05 UTC](https://discourse.nodered.org/t/how-write-multi-data-with-i2c/73970/3 "2023-03-21T15:05:50Z")

</div>

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