Skip to content

Commit

Permalink
Add DNS to FW
Browse files Browse the repository at this point in the history
- list of dns servers to use in config (ipv4 with optional port)
- change host config parameter to list of domains/ipv4s with optional port
- remove port config parameter
- add exponential backup for lte join retry timeouts
- add reboot on fail to connect with temp config
  • Loading branch information
kratenko committed Nov 25, 2021
1 parent 2c82a26 commit 583cfeb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/coap_interaction.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ CoAP_Result_t _rom CoAP_EnableAckTimeout(CoAP_Interaction_t* pIA, uint8_t retryN
uint32_t waitTime = ACK_TIMEOUT;
int i;
for (i = 0; i < retryNum; i++) { //"exponential backoff"
waitTime *= ACK_TIMEOUT;
waitTime *= 2;
}

pIA->AckTimeout = CoAP.api.rtc1HzCnt() + waitTime;
Expand Down
2 changes: 1 addition & 1 deletion src/coap_main.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

#define ACK_TIMEOUT (4)
#define ACK_RANDOM_FACTOR (1.5)
#define MAX_RETRANSMIT (3)
#define MAX_RETRANSMIT (2)
#define NSTART (1) //todo implement
#define DEFAULT_LEISURE (5) //todo implement
#define PROBING_RATE (1) //[client]
Expand Down

0 comments on commit 583cfeb

Please sign in to comment.