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:
@ -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
|
||||
|
||||
|
@ -163,6 +163,8 @@ class IPAddress: public Printable {
|
||||
|
||||
#if LWIP_IPV6
|
||||
|
||||
IPAddress(const ip_addr_t* from);
|
||||
|
||||
uint16_t* raw6()
|
||||
{
|
||||
setV6();
|
||||
|
Reference in New Issue
Block a user