-
Notifications
You must be signed in to change notification settings - Fork 7.8k
feat(espnow): Add PHY configuration for ESP-NOW packets #12108
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
base: master
Are you sure you want to change the base?
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 25m 48s ⏱️ Results for commit 505e9c3. |
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