diff --git a/src/core/utils/mesh_diag.cpp b/src/core/utils/mesh_diag.cpp index 29824a2da..f49932990 100644 --- a/src/core/utils/mesh_diag.cpp +++ b/src/core/utils/mesh_diag.cpp @@ -90,6 +90,8 @@ void MeshDiag::Cancel(void) Error MeshDiag::SendDiagGetTo(uint16_t aRloc16, const DiscoverConfig &aConfig) { + static constexpr uint8_t kMaxTlvsToRequest = 6; + Error error = kErrorNone; Coap::Message *message = nullptr; Tmf::MessageInfo messageInfo(GetInstance()); diff --git a/src/core/utils/mesh_diag.hpp b/src/core/utils/mesh_diag.hpp index 494e78462..931a080a7 100644 --- a/src/core/utils/mesh_diag.hpp +++ b/src/core/utils/mesh_diag.hpp @@ -182,8 +182,7 @@ public: private: typedef ot::NetworkDiagnostic::Tlv Tlv; - static constexpr uint32_t kResponseTimeout = OPENTHREAD_CONFIG_MESH_DIAG_RESPONSE_TIMEOUT; - static constexpr uint8_t kMaxTlvsToRequest = 5; + static constexpr uint32_t kResponseTimeout = OPENTHREAD_CONFIG_MESH_DIAG_RESPONSE_TIMEOUT; Error SendDiagGetTo(uint16_t aRloc16, const DiscoverConfig &aConfig); void HandleTimer(void);