This library can be used in mbed driver or mbed OS2. So If you want to use WizFi310 on mbed OS5, You have to use another WizFi310 library(wizfi310-driver). That is git repository for wizfi310-driver. - https://github.com/ARMmbed/wizfi310-driver

Dependents:   KT_IoTMakers_WizFi310_Example WizFi310_STATION_HelloWorld WizFi310_DNS_TCP_HelloWorld WizFi310_Ubidots ... more

This library can be used in mbed driver or mbed OS2. So If you want to use WizFi310 on mbed OS5, You have to use another WizFi310 library(wizfi310-driver).

That is git repository for wizfi310-driver. - https://github.com/ARMmbed/wizfi310-driver

Revision:
3:dae9a0924a73
Parent:
2:04c8d61984a3
Child:
4:176b6f3addd6
--- a/WizFi310Interface.cpp	Mon Apr 10 09:54:34 2017 +0000
+++ b/WizFi310Interface.cpp	Wed Apr 12 05:18:09 2017 +0000
@@ -55,6 +55,30 @@
     return 0;
 }
 
+int WizFi310Interface::connectAP(
+    const char *ssid,
+    const char *pass,
+    nsapi_security_t security)
+{
+    if (!_wizfi310.startup()) 
+    {
+        return NSAPI_ERROR_DEVICE_ERROR;
+    }
+
+    _wizfi310.setSsid(ssid);
+    _wizfi310.setSec(security, pass);
+    //_wizfi310.setAddress("192.168.1.1");
+    _wizfi310.setAddress("192.168.100.1","255.255.255.0","192.168.100.1");
+    
+    if( _wizfi310.join(WizFi310::WM_AP) == -1)
+    {
+        return NSAPI_ERROR_NO_CONNECTION;
+    }
+
+    return 0;
+}
+
+
 int WizFi310Interface::disconnect()
 {
     if ( _wizfi310.cmdWLEAVE() == -1 )  return NSAPI_ERROR_DEVICE_ERROR;