mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-21 10:26:06 +03:00
WiFiClient: use Stream::_timeout for write operations
This commit is contained in:
parent
eebcc656ed
commit
71512653ca
@ -163,6 +163,7 @@ size_t WiFiClient::write(const uint8_t *buf, size_t size)
|
|||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
_client->setTimeout(_timeout);
|
||||||
return _client->write(buf, size);
|
return _client->write(buf, size);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -178,6 +179,7 @@ size_t WiFiClient::write(Stream& stream)
|
|||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
_client->setTimeout(_timeout);
|
||||||
return _client->write(stream);
|
return _client->write(stream);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -187,6 +189,7 @@ size_t WiFiClient::write_P(PGM_P buf, size_t size)
|
|||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
_client->setTimeout(_timeout);
|
||||||
return _client->write_P(buf, size);
|
return _client->write_P(buf, size);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user