MyLibrary123
Fork of WizFi310Interface_Legacy by
Diff: Socket/TCPSocketConnection.cpp
- Revision:
- 2:ee7e278fe372
- Parent:
- 0:774ff1e8b26b
--- a/Socket/TCPSocketConnection.cpp Tue May 02 00:31:36 2017 +0000 +++ b/Socket/TCPSocketConnection.cpp Sun Sep 17 05:30:43 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); } }