Function url.begin() returns succes when supplied with a dead link #2073
-
Trying to make an internet radio, and of course I have more urls to play with than just the example, I used the VS1053 example. But many other give problems. Here is one example, trying to connect to http://theoldiestation.dyndns.org:8020/stream.mp3 which is in fact a dead link. Below is dump from the serial monitor in Arduino IDE 2.3.6: 18:04:43.986 -> url.begin ->http://theoldiestation.dyndns.org:8020/stream.mp3 Code snippet: Serial.printf("url.begin ->%s\n", RequestedStationUrl); if(return_result==1){ The serial output reports connect failed but takes almost 3 seconds to find out. (yes I changed #define URL_CLIENT_TIMEOUT 3000;) Secondly, there is the question why does url.begin(..... return a solid 1 while obviously it is not succesful? Thanks in advance for any clarifications! Frank. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
#2071