[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:
Abtin Keshavarzian
2026-03-05 10:37:35 -06:00
committed by GitHub
parent 271c50a044
commit 75c554e9b1
14 changed files with 203 additions and 628 deletions
+2 -2
View File
@@ -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