feat(espnow): Add PHY configuration for ESP-NOW packets#12108
feat(espnow): Add PHY configuration for ESP-NOW packets#12108me-no-dev merged 2 commits intoespressif:masterfrom
Conversation
👋 Hello lucasssvaz, we appreciate your contribution to this project! 📘 Please review the project's Contributions Guide for key guidelines on code, documentation, testing, and more. 🖊️ Please also make sure you have read and signed the Contributor License Agreement for this project. Click to see more instructions ...
Review and merge process you can expect ...
|
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.
Click to expand the detailed deltas report [usage change in BYTES]
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Test Results 83 files 83 suites 26m 49s ⏱️ Results for commit 0f9035a. ♻️ This comment has been updated with latest results. |
Description of Change
This pull request enhances the ESP-NOW library by introducing support for configuring and managing the PHY rate for individual peers, improving logging, and adding error handling for peer management operations. The changes ensure that rate configuration can be set per peer before initialization and are applied correctly when ESP-NOW starts or when peers are added.
PHY Rate Configuration Enhancements
setRate()andgetRate()methods inESP_NOW_Peer, and included a default rate configuration macro (DEFAULT_ESPNOW_RATE_CONFIG). [1] [2] [3] [4] [5]_esp_now_set_all_peers_rate()to apply rate configuration to all peers after ESP-NOW initialization.Improved Logging and Error Handling
API Documentation and Usability
These changes collectively improve the flexibility, reliability, and maintainability of the ESP-NOW library, especially for applications requiring custom PHY rate settings per peer.
Test Scenarios
Tested locally