debug version
Dependents: HTTPClient_WiFi_HelloWorld_src
Fork of SNICInterface by
Diff: Socket/Socket.cpp
- Revision:
- 16:6100acfeb1f1
- Parent:
- 15:5eb637414df2
--- a/Socket/Socket.cpp Thu Mar 27 05:12:22 2014 +0000 +++ b/Socket/Socket.cpp Thu Mar 27 05:43:54 2014 +0000 @@ -65,6 +65,7 @@ int Socket::createSocket( unsigned char bind, unsigned int local_addr, unsigned short port ) { + C_SNIC_UartCommandManager *uartCmdMgr_p = mSnicWifi_p->getUartCommand(); // Get buffer for response payload from MemoryPool tagMEMPOOL_BLOCK_T *payload_buf = mSnicWifi_p->allocCmdBuf(); if( payload_buf == NULL ) @@ -104,7 +105,7 @@ int ret; // Wait UART response - ret = mSnicWifi_p->mUartCommand.wait(); + ret = uartCmdMgr_p->wait(); if( ret != 0 ) { printf( "createSocket failed\r\n" ); @@ -112,9 +113,9 @@ return -1; } - if( mSnicWifi_p->mUartCommand.getCommandStatus() != 0 ) + if( uartCmdMgr_p->getCommandStatus() != 0 ) { - printf("createSocket status:%02x\r\n", mSnicWifi_p->mUartCommand.getCommandStatus()); + printf("createSocket status:%02x\r\n", uartCmdMgr_p->getCommandStatus()); mSnicWifi_p->freeCmdBuf( payload_buf ); return -1; }