ghj
Fork of WizFi310Interface_Legacy by
Diff: Socket/TCPSocketConnection.cpp
- Revision:
- 2:7b906ee634bb
- Parent:
- 0:774ff1e8b26b
--- a/Socket/TCPSocketConnection.cpp Tue May 02 00:31:36 2017 +0000 +++ b/Socket/TCPSocketConnection.cpp Mon Nov 27 05:26: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); } }