Arduino Forum

Products => Arduino WiFi Rev2 => Topic started by: kock on Jun 16, 2019, 01:30 am

Title: Nina client.connect(URL,port) timeout too long (two minutes and 30 sec)
Post by: kock on Jun 16, 2019, 01:30 am
Hi,

In NINA library, client.connect(URL, port) manages a timer for waiting response from the server. The timeout is longer than two minutes. In my usecase, this value is too long.

How can we reduce the timeout to 10 secondes ? Beyond 10 secondes, i prefer to wait for the response by using client.connected, so that a script can do something else. Actually, the script is blocked for two minutes and 30 seconds.

my configuration : Uno Rev2  +  IDE 1.8.8   +  NINA firmware 1.2.1 + WiFi Nina library 1.4.0

Thanks for your help.

Dan
Title: Re: Nina client.connect(URL,port) timeout too long (two minutes and 30 sec)
Post by: kock on Jun 20, 2019, 10:04 pm
How can i submit my issue to Arduino developers ?
Title: Re: Nina client.connect(URL,port) timeout too long (two minutes and 30 sec)
Post by: pert on Jun 21, 2019, 12:41 am
The question is whether the issue is in the firmware or the library?

In case it's the firmware, you might try using the newest NINA firmware 1.2.4. It comes bundled with this test build of the Arduino IDE:
https://github.com/arduino/Arduino/pull/8976#issuecomment-503638485 (https://github.com/arduino/Arduino/pull/8976#issuecomment-503638485)
Does the issue still occur after you've installed that version on your Uno WiFi Rev2?
Title: Re: Nina client.connect(URL,port) timeout too long (two minutes and 30 sec)
Post by: kock on Jun 22, 2019, 07:20 pm
thank you for this opportunity. Right now, i am spending vacations in mountains. I expect to test 1.2.4 firmware in a couple of days. How could i update 1.2.1 to 1.2.4  ?