Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of WncControllerLibrary by
Diff: WncController.cpp
- Revision:
- 15:2c8211ef69e1
- Parent:
- 14:e846217affcd
- Child:
- 16:f748245382ac
diff -r e846217affcd -r 2c8211ef69e1 WncController.cpp
--- a/WncController.cpp	Sat Sep 10 02:02:05 2016 +0000
+++ b/WncController.cpp	Sat Sep 10 02:32:47 2016 +0000
@@ -336,6 +336,23 @@
  *
  *  \details None.
  */
+ 
+bool WncController::openSocketUrl(uint16_t numSock, const char * url, uint16_t port, bool tcp, uint16_t timeOutSec)
+{
+    if (resolveUrl(numSock, url) == true)
+        return (openSocket(numSock, port, tcp, timeOutSec));
+    
+    return (false);
+}
+
+bool WncController::openSocketIpAddr(uint16_t numSock, const char * ipAddr, uint16_t port, bool tcp, uint16_t timeOutSec)
+{
+    if (setIpAddr(numSock, ipAddr) == true)
+        return (openSocket(numSock, port, tcp, timeOutSec));
+    
+    return (false);
+}
+ 
 bool WncController::openSocket(uint16_t numSock, uint16_t port, bool tcp, uint16_t timeOutSec)
 {
     if (numSock < MAX_NUM_WNC_SOCKETS) {
    