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

Server enhancements, API additions #226

Merged
merged 4 commits into from
Sep 21, 2019
Merged

Conversation

kueblc
Copy link
Collaborator

@kueblc kueblc commented Jul 3, 2019

This PR includes a minor refactor to ease the addition of API endpoints. I've added a few of the missing endpoints which should enable more devices to be flashed OTA, ie those who previously had issues with s.gw.dev.timer.count calls. #7 #166 #174 #177 #201 #220

kueblc added 4 commits July 2, 2019 14:43
Adds timestamp, serializes response, and applies appropriate headers
Fetch gwId and a from query parameters instead of manual uri parsing
Represent API responses as dict objects for clarity and flexibility
Compute upgrade.bin md5 and file size only once when the server is started
tuya.device.upgrade.get and tuya.device.upgrade.silent.get should allow upgrades on devices where s.gw.upgrade is not called
…ault, use get_argument() instead of request.arguments[], json to str lambda to ease schema encoding, true => True in python
@kueblc kueblc mentioned this pull request Sep 19, 2019
@kueblc kueblc merged commit 95632b1 into ct-Open-Source:master Sep 21, 2019
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.

1 participant