We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0ef198 commit 0afe72dCopy full SHA for 0afe72d
src/utility/wifi_drv.cpp
@@ -752,17 +752,12 @@ int WiFiDrv::getHostByName(IPAddress& aResult)
752
753
int WiFiDrv::getHostByName(const char* aHostname, IPAddress& aResult)
754
{
755
- uint8_t retry = 10;
756
if (reqHostByName(aHostname))
757
758
- while(!getHostByName(aResult) && --retry > 0)
759
- {
760
- delay(1000);
761
- }
+ return getHostByName(aResult);
762
}else{
763
return 0;
764
}
765
- return (retry>0);
766
767
768
const char* WiFiDrv::getFwVersion()
0 commit comments