Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set multiple values at once... #2

Closed
VoltVisionFrenchy opened this issue Jun 11, 2018 · 1 comment
Closed

Set multiple values at once... #2

VoltVisionFrenchy opened this issue Jun 11, 2018 · 1 comment

Comments

@VoltVisionFrenchy
Copy link

Hello!
I am trying your sACN library with Node-Red and I have it working by doing the "set single value", but I was wondering what is the most graceful way to use an array to update all 512 values of a universe at the same time? Would it be possible to load in a JSON array representing the entire universe or some other method? Thanks! -VoltVisionFrenchy

@atlewee
Copy link
Owner

atlewee commented Jun 25, 2018

I did a quick implementation of array support in v0.0.6
It just overrides the whole universe with supplied json array of values directly.
Set universe on config node, and just pass it an array in the payload. e.g: [ 128, 0, 128 ] writes the first 3 values of that universe. You can add up to 512 values to the array.

@atlewee atlewee closed this as completed Jun 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants