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

Avoid library to call deprecated functions itself #406

Merged
merged 1 commit into from
Feb 19, 2024

Conversation

pennam
Copy link
Collaborator

@pennam pennam commented Jan 12, 2024

Fixes #402

warning can still be triggered from thingProperties.h file if deprecated functions are called.

Copy link

codecov bot commented Jan 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (d436b80) 95.00% compared to head (eb39dbe) 95.00%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #406   +/-   ##
=======================================
  Coverage   95.00%   95.00%           
=======================================
  Files          27       27           
  Lines        1221     1221           
=======================================
  Hits         1160     1160           
  Misses         61       61           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@per1234 per1234 added type: imperfection Perceived defect in any part of project topic: code Related to content of the project itself labels Jan 13, 2024
Copy link

Memory usage change @ eb39dbe

Board flash % RAM for global variables %
arduino:esp32:nano_nora ❔ -540 - +28 -0.02 - 0.0 0 - 0 0.0 - 0.0
arduino:mbed_edge:edge_control 💚 -256 - 0 -0.03 - 0.0 0 - 0 0.0 - 0.0
arduino:mbed_giga:giga 💚 -256 - 0 -0.01 - 0.0 0 - 0 0.0 - 0.0
arduino:mbed_nano:nanorp2040connect 💚 -244 - 0 -0.0 - 0.0 0 - 0 0.0 - 0.0
arduino:mbed_nicla:nicla_vision 💚 -320 - 0 -0.02 - 0.0 0 - 0 0.0 - 0.0
arduino:mbed_opta:opta 💚 -320 - 0 -0.02 - 0.0 0 - 0 0.0 - 0.0
arduino:mbed_portenta:envie_m7 N/A N/A N/A N/A
arduino:renesas_portenta:portenta_c33 💚 -296 - 0 -0.01 - 0.0 0 - 0 0.0 - 0.0
arduino:renesas_uno:unor4wifi 💚 -288 - 0 -0.11 - 0.0 0 - 0 0.0 - 0.0
arduino:samd:mkr1000 💚 -248 - 0 -0.09 - 0.0 0 - 0 0.0 - 0.0
arduino:samd:mkrgsm1400 💚 -240 - 0 -0.09 - 0.0 0 - 0 0.0 - 0.0
arduino:samd:mkrnb1500 💚 -240 - 0 -0.09 - 0.0 0 - 0 0.0 - 0.0
arduino:samd:mkrwan1300 🔺 0 - +64 0.0 - +0.02 0 - 0 0.0 - 0.0
arduino:samd:mkrwifi1010 💚 -240 - 0 -0.09 - 0.0 0 - 0 0.0 - 0.0
arduino:samd:nano_33_iot 💚 -240 - 0 -0.09 - 0.0 0 - 0 0.0 - 0.0
esp32:esp32:esp32 ❔ -524 - +28 -0.04 - 0.0 0 - 0 0.0 - 0.0
esp8266:esp8266:huzzah 💚 -352 - 0 -0.03 - 0.0 0 - 0 0.0 - 0.0
Click for full report table
Board examples/ArduinoIoTCloud-Advanced
flash
% examples/ArduinoIoTCloud-Advanced
RAM for global variables
% examples/ArduinoIoTCloud-Basic
flash
% examples/ArduinoIoTCloud-Basic
RAM for global variables
% examples/ArduinoIoTCloud-Callbacks
flash
% examples/ArduinoIoTCloud-Callbacks
RAM for global variables
% examples/ArduinoIoTCloud-Schedule
flash
% examples/ArduinoIoTCloud-Schedule
RAM for global variables
% examples/utility/ArduinoIoTCloud_Travis_CI
flash
% examples/utility/ArduinoIoTCloud_Travis_CI
RAM for global variables
% examples/ArduinoIoTCloud-DeferredOTA
flash
% examples/ArduinoIoTCloud-DeferredOTA
RAM for global variables
% examples/utility/Provisioning
flash
% examples/utility/Provisioning
RAM for global variables
% examples/utility/SelfProvisioning
flash
% examples/utility/SelfProvisioning
RAM for global variables
%
arduino:esp32:nano_nora -112 -0.0 0 0.0 28 0.0 0 0.0 28 0.0 0 0.0 -116 -0.0 0 0.0 -540 -0.02 0 0.0 28 0.0 0 0.0
arduino:mbed_edge:edge_control -64 -0.01 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 -64 -0.01 0 0.0 -256 -0.03 0 0.0
arduino:mbed_giga:giga -64 -0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 -64 -0.0 0 0.0 -256 -0.01 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0
arduino:mbed_nano:nanorp2040connect -64 -0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 -64 -0.0 0 0.0 -244 -0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0
arduino:mbed_nicla:nicla_vision -64 -0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 -64 -0.0 0 0.0 -320 -0.02 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0
arduino:mbed_opta:opta -128 -0.01 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 -64 -0.0 0 0.0 -320 -0.02 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0
arduino:mbed_portenta:envie_m7 N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A
arduino:renesas_portenta:portenta_c33 -72 -0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 -72 -0.0 0 0.0 -296 -0.01 0 0.0 0 0.0 0 0.0
arduino:renesas_uno:unor4wifi -80 -0.03 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 -80 -0.03 0 0.0 -288 -0.11 0 0.0
arduino:samd:mkr1000 -64 -0.02 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 -64 -0.02 0 0.0 -248 -0.09 0 0.0 0 0.0 0 0.0
arduino:samd:mkrgsm1400 -64 -0.02 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 -64 -0.02 0 0.0 -240 -0.09 0 0.0 0 0.0 0 0.0
arduino:samd:mkrnb1500 -64 -0.02 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 -64 -0.02 0 0.0 -240 -0.09 0 0.0 0 0.0 0 0.0
arduino:samd:mkrwan1300 64 0.02 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0
arduino:samd:mkrwifi1010 -64 -0.02 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 -64 -0.02 0 0.0 -240 -0.09 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0
arduino:samd:nano_33_iot -64 -0.02 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 -64 -0.02 0 0.0 -240 -0.09 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0
esp32:esp32:esp32 -116 -0.01 0 0.0 28 0.0 0 0.0 28 0.0 0 0.0 -112 -0.01 0 0.0 -524 -0.04 0 0.0 28 0.0 0 0.0
esp8266:esp8266:huzzah -96 -0.01 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 -96 -0.01 0 0.0 -352 -0.03 0 0.0
Click for full report CSV
Board,examples/ArduinoIoTCloud-Advanced<br>flash,%,examples/ArduinoIoTCloud-Advanced<br>RAM for global variables,%,examples/ArduinoIoTCloud-Basic<br>flash,%,examples/ArduinoIoTCloud-Basic<br>RAM for global variables,%,examples/ArduinoIoTCloud-Callbacks<br>flash,%,examples/ArduinoIoTCloud-Callbacks<br>RAM for global variables,%,examples/ArduinoIoTCloud-Schedule<br>flash,%,examples/ArduinoIoTCloud-Schedule<br>RAM for global variables,%,examples/utility/ArduinoIoTCloud_Travis_CI<br>flash,%,examples/utility/ArduinoIoTCloud_Travis_CI<br>RAM for global variables,%,examples/ArduinoIoTCloud-DeferredOTA<br>flash,%,examples/ArduinoIoTCloud-DeferredOTA<br>RAM for global variables,%,examples/utility/Provisioning<br>flash,%,examples/utility/Provisioning<br>RAM for global variables,%,examples/utility/SelfProvisioning<br>flash,%,examples/utility/SelfProvisioning<br>RAM for global variables,%
arduino:esp32:nano_nora,-112,-0.0,0,0.0,28,0.0,0,0.0,28,0.0,0,0.0,-116,-0.0,0,0.0,-540,-0.02,0,0.0,28,0.0,0,0.0
arduino:mbed_edge:edge_control,-64,-0.01,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,-64,-0.01,0,0.0,-256,-0.03,0,0.0,,,,
arduino:mbed_giga:giga,-64,-0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,-64,-0.0,0,0.0,-256,-0.01,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0
arduino:mbed_nano:nanorp2040connect,-64,-0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,-64,-0.0,0,0.0,-244,-0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0
arduino:mbed_nicla:nicla_vision,-64,-0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,-64,-0.0,0,0.0,-320,-0.02,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,,,,
arduino:mbed_opta:opta,-128,-0.01,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,-64,-0.0,0,0.0,-320,-0.02,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,,,,
arduino:mbed_portenta:envie_m7,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,,,,
arduino:renesas_portenta:portenta_c33,-72,-0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,-72,-0.0,0,0.0,-296,-0.01,0,0.0,,,,,0,0.0,0,0.0,,,,
arduino:renesas_uno:unor4wifi,-80,-0.03,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,-80,-0.03,0,0.0,-288,-0.11,0,0.0,,,,,,,,,,,,
arduino:samd:mkr1000,-64,-0.02,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,-64,-0.02,0,0.0,-248,-0.09,0,0.0,,,,,0,0.0,0,0.0,,,,
arduino:samd:mkrgsm1400,-64,-0.02,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,-64,-0.02,0,0.0,-240,-0.09,0,0.0,,,,,0,0.0,0,0.0,,,,
arduino:samd:mkrnb1500,-64,-0.02,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,-64,-0.02,0,0.0,-240,-0.09,0,0.0,,,,,0,0.0,0,0.0,,,,
arduino:samd:mkrwan1300,64,0.02,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,,,,,,,,,,,,
arduino:samd:mkrwifi1010,-64,-0.02,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,-64,-0.02,0,0.0,-240,-0.09,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0
arduino:samd:nano_33_iot,-64,-0.02,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,-64,-0.02,0,0.0,-240,-0.09,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0
esp32:esp32:esp32,-116,-0.01,0,0.0,28,0.0,0,0.0,28,0.0,0,0.0,-112,-0.01,0,0.0,-524,-0.04,0,0.0,28,0.0,0,0.0,,,,,,,,
esp8266:esp8266:huzzah,-96,-0.01,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,-96,-0.01,0,0.0,-352,-0.03,0,0.0,,,,,,,,,,,,

@pennam pennam marked this pull request as ready for review February 5, 2024 13:45
@pennam pennam merged commit 0b1d248 into arduino-libraries:master Feb 19, 2024
22 checks passed
@pennam pennam deleted the fix_deprecated branch May 17, 2024 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Warnings of usage of depricated code within Arduin Cloud libraries
2 participants