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

Rotate from UI #28

Merged
merged 3 commits into from
Nov 5, 2021
Merged

Rotate from UI #28

merged 3 commits into from
Nov 5, 2021

Conversation

BinaryBrain
Copy link
Collaborator

No description provided.

server/lamp/index.ts Outdated Show resolved Hide resolved
Comment on lines +61 to +63
xhr.open("POST", "/lamp/set-top-led", true);
xhr.setRequestHeader('Content-Type', 'application/json');
xhr.send(JSON.stringify({ topLedNb }));
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Une raison pour laquelle on fait (encore) du XHR plutôt que fetch ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aucune.

Co-authored-by: Kewin Dousse <me@protectator.ch>
@BinaryBrain BinaryBrain merged commit 72e1b0e into master Nov 5, 2021
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

Successfully merging this pull request may close these issues.

2 participants