diff --git a/src/ESPAsyncTCPbuffer.cpp b/src/ESPAsyncTCPbuffer.cpp index d2261da..e45681a 100644 --- a/src/ESPAsyncTCPbuffer.cpp +++ b/src/ESPAsyncTCPbuffer.cpp @@ -386,7 +386,8 @@ void AsyncTCPbuffer::_sendBuffer() { * @param len */ void AsyncTCPbuffer::_rxData(uint8_t *buf, size_t len) { - if(!_client || !_client->connected()) { + //FIX do not check connected here, otherwise miss responce + if(!_client/* || !_client->connected()*/) { DEBUG_ASYNC_TCP("[A-TCP] not connected!\n"); return; } @@ -447,7 +448,8 @@ void AsyncTCPbuffer::_rxData(uint8_t *buf, size_t len) { * */ size_t AsyncTCPbuffer::_handleRxBuffer(uint8_t *buf, size_t len) { - if(!_client || !_client->connected() || _RXbuffer == NULL) { + //FIX do not check connected here, otherwise miss resonce + if(!_client/* || !_client->connected()*/ || _RXbuffer == NULL) { return 0; }