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

Change the transport protocol. #57

Open
AHTOXA84 opened this issue May 14, 2016 · 6 comments
Open

Change the transport protocol. #57

AHTOXA84 opened this issue May 14, 2016 · 6 comments

Comments

@AHTOXA84
Copy link

Hello. You can change the transfer protocol. How to do it? Thank you.

@rotv
Copy link
Contributor

rotv commented May 14, 2016

In code, use one of:
void setProtocol(Protocol protocol);
void setProtocol(int nProtocol);
void setProtocol(int nProtocol, int nPulseLength);

Is that what you're asking for?

@AHTOXA84
Copy link
Author

My protocol:
pulselength = 320;
Sync bit = 36 low pulses and 1 high pulses;
"0" bit = 1 low pulse and 2 high pulses;
"1" bit = 2 low pulses and 1 high pulse;
key = 24 bit

@AHTOXA84
Copy link
Author

Prompt me how to change the protocol for this. Thank you.

@fingolfin
Copy link
Collaborator

You can define your own instance of the Protocol struct with the parameters you just described, and then use the first of the three setProtocol methods mentioned by @rotv

@AHTOXA84
Copy link
Author

I need to change the cpp file?

@fingolfin
Copy link
Collaborator

Wait, in your protocol, the low pulses are first, the high pulses second?

Then you need something like #49, I am afraid, as RCSwitch does not yet support this out of the box.

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

3 participants