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

merging unreality and kayno forks #2

Merged
merged 8 commits into from
Feb 11, 2017
Merged

merging unreality and kayno forks #2

merged 8 commits into from
Feb 11, 2017

Conversation

kayno
Copy link
Contributor

@kayno kayno commented Feb 11, 2017

Hi SwiCago

I have merged your commits that I missed (because I forked from unreality) into my fork, and blended my changes as well as some of unreality's changes into your code. This pull request shows the result of that!

From my fork:

  • changed current/wantedSettings from String array to struct,
  • started magic number clean up,
  • synced wantedSettings with currentSettings on connect(),
  • renamed 'direction/DIR' to 'wideVane' for the horizontal vane (matching terminology used in manual as well as on the remote)
  • re-worked the naming of the MAP lookup functions so that a) you call the same function name regardless of string vs int (overloaded parameters) and b) tried to make the names more descriptive
  • changed settings from String array to heatpumpSettings struct
  • changed hp.getSettings() to get settings back rather than pass them in
  • added example using the library with ESP8266 and MQTT

From unreality's fork:

  • kept the code that checks if the call to update() was successfully processed by the heatpump

I have tested this successfully on my heatpump, with the MQTT example, and it's working well - I haven't had any issues with it. I still have some more plans/ideas, but I want to at least get this merge done first to clean up how I forked from unreality and missed your commits.

Happy to discuss everything and anything before any merging happens.

Cheers :)
kayno

unreality and others added 8 commits January 14, 2017 22:33
- started magic number clean up,
- synced wantedSettings with currentSettings on connect(),
- renamed 'direction/DIR' to 'wideVane' for the horizontal vane (matching terminology used in manual/on the remote)
- re-worked the naming of the MAP lookup functions so that a) you call the same function name regardless of string vs int (overloaded parameters) and b) tried to make the names more descriptive
- fixed typo in hp.checkForUpdate() call
- changed hp.getSettings() to get settings back rather than pass them in
- updated settings options to match options in code
@SwiCago
Copy link
Owner

SwiCago commented Feb 11, 2017

Reviewed ...Looks good and from what I see, we were not far apart. I initially wanted to use structs, but didn't understand yet how to construct them LOL. As said in a chat, this is my first C library in about 20yrs, so fresh eyes on it is a great benefit. Merging

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.

None yet

3 participants