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

Send Artnet to many host #59

Open
Remix4449 opened this issue Apr 20, 2024 · 2 comments
Open

Send Artnet to many host #59

Remix4449 opened this issue Apr 20, 2024 · 2 comments

Comments

@Remix4449
Copy link

Remix4449 commented Apr 20, 2024

Hi!

I currently have several esps connected to each other by an esp in AP mode. I have an esp which transmits an artnet frame in broadcast. the problem is that the information is sent jerkily.

when I pass with a diffusion directed to a single esp it works

I would like to send an artnet frame to several hosts with different IP addresses, is this possible?

Thanks you for your help :)

@rstephan
Copy link
Owner

Hi,

you can try something like this:

String hosts[3] = {"192.168.0.1", "192.168.0.2", "192.168.0.7"};
...
void loop()
{
  for (i = 0; i < 3; i++) {
    artnet.begin(hosts[i]);
    ...
    artnet.setByte(1, 2); // or what ever color you like
    ...
    artnet.write();
    artnet.stop();
  }
}

@Remix4449
Copy link
Author

Good morning,

Thank you for your reply :)

I tried your solution, it works but unfortunately not for my project, we use switches and the program does all the universes one after the other by cutting the DMX frame at each receiver :(

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