mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-17 06:52:18 +01:00
Making Print::write(char *) non-virtual on WiFi lib
This commit is contained in:
parent
00b945d869
commit
20bea5fcc0
@ -61,17 +61,6 @@ size_t WiFiClient::write(uint8_t b) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
size_t WiFiClient::write(const char *str) {
|
||||
if (_sock != 255)
|
||||
{
|
||||
unsigned int len = strlen(str);
|
||||
ServerDrv::sendData(_sock, (const uint8_t *)str, len);
|
||||
while (!ServerDrv::isDataSent(_sock));
|
||||
return len;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
size_t WiFiClient::write(const uint8_t *buf, size_t size) {
|
||||
if (_sock != 255)
|
||||
{
|
||||
|
@ -15,7 +15,6 @@ public:
|
||||
virtual int connect(IPAddress ip, uint16_t port);
|
||||
virtual int connect(const char *host, uint16_t port);
|
||||
virtual size_t write(uint8_t);
|
||||
virtual size_t write(const char *str);
|
||||
virtual size_t write(const uint8_t *buf, size_t size);
|
||||
virtual int available();
|
||||
virtual int read();
|
||||
|
@ -51,11 +51,6 @@ void WiFiServer::write(uint8_t b)
|
||||
write(&b, 1);
|
||||
}
|
||||
|
||||
void WiFiServer::write(const char *str)
|
||||
{
|
||||
write((const uint8_t *)str, strlen(str));
|
||||
}
|
||||
|
||||
void WiFiServer::write(const uint8_t *buffer, size_t size)
|
||||
{
|
||||
for (int sock = 0; sock < MAX_SOCK_NUM; sock++)
|
||||
|
@ -18,7 +18,6 @@ public:
|
||||
WiFiClient available(uint8_t* status = NULL);
|
||||
void begin();
|
||||
virtual void write(uint8_t);
|
||||
virtual void write(const char *str);
|
||||
virtual void write(const uint8_t *buf, size_t size);
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user