…requests for data. Functions in question are: setPreferredValue and useSensorData.
Also added a function to control windowState.
Pull Request (PR) Template
Description
A combination of functions to limit the amout of requests made to backend.
Changes to wrappers to use the new functions instead of the old one.
Added CO2 to the request-body, as it should already be sent with the data currently being transferred.
setPreferredValue now send the values of the following:
preferredTemperature
preferredHumidity
The function is set to also take preferredCO2 even if we cannot actively control it.
Added a function to control windowState
it works by sending either open or close to backend on the endboint /SetWindowState.
Type of Change
[x] New feature (non-breaking change which adds functionality)
[x] Bug fix (non-breaking change which fixes an issue)
[x] Documentation Update
[ ] Other (please describe)
Checklist
Before submitting your PR, please ensure the following:
[x] I have performed a self-review of my own code.
[x] I have commented my code, particularly in hard-to-understand areas.
[x] I have made corresponding changes to the documentation (if appropriate).
[x] My changes generate no new warnings.
[ ] I have added tests that prove my fix is effective or that my feature works.
[ ] All new and existing tests passes.
Screenshots (if appropriate)
Additional Notes
Include any additional information that you believe is important for the reviewers to know.
…requests for data. Functions in question are: setPreferredValue and useSensorData.
Also added a function to control windowState.
Pull Request (PR) Template
Description
A combination of functions to limit the amout of requests made to backend. Changes to wrappers to use the new functions instead of the old one. Added CO2 to the request-body, as it should already be sent with the data currently being transferred.
setPreferredValue now send the values of the following: preferredTemperature preferredHumidity The function is set to also take preferredCO2 even if we cannot actively control it.
Added a function to control windowState it works by sending either open or close to backend on the endboint /SetWindowState.
Type of Change
Checklist
Before submitting your PR, please ensure the following:
Screenshots (if appropriate)
Additional Notes
Include any additional information that you believe is important for the reviewers to know.