openthread / ot-br-posix

OpenThread Border Router, a Thread border router for POSIX-based platforms.
https://openthread.io/
BSD 3-Clause "New" or "Revised" License
420 stars 235 forks source link

[thread-host] add set country code api #2550

Closed Irving-cl closed 1 month ago

Irving-cl commented 1 month ago

This PR adds the SetCountryCode method to ThreadHost.

The PR implements this method for RcpHost. The implementation for NCP will be added later.

codecov[bot] commented 1 month ago

Codecov Report

Attention: Patch coverage is 0% with 12 lines in your changes missing coverage. Please review.

Project coverage is 45.47%. Comparing base (2b41187) to head (a1ae0d2). Report is 835 commits behind head on main.

Files with missing lines Patch % Lines
src/ncp/rcp_host.cpp 0.00% 10 Missing :warning:
src/ncp/ncp_host.cpp 0.00% 2 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #2550 +/- ## =========================================== - Coverage 55.77% 45.47% -10.31% =========================================== Files 87 102 +15 Lines 6890 12209 +5319 Branches 0 894 +894 =========================================== + Hits 3843 5552 +1709 - Misses 3047 6355 +3308 - Partials 0 302 +302 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.