Skip to content

Commit

Permalink
apps/lorawan: set GNRC timeout to 20 seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
olegart committed Dec 27, 2019
1 parent 0e85d1e commit 9006181
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions apps/lorawan/main-node.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ extern "C" {

#define LORAWAN_SENDNEXT_DELAY_MS 10000U
#define LORAWAN_MIN_TX_DELAY_MS 5000U
#define LORAWAN_GNRC_TIMEOUT_MS 20000U

#define LORAWAN_PORT_DEFAULT 2

Expand Down Expand Up @@ -371,7 +372,7 @@ static void *sender_thread(void *arg) {
_timeout_msg.type = GNRC_NETERR_MSG_TYPE;
_timeout_msg.content.value = 111; /* Some error */
lptimer_t _timeout_timer;
lptimer_set_msg(&_timeout_timer, 10000, &_timeout_msg, sender_pid);
lptimer_set_msg(&_timeout_timer, LORAWAN_GNRC_TIMEOUT_MS, &_timeout_msg, sender_pid);

/* wait for packet status and check */
msg_t msg;
Expand Down Expand Up @@ -473,7 +474,7 @@ static void *sender_thread(void *arg) {
_timeout_msg.type = GNRC_NETERR_MSG_TYPE;
_timeout_msg.content.value = 111; /* Some error */
lptimer_t _timeout_timer;
lptimer_set_msg(&_timeout_timer, 10000, &_timeout_msg, sender_pid);
lptimer_set_msg(&_timeout_timer, LORAWAN_GNRC_TIMEOUT_MS, &_timeout_msg, sender_pid);

msg_t msg;
do {
Expand Down

0 comments on commit 9006181

Please sign in to comment.