Skip to content

Commit bafb145

Browse files
author
Wajahat Abbas
committed
Corrected timeout for +UDNSRN command
1 parent d96c9e8 commit bafb145

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
@@ -481,8 +481,11 @@ nsapi_error_t UBLOX_AT_CellularStack::gethostbyname(const char *host, SocketAddr
481481
_at.cmd_start("AT+UDNSRN=0,");
482482
_at.write_string(host);
483483
_at.cmd_stop();
484-
485-
_at.set_at_timeout(60000);
484+
#ifdef TARGET_UBLOX_C030_R41XM
485+
_at.set_at_timeout(70000);
486+
#else
487+
_at.set_at_timeout(120000);
488+
#endif
486489
_at.resp_start("+UDNSRN:");
487490
if (_at.info_resp()) {
488491
_at.read_string(ipAddress, sizeof(ipAddress));

0 commit comments

Comments
 (0)