PIR sensor

Dependents:   WizFi310_Tweet_1

Fork of WizFi310Interface_Legacy_newv2 by ajeet prajapati

Revision:
2:3194ebe06182
Parent:
0:774ff1e8b26b
--- a/Socket/TCPSocketConnection.cpp	Tue May 02 00:31:36 2017 +0000
+++ b/Socket/TCPSocketConnection.cpp	Mon Sep 18 08:11:28 2017 +0000
@@ -34,16 +34,17 @@
 
     _server = false;
     _cid = _wizfi310->open(WizFi310::PROTO_TCP, get_address(), get_port());
+    printf("_cid : %d\n",_cid);
     if (_cid < 0 )  return -1;
 
     return 0;
 }
 
 bool TCPSocketConnection::is_connected(void)
-{
+{   printf("_cid: %d\n", _cid);
     bool _is_connected = _wizfi310->isConnected(_cid);
     if(!_is_connected)  _cid = -1;
-
+    printf(" is_connected: %d\n",_is_connected);
     return _is_connected;
 }
 
@@ -141,7 +142,7 @@
 
     if( _wizfi310->cmdSMGMT(cid) )  return;
     if( !_wizfi310->getRemote(_cid, &ip, &port))
-    {
+    { 
         set_address(ip, port);
     }
 }