<p><b>@aabadie</b> commented on this pull request.</p>

<hr>

<p>In <a href="https://github.com/RIOT-OS/RIOT/pull/11022#discussion_r297165135">examples/gnrc_lorawan/main.c</a>:</p>
<pre style='color:#555'>> +gnrc_netreg_entry_cbd_t _cbd = {
+    .cb = _netreg_cb,
+    .ctx = NULL
+};
+
+static gnrc_netreg_entry_t _entry = GNRC_NETREG_ENTRY_INIT_CB(LORAWAN_PORT, &_cbd);
+
+static void _usage(void)
+{
+    puts("usage: send <if_pid> <payload> [port]");
+}
+
+int tx_cmd(int argc, char **argv)
+{
+    gnrc_pktsnip_t *pkt;
+    uint8_t port = LORAWAN_PORT; /* Default: 2 */
</pre>
<p>Why not use a netopt for lorawan tx port ? I think <a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="317650145" data-permission-text="Issue title is private" data-url="https://github.com/RIOT-OS/RIOT/issues/9022" data-hovercard-type="pull_request" data-hovercard-url="/RIOT-OS/RIOT/pull/9022/hovercard" href="https://github.com/RIOT-OS/RIOT/pull/9022">#9022</a> is adding one for this.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/RIOT-OS/RIOT/pull/11022?email_source=notifications&email_token=ABE7WYAC4DFQE3UXFDWSTALP4IG25A5CNFSM4GXWW25KYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOB4RVODI#pullrequestreview-253974285">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYA7TL3ZIHEV32KVXV3P4IG25ANCNFSM4GXWW25A">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABE7WYDILWACQWUT6XVXUTDP4IG25A5CNFSM4GXWW25KYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOB4RVODI.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/RIOT-OS/RIOT/pull/11022?email_source=notifications\u0026email_token=ABE7WYAC4DFQE3UXFDWSTALP4IG25A5CNFSM4GXWW25KYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOB4RVODI#pullrequestreview-253974285",
"url": "https://github.com/RIOT-OS/RIOT/pull/11022?email_source=notifications\u0026email_token=ABE7WYAC4DFQE3UXFDWSTALP4IG25A5CNFSM4GXWW25KYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOB4RVODI#pullrequestreview-253974285",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>