Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
3 years, 1 month ago.
Hi everyone! The first question is about sending data with TCP socket. I have a function wich send data, part which use socket is:
TCPClientPtr->set_blocking(true); Status = (AT_ErrCode)TCPClientPtr->send(SocketsTxBufferPtr, SocketSettings->DataCount);
Where SocketsTxBufferPtr is pointer to data and SocketSettings->DataCount is amoung of data. I call it once and all is OK, i got my data in a server, but when i call this function again, data doesn`t send. Only when i close onnection all of data, which i try to send go to server with closing message. I think, I should clear some flags to send data again, but i don`t know.