Skip to content

Commit ab0bc65

Browse files
authored
Merge pull request #9873 from wajahat-ublox/udnsrn_timeout
Corrected timeout for +UDNSRN command
2 parents c0c02e2 + bafb145 commit ab0bc65

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

features/cellular/framework/targets/UBLOX/AT/UBLOX_AT_CellularStack.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -479,8 +479,11 @@ nsapi_error_t UBLOX_AT_CellularStack::gethostbyname(const char *host, SocketAddr
479479
_at.cmd_start("AT+UDNSRN=0,");
480480
_at.write_string(host);
481481
_at.cmd_stop();
482-
483-
_at.set_at_timeout(60000);
482+
#ifdef TARGET_UBLOX_C030_R41XM
483+
_at.set_at_timeout(70000);
484+
#else
485+
_at.set_at_timeout(120000);
486+
#endif
484487
_at.resp_start("+UDNSRN:");
485488
if (_at.info_resp()) {
486489
_at.read_string(ipAddress, sizeof(ipAddress));

0 commit comments

Comments
 (0)