ThingPlug Test

Dependents:   WizFi310_ThingPlug_Test WizFi310_ThingPlug_Test_P

Fork of WizFi310Interface by WIZnet

Revision:
9:90902218e268
Parent:
1:16e57103a7dd
--- a/WizFi310/WizFi310_sock.cpp	Mon Aug 28 05:19:48 2017 +0000
+++ b/WizFi310/WizFi310_sock.cpp	Thu Oct 19 04:34:44 2017 +0000
@@ -167,10 +167,12 @@
 int WizFi310::recv (int cid, char *buf, int len)
 {
     int i;
-
+    
     if (!isConnected(cid))  return -1;
     
     if (_con[cid].buf == NULL ) return 0;
+    
+    memset(buf, 0x00, sizeof(buf));
 
     while (!_con[cid].received && _state.mode != MODE_COMMAND);
     _con[cid].received = false;