Skip to content

Extracting property container functionality #132

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

Merged
merged 7 commits into from
Jun 4, 2020

Conversation

aentinger
Copy link
Contributor

So far the "container" functionality for holding all the properties has been exercised by the class ArduinoCloudThing which leads to this class doing business logic, cbor encoding/decoding and container services. In order to clean up the interfaces and make the code more understandable and extendable it is desirable to have only one purpose per class (SRP).

@aentinger aentinger added the type: enhancement Proposed improvement label Jun 4, 2020
@aentinger aentinger self-assigned this Jun 4, 2020
@codecov-commenter
Copy link

codecov-commenter commented Jun 4, 2020

Codecov Report

Merging #132 into master will increase coverage by 0.00%.
The diff coverage is 97.11%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #132   +/-   ##
=======================================
  Coverage   97.23%   97.23%           
=======================================
  Files          28       30    +2     
  Lines         975      976    +1     
=======================================
+ Hits          948      949    +1     
  Misses         27       27           
Impacted Files Coverage Δ
src/cbor/ArduinoCloudThing.h 100.00% <ø> (ø)
src/property/types/CloudWrapperBool.h 100.00% <ø> (ø)
src/property/types/CloudWrapperString.h 100.00% <ø> (ø)
src/property/types/automation/CloudColoredLight.h 100.00% <ø> (ø)
src/property/types/automation/CloudContactSensor.h 100.00% <ø> (ø)
src/property/types/automation/CloudLight.h 100.00% <ø> (ø)
src/property/types/automation/CloudMotionSensor.h 100.00% <ø> (ø)
src/property/types/automation/CloudSmartPlug.h 100.00% <ø> (ø)
src/property/types/automation/CloudSwitch.h 100.00% <ø> (ø)
src/property/types/automation/CloudTemperature.h 100.00% <ø> (ø)
... and 18 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 03bc13e...221683c. Read the comment docs.

@github-actions
Copy link

github-actions bot commented Jun 4, 2020

Memory usage change @08cde49432f85da7f51fc4b42958be52fba79076

FQBN Flash Usage RAM For Global Variables
arduino:samd:mkr1000 🔺 +24 0
arduino:samd:mkrgsm1400 🔺 +24 0
arduino:samd:mkrnb1500 🔺 +24 0
arduino:samd:mkrwan1300 🔺 +24 🔺 +4
arduino:samd:mkrwifi1010 🔺 +24 0
arduino:samd:nano_33_iot 🔺 +16 0
esp8266:esp8266:huzzah 🔺 +32 0

@aentinger
Copy link
Contributor Author

Successfully tested on PROD with

  • MKR 1000 ✔️
  • MKR WiFi 1010 ✔️
  • ESP8266 ✔️

@aentinger aentinger merged commit 188c39a into master Jun 4, 2020
@aentinger aentinger deleted the extract-property-container branch June 4, 2020 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement Proposed improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants