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

Help with multiple RCSwtich.h devices? #64

Open
stickboy135 opened this issue Dec 25, 2018 · 0 comments
Open

Help with multiple RCSwtich.h devices? #64

stickboy135 opened this issue Dec 25, 2018 · 0 comments

Comments

@stickboy135
Copy link

Hi - I'm new to this, so please bear with me. I have two RC devices (Christmas tree and fireplace). I'd like to use one ESP8266 board (and 303MHz transmitter) to control both, and this sketch seems like it would work. Note - I previously used the earlier single switch version of your code (which is a lot more complex, and I was having some discovery issues i'm working through). I am able to properly control both devices using a simple webserver sketch however.

Here is my question - I think there are some fundamental differences between rcswitch.h and switch.h. Can you give me a few pointers on how to use the rcswitch library instead of switch.h? For example, I dont think the server loop function works, and the creation of the rcswitch object in fundamentally different. How do I intercept a request, determine which device is being requested, and then execute the proper on/off function? In your single switch version, binarystate tells me on/off, but i wasn't sure how to modify that to control two devices, which is why this version looks more attractive, but not sure how to use rcswitch instead of switch.h. Any pointers?

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