pkg/openthread: deprecate ot_command related functions#15664
Merged
MrKevinWeiss merged 4 commits intoRIOT-OS:masterfrom Jun 14, 2021
Merged
pkg/openthread: deprecate ot_command related functions#15664MrKevinWeiss merged 4 commits intoRIOT-OS:masterfrom
MrKevinWeiss merged 4 commits intoRIOT-OS:masterfrom
Conversation
aabadie
reviewed
Dec 17, 2020
examples/openthread/main.c
Outdated
| uint16_t panid = 0; | ||
| uint8_t res = ot_call_command("panid", NULL, (void*)&panid); | ||
| printf("Current panid: 0x%x (res:%x)\n", panid, res); | ||
| puts("This a test for OpenThread"); |
Contributor
There was a problem hiding this comment.
openthread is in examples/ so not really a test. I know it was there already but maybe we can take the opportunity of this PR to adapt.
7a40453 to
b73af6b
Compare
Member
Author
|
ping @aabadie |
Member
Author
|
let's postpone this one |
Member
Author
|
ping |
4cd8fce to
ef0b740
Compare
Contributor
|
Tested and it looks good: |
Contributor
|
please rebase to maybe fix the pr_check error... |
ef0b740 to
0037210
Compare
Member
Author
|
thanks for the review! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Contribution description
Since #15038 saw the light, the current "ot_command" wrapper is only limiting OpenThread usage. The Event Queue makes it possible now to call OpenThread API functions directly when posting an event to the OpenThread queue.
This PR removes the
ot_commandcalls fromexamples/openthread, improve Doxygen documentation and deprecate the "ot_command" related functionsTesting procedure
Test if
examples/openthreadstill works ok. Note that it's possible to run OpenThread with any board that supports the Radio HAL if usingnetdev_ieee802154_submac.Issues/PRs references
None so far