mirror of
https://github.com/espressif/openthread.git
synced 2026-07-27 06:17:47 +00:00
[meshcop] integrate commissioner client classes (#12618)
This commit removes the standalone `AnnounceBeginClient`, `EnergyScanClient`, and `PanIdQueryClient` classes, integrating their methods and TMF message handlers directly into the `MeshCoP::Commissioner` class. Since these client classes contained minimal state and primarily served as simple wrappers for sending specific requests and handling callbacks, merging them into the main `Commissioner` class simplifies the architecture, removes unnecessary auxiliary classes, and shrinks the overall codebase size.
This commit is contained in:
@@ -107,8 +107,8 @@ bool Agent::HandleResource(const char *aUriPath, Msg &aMsg)
|
||||
#endif
|
||||
|
||||
#if OPENTHREAD_CONFIG_COMMISSIONER_ENABLE && OPENTHREAD_FTD
|
||||
Case(kUriPanIdConflict, PanIdQueryClient);
|
||||
Case(kUriEnergyReport, EnergyScanClient);
|
||||
Case(kUriPanIdConflict, MeshCoP::Commissioner);
|
||||
Case(kUriEnergyReport, MeshCoP::Commissioner);
|
||||
Case(kUriDatasetChanged, MeshCoP::Commissioner);
|
||||
// kUriRelayRx is handled below
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user