* IPv6 for Arduino 3.0.0 * Fix warning in WifiUdp * remove comment / formating * Add zone to IPAddress and update WiFiUDP and WiFiGeneric * Add from ip_addr_t conversion and better toString implementation * Use constant for IPAddress offset @sgryphon is this better? * Combine hostByName to support both IPv6 and IPv4 results * implement logic to use v6 dns only when global v6 address is assigned and remove IPv6Address * Rename softAPenableIPv6 * Rename mDNS methods * fix IPAddress method to work with const address * Some cleanup and do not print zone in IPAddress * rename WiFiMulti method * Fix AP DHCPS not properly working on recent IDF * Add option to print the zone at the end of IPv6 @TD-er * remove log prints from hostByName * Use correct array length for listing IPv6 addresses * Implement some Tasmota requirements Added constructor that takes `const ip_addr_t *`. Added `addr_type()` getter Organize header to highlight the Espressif additions to IPAddress * add 'const' to IPAddress::addr_type() * Fix WiFiUdp not updating mapped v4 address * Update WiFiServer.cpp --------- Co-authored-by: Jason2866 <24528715+Jason2866@users.noreply.github.com> Co-authored-by: s-hadinger <49731213+s-hadinger@users.noreply.github.com>
40 lines
1.2 KiB
C++
40 lines
1.2 KiB
C++
/**
|
|
StreamString.h
|
|
|
|
Copyright (c) 2015 Markus Sattler. All rights reserved.
|
|
|
|
This library is free software; you can redistribute it and/or
|
|
modify it under the terms of the GNU Lesser General Public
|
|
License as published by the Free Software Foundation; either
|
|
version 2.1 of the License, or (at your option) any later version.
|
|
|
|
This library is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Lesser General Public License for more details.
|
|
|
|
You should have received a copy of the GNU Lesser General Public
|
|
License along with this library; if not, write to the Free Software
|
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
*/
|
|
|
|
#ifndef STREAMSTRING_H_
|
|
#define STREAMSTRING_H_
|
|
#include "Stream.h"
|
|
#include "WString.h"
|
|
|
|
class StreamString: public Stream, public String
|
|
{
|
|
public:
|
|
size_t write(const uint8_t *buffer, size_t size) override;
|
|
size_t write(uint8_t data) override;
|
|
|
|
int available() override;
|
|
int read() override;
|
|
int peek() override;
|
|
void flush() override;
|
|
};
|
|
|
|
|
|
#endif /* STREAMSTRING_H_ */
|