Merge pull request #9873 from wajahat-ublox/udnsrn_timeout

Corrected timeout for +UDNSRN command
pull/9914/head
Martin Kojtal 2019-03-14 09:38:20 +01:00 committed by GitHub
commit ab0bc65e0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -479,8 +479,11 @@ nsapi_error_t UBLOX_AT_CellularStack::gethostbyname(const char *host, SocketAddr
_at.cmd_start("AT+UDNSRN=0,");
_at.write_string(host);
_at.cmd_stop();
_at.set_at_timeout(60000);
#ifdef TARGET_UBLOX_C030_R41XM
_at.set_at_timeout(70000);
#else
_at.set_at_timeout(120000);
#endif
_at.resp_start("+UDNSRN:");
if (_at.info_resp()) {
_at.read_string(ipAddress, sizeof(ipAddress));