mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-30 16:24:09 +03:00
Merge branch 'master' into patch-1
This commit is contained in:
@ -33,6 +33,10 @@
|
|||||||
class TransportTraits
|
class TransportTraits
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
virtual ~TransportTraits()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
virtual std::unique_ptr<WiFiClient> create()
|
virtual std::unique_ptr<WiFiClient> create()
|
||||||
{
|
{
|
||||||
return std::unique_ptr<WiFiClient>(new WiFiClient());
|
return std::unique_ptr<WiFiClient>(new WiFiClient());
|
||||||
@ -624,6 +628,13 @@ int HTTPClient::writeToStream(Stream * stream)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// read trailing \r\n at the end of the chunk
|
||||||
|
char buf[2];
|
||||||
|
auto trailing_seq_len = _tcp->readBytes((uint8_t*)buf, 2);
|
||||||
|
if (trailing_seq_len != 2 || buf[0] != '\r' || buf[1] != '\n') {
|
||||||
|
return returnError(HTTPC_ERROR_READ_TIMEOUT);
|
||||||
|
}
|
||||||
|
|
||||||
delay(0);
|
delay(0);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -213,7 +213,7 @@ public:
|
|||||||
return size;
|
return size;
|
||||||
}
|
}
|
||||||
|
|
||||||
char peek()
|
int peek()
|
||||||
{
|
{
|
||||||
if (!_rx_buf || _rx_buf_offset == _rx_buf->len)
|
if (!_rx_buf || _rx_buf_offset == _rx_buf->len)
|
||||||
return -1;
|
return -1;
|
||||||
|
@ -78,6 +78,8 @@ SECTIONS
|
|||||||
*(.sdata2.*)
|
*(.sdata2.*)
|
||||||
*(.gnu.linkonce.s2.*)
|
*(.gnu.linkonce.s2.*)
|
||||||
*(.jcr)
|
*(.jcr)
|
||||||
|
. = ALIGN(4);
|
||||||
|
_Pri_3_HandlerAddress = ABSOLUTE(.);
|
||||||
_data_end = ABSOLUTE(.);
|
_data_end = ABSOLUTE(.);
|
||||||
} >dram0_0_seg :dram0_0_phdr
|
} >dram0_0_seg :dram0_0_phdr
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user