1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-27 18:02:17 +03:00

add 1 more IPAddress constructor for IPv6 (#5551)

This commit is contained in:
david gauchard
2018-12-26 15:01:48 +01:00
committed by GitHub
parent 8049543e98
commit da7ffdaa28
3 changed files with 12 additions and 1 deletions

View File

@ -187,6 +187,11 @@ const IPAddress INADDR_NONE(255,255,255,255);
#if LWIP_IPV6
IPAddress::IPAddress(const ip_addr_t* from)
{
ip_addr_copy(_ip, *from);
}
bool IPAddress::fromString6(const char *address) {
// TODO: test test test

View File

@ -163,6 +163,8 @@ class IPAddress: public Printable {
#if LWIP_IPV6
IPAddress(const ip_addr_t* from);
uint16_t* raw6()
{
setV6();