mbed-os5 only for TYBLE16

Dependents:   TYBLE16_simple_data_logger TYBLE16_MP3_Air

Revision:
1:9db0e321a9f4
Parent:
0:5b88d5760320
--- a/features/netsocket/DTLSSocket.h	Tue Dec 17 23:23:45 2019 +0000
+++ b/features/netsocket/DTLSSocket.h	Tue Dec 31 06:02:27 2019 +0000
@@ -71,7 +71,8 @@
      *  socket's constructor.
      *
      *  @param stack    Network stack as target for socket.
-     *  @return         0 on success, negative error code on failure.
+     *  @return         NSAPI_ERROR_OK on success, negative error code on failure.
+     *                  See @ref UDPSocket::open.
      */
     virtual nsapi_error_t open(NetworkStack *stack)
     {
@@ -93,8 +94,10 @@
      *
      *  @param host     Hostname of the remote host.
      *  @param port     Port of the remote host.
-     *  @return         0 on success, negative error code on failure.
+     *  @return         NSAPI_ERROR_OK on success, negative error code on failure.
+     *                  See @ref TLSSocketWrapper::connect.
      */
+    MBED_DEPRECATED_SINCE("mbed-os-5.15", "String-based APIs are deprecated")
     nsapi_error_t connect(const char *host, uint16_t port);
 
 private: