|
1 | | -From 658bbcebf9375ef322e29e6264118941a08c8eda Mon Sep 17 00:00:00 2001 |
| 1 | +From 801f2a2d0fbfe226f0be04bb89a08b67f642d763 Mon Sep 17 00:00:00 2001 |
2 | 2 | From: Giampaolo Mancini < [email protected]> |
3 | | -Date: Fri, 4 Feb 2022 14:52:35 +0100 |
| 3 | +Date: Mon, 7 Feb 2022 15:13:41 +0100 |
4 | 4 | Subject: [PATCH] Fix HostByName SISX request |
5 | 5 |
|
6 | 6 | --- |
7 | | - .../GEMALTO/CINTERION/GEMALTO_CINTERION_CellularStack.cpp | 5 +++-- |
8 | | - 1 file changed, 3 insertions(+), 2 deletions(-) |
| 7 | + .../GEMALTO/CINTERION/GEMALTO_CINTERION_CellularStack.cpp | 7 ++++--- |
| 8 | + 1 file changed, 4 insertions(+), 3 deletions(-) |
9 | 9 |
|
10 | 10 | diff --git a/connectivity/drivers/cellular/GEMALTO/CINTERION/GEMALTO_CINTERION_CellularStack.cpp b/connectivity/drivers/cellular/GEMALTO/CINTERION/GEMALTO_CINTERION_CellularStack.cpp |
11 | | -index 0416f561ac..8033058182 100644 |
| 11 | +index 1eca8f54e0..33a73bf9a3 100644 |
12 | 12 | --- a/connectivity/drivers/cellular/GEMALTO/CINTERION/GEMALTO_CINTERION_CellularStack.cpp |
13 | 13 | +++ b/connectivity/drivers/cellular/GEMALTO/CINTERION/GEMALTO_CINTERION_CellularStack.cpp |
14 | | -@@ -284,15 +284,16 @@ nsapi_error_t GEMALTO_CINTERION_CellularStack::gethostbyname(const char* host, S |
| 14 | +@@ -276,15 +276,16 @@ nsapi_error_t GEMALTO_CINTERION_CellularStack::gethostbyname(const char *host, S |
15 | 15 | } |
16 | 16 |
|
17 | 17 | if (!address->set_ip_address(host)) { |
18 | 18 | - //_at.set_at_timeout(1min); |
| 19 | +- _at.cmd_start_stop("^SISX" , "=" , "%s%d%s", "HostByName" , _cid, host); |
19 | 20 | + // _at.set_at_timeout(1min); |
20 | | - _at.cmd_start_stop("^SISX", "=", "%s%d%s", "HostByName", _cid, host); |
| 21 | ++ _at.cmd_start_stop("^SISX", "=", "%s%d%s", "HostByName", _cid, host); |
21 | 22 | _at.resp_start("^SISX: \"HostByName\","); |
22 | 23 | char ipAddress[NSAPI_IP_SIZE]; |
23 | 24 | int size = _at.read_string(ipAddress, sizeof(ipAddress)); |
24 | 25 | + _at.resp_stop(); |
25 | 26 | if (size > 0) { |
26 | | - // Valid string received |
| 27 | + //Valid string received |
27 | 28 | tr_info("Read %d bytes. Valid string: %s\n", size, ipAddress); |
28 | 29 | - _at.restore_at_timeout(); |
29 | 30 | + // _at.restore_at_timeout(); |
|
0 commit comments