feat(matter): adds esp_matter:: namespace to attribute_t by SuGlider · Pull Request #10807 · espressif/arduino-esp32 (original) (raw)
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 andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Conversation3 Commits6 Checks86 Files changed
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
[ Show hidden characters]({{ revealButtonHref }})
Description of Change
When compiling an Arduino project that uses the Matter library (v3.1.0) together with M5Unified (v0.2.2) on M5Stack Atom, I encounter a compilation error caused by an ambiguous reference to attribute_t. It appears that the Matter library defines attribute_t in esp_matter_core.h, and M5Unified (via M5GFX) also declares attribute_t as an enum in enum.hpp.
This PR fixes this issue by forcing the namespace esp_matter::
into attribute_t
matter type name.
Tests scenarios
Using M5Stack Libraries:
#include <M5Unified.h> #include <Matter.h>
void setup() { M5.begin(); Matter.begin();
// ... }
void loop() { M5.update(); // ... }
Related links
Fixes #10804
Warnings | |
---|---|
⚠️ | Please consider squashing your 6 commits (simplifying branch history). |
👋 Hello SuGlider, we appreciate your contribution to this project!
Click to see more instructions ...
This automated output is generated by the PR linter DangerJS, which checks if your Pull Request meets the project's requirements and helps you fix potential issues.
DangerJS is triggered with each push
event to a Pull Request and modify the contents of this comment.
Please consider the following:
- Danger mainly focuses on the PR structure and formatting and can't understand the meaning behind your code or changes.
- Danger is not a substitute for human code reviews; it's still important to request a code review from your colleagues.
- Resolve all warnings (⚠️ ) before requesting a review from human reviewers - they will appreciate it.
- To manually retry these Danger checks, please navigate to the Actions tab and re-run last Danger workflow.
Review and merge process you can expect ...
We do welcome contributions in the form of bug reports, feature requests and pull requests.
1. An internal issue has been created for the PR, we assign it to the relevant engineer.
2. They review the PR and either approve it or ask you for changes or clarifications.
3. Once the GitHub PR is approved we do the final review, collect approvals from core owners and make sure all the automated tests are passing.
- At this point we may do some adjustments to the proposed change, or extend it by adding tests or documentation.
4. If the change is approved and passes the tests it is merged into the default branch.
Generated by 🚫 dangerJS against 0ab998e
Test Results
62 files 62 suites 5m 40s ⏱️
21 tests 21 ✅ 0 💤 0 ❌
154 runs 154 ✅ 0 💤 0 ❌
Results for commit 0ab998e.
♻️ This comment has been updated with latest results.
Memory usage test (comparing PR against master branch)
The table below shows the summary of memory usage change (decrease - increase) in bytes and percentage for each target.
Memory | FLASH [bytes] | FLASH [%] | RAM [bytes] | RAM [%] | ||||
---|---|---|---|---|---|---|---|---|
Target | DEC | INC | DEC | INC | DEC | INC | DEC | INC |
ESP32S3 | 0 | 0 | 0.00 | 0.00 | 0 | 0 | 0.00 | 0.00 |
ESP32S2 | 0 | 0 | 0.00 | 0.00 | 0 | 0 | 0.00 | 0.00 |
ESP32C3 | 0 | 0 | 0.00 | 0.00 | 0 | 0 | 0.00 | 0.00 |
ESP32C6 | 0 | 0 | 0.00 | 0.00 | 0 | 0 | 0.00 | 0.00 |
ESP32 | 0 | ⚠️ +16 | 0.00 | 0.00 | 0 | 0 | 0.00 | 0.00 |
Click to expand the detailed deltas report [usage change in BYTES]
Target | ESP32S3 | ESP32S2 | ESP32C3 | ESP32C6 | ESP32 | |||||
---|---|---|---|---|---|---|---|---|---|---|
Example | FLASH | RAM | FLASH | RAM | FLASH | RAM | FLASH | RAM | FLASH | RAM |
Matter/examples/MatterColorLight | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Matter/examples/MatterCommissionTest | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Matter/examples/MatterComposedLights | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Matter/examples/MatterContactSensor | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Matter/examples/MatterDimmableLight | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Matter/examples/MatterEnhancedColorLight | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Matter/examples/MatterFan | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Matter/examples/MatterHumiditySensor | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Matter/examples/MatterMinimum | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Matter/examples/MatterOccupancySensor | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Matter/examples/MatterOnIdentify | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Matter/examples/MatterOnOffLight | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Matter/examples/MatterOnOffPlugin | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Matter/examples/MatterPressureSensor | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Matter/examples/MatterSmartButon | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Matter/examples/MatterTemperatureLight | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Matter/examples/MatterTemperatureSensor | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ⚠️ +16 | 0 |
Matter/examples/WiFiProvWithinMatter | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |