-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gnrc_lorawan: encode LoRaWAN port in netif header #16080
gnrc_lorawan: encode LoRaWAN port in netif header #16080
Conversation
7b79279
to
bc9804c
Compare
rebased! |
I was able to run on my board with credentials from @jia200x:
|
I also went through the documentation and played around with it
device
|
If you can just fix the cpp check issues, squash rebase all that fun stuff I think we should be OK. |
bc9804c
to
952f00c
Compare
addressed and amended directly |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested, nice cleanup, ACK.
601652f
to
40d641c
Compare
Please squash @jia200x ! |
7952f26
to
36d4f6a
Compare
36d4f6a
to
dca0b36
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK!
gnrc_lorawan: fix gnrc_pktbuf_release_error (introduced by #16080)
gnrc_lorawan: fix gnrc_pktbuf_release_error (introduced by #16080) [backport 2021.07]
Contribution description
This PR encodes the LoRaWAN port in a GNRC netif header.
The benefit of doing this is that we can reuse
txtsnd
and similar commands. From now on it's possible to use GNRC LoRaWAN (almost) out of the box in any GNRC application (e.gexamples/default
).This PR also deprecates
NETOPT_LORAWAN_TX_PORT
and introduces aCONFIG_GNRC_NETIF_LORAWAN_NETIF_HDR
to enable this functionality (and don't abruptly change the API of users).Testing procedure
The following things should be tested:
examples/gnrc_lorawan
works out of the box. Thesend
command was replaced bytxtsnd
examples/default
:Check that's possible to communicate.
Issues/PRs references
None so far