Skip to content

Commit

Permalink
Increase connect timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
bugadani committed Sep 27, 2023
1 parent e656280 commit aaa36a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/states/firmware_update.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ async fn do_update(board: &mut Board) -> bool {

let mut client = HttpClient::new(&client, &dns);

const CONNECT_TIMEOUT: Duration = Duration::from_secs(10);
const CONNECT_TIMEOUT: Duration = Duration::from_secs(15);
const READ_TIMEOUT: Duration = Duration::from_secs(10);

let mut url = heapless::String::<128>::new();
Expand Down
2 changes: 1 addition & 1 deletion src/states/upload_or_store_measurement.rs
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ where
T: TcpConnect,
DNS: Dns,
{
const CONNECT_TIMEOUT: Duration = Duration::from_secs(10);
const CONNECT_TIMEOUT: Duration = Duration::from_secs(15);
const UPLOAD_TIMEOUT: Duration = Duration::from_secs(30);

let mut upload_url = heapless::String::<128>::new();
Expand Down

0 comments on commit aaa36a3

Please sign in to comment.