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

REST API returned value #548

Closed
pcornill opened this issue Feb 10, 2018 · 2 comments
Closed

REST API returned value #548

pcornill opened this issue Feb 10, 2018 · 2 comments
Assignees
Milestone

Comments

@pcornill
Copy link

Hi Xose,
I'm wondering if there is a reason why Espurna returns '0' when the request is value=1 and returns '1' when the request is value=0
It looks like it returns the value of the previous state not the updated one.

@xoseperez
Copy link
Owner

Indeed, it was returning the state of the relay just after enqueuing the relay change but before actually toggling it. I have just committed a fix for this in the dev branch.

@xoseperez
Copy link
Owner

This is staged for release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants