Comments (8)
In the ArtPoll packet definition (http://www.artisticlicence.com/WebSiteMaster/User%20Guides/art-net.pdf) the ID is an
Array of 8 characters, the final character is a
null termination.
Value = ‘A’ ‘r’ ‘t’ ‘-‘ ‘N’ ‘e’ ‘t’ 0x00
So you are right
from artnet.
the loop is from index zero to kess the 9: 0...8
Index 8 is undefined:
‘A’ [0]
‘r’ [1]
‘t’ [2]
‘-‘ [3]
‘N’ [4]
‘e’ [5]
‘t’ [6]
0x00 [7]
??? [8]
from artnet.
Then make a pull request please, but for me it was never a problem.
from artnet.
Your code:
// Check that packetID is "Art-Net" else ignore for (byte i = 0 ; i < 9 ; i++) { if (artnetPacket[i] != ART_NET_ID[i]) return 0; }
should be IMHO:
// Check that packetID is "Art-Net" else ignore for (byte i = 0 ; i < 8 ; i++) { if (artnetPacket[i] != ART_NET_ID[i]) return 0; }
from artnet.
Why should I make a pull request? Just change the 9 into a 8...
I'm not using this library but someone complained that it does not work with Rocrail:
http://forum.rocrail.net/viewtopic.php?f=117&t=12727
Index 8 is the first byte of the opcode as you also wrote in your source:
opcode = artnetPacket[8] | artnetPacket[9] << 8;
from artnet.
Actually i am not the owner of this repository so i am not able to change it
from artnet.
Attach is a patch.
from artnet.
Thanks.
Fixed by commit 5cc30a4
from artnet.
Related Issues (20)
- Is Arduino mini 3.3v @ 8MHz supported? HOT 3
- Shouldn't this iterate from 0 to i < 8? Instead of 9? HOT 7
- ArtNet to Neopixel freezing HOT 15
- Neopixel showing random colors when ArtPoll is receiving HOT 20
- Change ArtPoll Reply
- How many Universe ? HOT 43
- Doesn't work Broadcast HOT 25
- Artnet neopixel sd HOT 4
- Running on esp32 but with Ethernet
- Neopixel not working! HOT 1
- on esp8266 mac address is not included in ArtPollReply HOT 6
- EthernetUDP has no member HOT 6
- Add missing libraries.properties
- Breaks with Teensy 4.1 Native Ethernet HOT 3
- Has no member named 'setBrodcast' HOT 8
- Opcode unknow
- Need Help! Artnet to ws2812 via Adafruit Neopixel doesn't work
- ArtPollReply failing with DMX-Workshop HOT 1
- Some buffering issue freeze arduino mega
- WS2812B Neopixel example only works with 155Leds
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from artnet.