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

Documentation and code mismatch #50

Open
drzony opened this issue Jun 18, 2020 · 0 comments
Open

Documentation and code mismatch #50

drzony opened this issue Jun 18, 2020 · 0 comments

Comments

@drzony
Copy link

drzony commented Jun 18, 2020

I'm incorporating a OPC server into my smart light project. I want to do my own implementation based on spec, but it seems that there is a mismatch.

On http://openpixelcontrol.org/ the spec says:

System exclusive (command 255): Command 0xff is used to send a message that is specific to a particular device or software system. The data block should begin with a two-byte system ID; designers of that system are then free to define any message format for the rest of the data block.

In opc.h we have:

#define OPC_STREAM_SYNC 0xff

#define OPC_STREAM_SYNC_LENGTH 4
#define OPC_STREAM_SYNC_DATA ((u8*) "\xf0\xca\x71\x2e")

How should I handle the Stream Sync command? From the code it seems it's only a kind of keep-alive (data is never read)

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

1 participant