diff --git a/source/main.cpp b/source/main.cpp index e3f2d27..9841212 100644 --- a/source/main.cpp +++ b/source/main.cpp @@ -119,7 +119,7 @@ class CellularDemo { printf("Received from echo server %d Bytes\n", ret); } - _socket.close(); + ret = _socket.close(); if (ret != NSAPI_ERROR_OK) { printf("%sSocket.close() fails, code: %d\n", SOCKET_TYPE, ret);