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

Fauxmoesp preprocessor flag naming conflict #20

Closed
xoseperez opened this issue Dec 29, 2016 · 4 comments
Closed

Fauxmoesp preprocessor flag naming conflict #20

xoseperez opened this issue Dec 29, 2016 · 4 comments
Labels
alexa enhancement New feature or request minor

Comments

@xoseperez
Copy link
Owner

Originally reported by: Neg kel (Bitbucket: Negativekelvin0, GitHub: Unknown)


Should be ENABLE_FAUXMO

https://bitbucket.org/xoseperez/espurna/src/b4e04f24be64bcf37fb2cbec7c3afd8bfeda8237/code/src/config/general.h?at=master&fileviewer=file-view-default#general.h-102

Also instructions at bottom of this page: http://tinkerman.cat/emulate-wemo-device-esp8266/

Must have confused it with the internal property name: https://bitbucket.org/xoseperez/espurna/src/b4e04f24be64bcf37fb2cbec7c3afd8bfeda8237/code/src/fauxmo.ino?at=master&fileviewer=file-view-default#fauxmo.ino-21

@xoseperez
Copy link
Owner Author

ENABLE_FAUXMO and FAUXMO_ENABLED are different things. The first on is a compile flag that indicates weather the firmware has to include fauxmo support or not. The second is a default value for the setting that indicates if the device should respond to Alexa requests. So you can have support on the firmware but have it disabled cause you actually don't need it in a certain device.
The code is OK but the you are right that the post is wrong. I'm changing it.
I understand the confusion since the names are so similar. I'm going to change the second one to something more understandable, maybe FAUXMO_DISCOVERABLE?

@xoseperez
Copy link
Owner Author

Original comment by Neg kel (Bitbucket: Negativekelvin0, GitHub: Unknown):


Oh OK i see you're right the only problem was the blog post and lack of documentation on build flag options. Not sure about the naming but maybe it would be good to prefix them with SETTINGS_ and/or DEFAULT. Thanks.

@xoseperez
Copy link
Owner Author

You are so right. There is a lack of documentation and I'm working on it.

@xoseperez
Copy link
Owner Author

Inline documentation improved in version 1.5.0

xoseperez pushed a commit that referenced this issue Jan 24, 2018
Each relay has its own pulse ticker.

Approved-by: Xose Pérez <xose.perez@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
alexa enhancement New feature or request minor
Projects
None yet
Development

No branches or pull requests

1 participant