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

Can it support sending 5 bytes of data #506

Open
90726228 opened this issue Apr 2, 2024 · 1 comment
Open

Can it support sending 5 bytes of data #506

90726228 opened this issue Apr 2, 2024 · 1 comment

Comments

@90726228
Copy link

90726228 commented Apr 2, 2024

I want to use this plugin to send 5 bytes of data, but in actual testing, it was found that only 4 bytes can be sent. What should I do?

@SorSayyadi
Copy link

Hey there,
If you’re encountering issues sending 5 bytes of data and only 4 bytes are being transmitted, it’s likely due to limitations in the default protocol settings. Here’s what you can do:

Check the Protocol: Some protocols have fixed packet lengths or restrictions on the number of bytes that can be sent. You may need to define a custom protocol that supports longer data packets.

Modify the Library: If you’re using my modified version of the RC-Switch library, you can extend the packet length by adjusting the protocol settings in the code. Refer to the wiki for guidance on how to modify protocols.

Split the Data: If modifying the protocol isn’t an option, consider splitting your 5 bytes of data into two transmissions (e.g., 3 bytes + 2 bytes) and reassembling them on the receiving end.

Let me know if you need further help or code examples to implement this!

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