-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
fix(net): Use network_event_handle_t for internal callbacks #11179
Conversation
👋 Hello me-no-dev, 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 76 files 76 suites 12m 41s ⏱️ Results for commit ce0a3bb. ♻️ This comment has been updated with latest results. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This pull request includes several changes aimed at improving event handling for network interfaces in the Ethernet, PPP, and WiFi libraries. The most important changes involve adding and managing event handles to ensure proper event registration and deregistration.
Event Handling Improvements:
libraries/Ethernet/src/ETH.cpp
andlibraries/Ethernet/src/ETH.h
: Added_eth_connected_event_handle
to handle Ethernet connection events. Updated methods to use this handle for event registration and removal. [1] [2] [3] [4] [5]libraries/PPP/src/PPP.cpp
andlibraries/PPP/src/PPP.h
: Introduced_ppp_event_handle
to manage PPP connection events. Modified relevant methods to utilize this handle for event management. [1] [2] [3] [4]libraries/WiFi/src/AP.cpp
andlibraries/WiFi/src/WiFiAP.h
: Implemented_wifi_ap_event_handle
for handling WiFi AP events. Adjusted methods to register and remove events using this handle. [1] [2] [3] [4]libraries/WiFi/src/STA.cpp
andlibraries/WiFi/src/WiFiSTA.h
: Added_wifi_sta_event_handle
to manage WiFi STA events. Updated methods to handle event registration and removal with this handle. [1] [2] [3]