Closed Joebayld closed 6 years ago
The setBroadcast() call seems reasonable.
Is the event handler for 'listening' actually required or could we just do setBroadcast directly below the self.dev = dgram.createSocket('udp4')
line?
I tried adding it below and it didn’t work. Upon research, I found this solution and it works.
Joe
On Jan 11, 2018, at 1:37 PM, Sebastian Wiedenroth notifications@github.com wrote:
The setBroadcast() call seems reasonable. Is the event handler for 'listening' actually required or could we just do setBroadcast directly below the self.dev = dgram.createSocket('udp4') line?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.
ok great, thanks for confirming that. Do you want to create a pull request?
I found a more elegant way to solve this by including the broadcast enable in a bind closure. Tested and working.
merged, thanks!
I need to enable broadcast on the artnet driver. I added this code to make it work.
Should we add it to the master? Or maybe have an option to enable broadcast?