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

Files at this revision

API Documentation at this revision

Comitter:
jehoon
Date:
Thu Nov 23 23:51:30 2017 +0000
Parent:
6:007cec5e96c0
Commit message:
fix socket message parsing in isr

Changed in this revision

WizFi310/WizFi310_msg.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/WizFi310/WizFi310_msg.cpp	Mon Jun 26 00:21:58 2017 +0000
+++ b/WizFi310/WizFi310_msg.cpp	Thu Nov 23 23:51:30 2017 +0000
@@ -213,7 +213,6 @@
     } msg_table[MSG_TABLE_NUM] = {
         {RESP_MSG_OK,                    &WizFi310::msgOk},
         {RESP_MSG_ERROR,                 &WizFi310::msgError},
-//        {"[ERROR:INVALIDINPUT]",    &WizFi310::msgError},
         {RESP_MSG_CONNECT,               &WizFi310::msgConnect},
         {RESP_MSG_DISCONNECT,            &WizFi310::msgDisconnect},
         {RESP_MSG_LISTEN,                &WizFi310::msgListen},
@@ -290,7 +289,7 @@
     int cid;
 
     //if (buf[9] < '0' || buf[9] > '8' || buf[10] != ']') return;
-    if( isdigit (buf[9])) return;
+    if( isdigit(buf[9]) == 0 ) return;
 
     cid = x2i(buf[9]);
     
@@ -305,7 +304,7 @@
     int cid;
 
     //if(buf[12] < '0' || buf[12] > '8' || buf[13] != ']')    return;
-    if( isdigit (buf[12])) return;
+    if( isdigit(buf[12]) == 0 ) return;
 
     cid = x2i(buf[12]);
     _con[cid].connected = false;
@@ -338,7 +337,7 @@
     int cid;
 
     //if(buf[8] < '0' || buf[8] > '8' || buf[9] != ']')   return;
-    if( isdigit (buf[8])) return;
+    if( isdigit(buf[8]) == 0 ) return;
 
     cid = x2i(buf[8]);
     _state.cid = cid;