This is library for using WizFi250

Dependents:   WebSocket_WizFi250_HelloWorld IFTTT_WizFi250 AxedaGo-WizFi250 FANARM_AP_udp_server ... more

Revision:
5:8a0702aa91e3
Parent:
0:f2039204c8f6
Child:
7:ba28fe711055
--- a/WizFi250/WizFi250_msg.cpp	Fri Nov 14 15:10:33 2014 +0900
+++ b/WizFi250/WizFi250_msg.cpp	Fri Nov 14 15:14:56 2014 +0900
@@ -23,8 +23,8 @@
 #include "WizFi250.h"
 
 #ifdef CFG_ENABLE_RTOS
-#undef DBG
-#define DBG(x, ...)
+#undef WIZ_DBG
+#define WIZ_DBG(x, ...)
 #endif
 
 // This function is operating in ISR. So you can't use debug message.
@@ -156,13 +156,13 @@
                  {
                      setRts(false);     // blcok
                      _con[cid].received = true;
-                     //WARN("buf full");
+                     //WIZ_WARN("buf full");
                  }
              }
              count++;
              if(count >= len)
              {
-//                 DBG("recv cid: %d, count : %d, len : %d",cid, count, len);
+//                 WIZ_DBG("recv cid: %d, count : %d, len : %d",cid, count, len);
                  _con[cid].received = true;
                  _state.mode = MODE_COMMAND;
              }
@@ -211,6 +211,7 @@
 
     buf[i] = '\0';
     //strncpy(_state.dbgRespBuf, buf, sizeof(buf));
+    //WIZ_DBG("%s\r\n",_state.dbgRespBuf);
 
     if(_state.res != RES_NULL)
     {
@@ -218,7 +219,7 @@
         {
             if(res_table[i].res == _state.res)
             {
-                //DBG("parse res %d '%s'\r\n", i, buf);
+                //WIZ_DBG("parse res %d '%s'\r\n", i, buf);
                 if(res_table[i].func != NULL)
                 {
                     (this->*(res_table[i].func))(buf);
@@ -234,7 +235,7 @@
     {
         if( strncmp(buf, msg_table[i].msg, strlen(msg_table[i].msg)) == 0 )
         {
-            //DBG("parse msg '%s'\r\n", buf);
+            //WIZ_DBG("parse msg '%s'\r\n", buf);
             if(msg_table[i].func != NULL)
             {
                 (this->*(msg_table[i].func))(buf);