Skip to content

Commit

Permalink
feat(TeslaBleService): increase timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
pkuehnel committed Jan 24, 2025
1 parent 9651fa8 commit 45dbdfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TeslaSolarCharger/Server/Services/TeslaBleService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ private async Task<DtoBleCommandResult> SendCommandToBle(DtoBleRequest request)
try
{
//Default timeout of Tesla Command CLI is 21 seconds.
client.Timeout = TimeSpan.FromSeconds(22);
client.Timeout = TimeSpan.FromSeconds(29);
var response = await client.PostAsJsonAsync(url, request.Parameters).ConfigureAwait(false);
var responseContent = await response.Content.ReadAsStringAsync().ConfigureAwait(false);
if (!response.IsSuccessStatusCode)
Expand Down

0 comments on commit 45dbdfb

Please sign in to comment.