File tree 9 files changed +14
-14
lines changed
9 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -345,7 +345,7 @@ Function to get the IPv6 address.
345
345
346
346
.. code-block :: arduino
347
347
348
- IPAddress softAPIPv6 ();
348
+ IPAddress softAPlinkLocalIPv6 ();
349
349
350
350
The function will return the AP IPv6 address in ``IPAddress `` format.
351
351
Original file line number Diff line number Diff line change @@ -284,7 +284,7 @@ bool ESP_Network_Interface::hasIP() const {
284
284
return (getStatusBits () & ESP_NETIF_HAS_IP_BIT) != 0 ;
285
285
}
286
286
287
- bool ESP_Network_Interface::hasLocalIPv6 () const {
287
+ bool ESP_Network_Interface::hasLinkLocalIPv6 () const {
288
288
return (getStatusBits () & ESP_NETIF_HAS_LOCAL_IP6_BIT) != 0 ;
289
289
}
290
290
@@ -645,7 +645,7 @@ uint8_t ESP_Network_Interface::subnetCIDR() const
645
645
return calculateSubnetCIDR (IPAddress (ip.netmask .addr ));
646
646
}
647
647
648
- IPAddress ESP_Network_Interface::localIPv6 () const
648
+ IPAddress ESP_Network_Interface::linkLocalIPv6 () const
649
649
{
650
650
if (_esp_netif == NULL ){
651
651
return IPAddress (IPv6);
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ class ESP_Network_Interface: public Printable {
45
45
bool started () const ;
46
46
bool connected () const ;
47
47
bool hasIP () const ;
48
- bool hasLocalIPv6 () const ;
48
+ bool hasLinkLocalIPv6 () const ;
49
49
bool hasGlobalIPv6 () const ;
50
50
bool enableIPv6 (bool en=true );
51
51
@@ -63,7 +63,7 @@ class ESP_Network_Interface: public Printable {
63
63
IPAddress broadcastIP () const ;
64
64
IPAddress networkID () const ;
65
65
uint8_t subnetCIDR () const ;
66
- IPAddress localIPv6 () const ;
66
+ IPAddress linkLocalIPv6 () const ;
67
67
IPAddress globalIPv6 () const ;
68
68
69
69
size_t printTo (Print & out) const ;
Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ void WiFiEvent(WiFiEvent_t event){
92
92
break ;
93
93
case ARDUINO_EVENT_WIFI_STA_GOT_IP6:
94
94
Serial.print (" STA IPv6: " );
95
- Serial.println (WiFi.localIPv6 ());
95
+ Serial.println (WiFi.linkLocalIPv6 ());
96
96
break ;
97
97
case ARDUINO_EVENT_WIFI_STA_GOT_IP:
98
98
Serial.print (" STA IPv4: " );
Original file line number Diff line number Diff line change @@ -79,11 +79,11 @@ void WiFiEvent(WiFiEvent_t event){
79
79
break ;
80
80
case ARDUINO_EVENT_WIFI_STA_GOT_IP6:
81
81
Serial.print (" STA IPv6: " );
82
- Serial.println (WiFi.localIPv6 ());
82
+ Serial.println (WiFi.linkLocalIPv6 ());
83
83
break ;
84
84
case ARDUINO_EVENT_WIFI_AP_GOT_IP6:
85
85
Serial.print (" AP IPv6: " );
86
- Serial.println (WiFi.softAPIPv6 ());
86
+ Serial.println (WiFi.softAPlinkLocalIPv6 ());
87
87
break ;
88
88
case ARDUINO_EVENT_WIFI_STA_GOT_IP:
89
89
wifiOnConnect ();
Original file line number Diff line number Diff line change @@ -202,9 +202,9 @@ bool WiFiAPClass::softAPenableIPv6(bool enable)
202
202
* @return IPAddress softAP IPv6
203
203
*/
204
204
205
- IPAddress WiFiAPClass::softAPIPv6 ()
205
+ IPAddress WiFiAPClass::softAPlinkLocalIPv6 ()
206
206
{
207
- return AP.localIPv6 ();
207
+ return AP.linkLocalIPv6 ();
208
208
}
209
209
210
210
#endif /* SOC_WIFI_SUPPORTED */
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ class WiFiAPClass
87
87
uint8_t softAPSubnetCIDR ();
88
88
89
89
bool softAPenableIPv6 (bool enable=true );
90
- IPAddress softAPIPv6 ();
90
+ IPAddress softAPlinkLocalIPv6 ();
91
91
92
92
const char * softAPgetHostname ();
93
93
bool softAPsetHostname (const char * hostname);
Original file line number Diff line number Diff line change @@ -406,9 +406,9 @@ bool WiFiSTAClass::enableIPv6(bool en)
406
406
* Get the station interface link-local IPv6 address.
407
407
* @return IPAddress
408
408
*/
409
- IPAddress WiFiSTAClass::localIPv6 ()
409
+ IPAddress WiFiSTAClass::linkLocalIPv6 ()
410
410
{
411
- return STA.localIPv6 ();
411
+ return STA.linkLocalIPv6 ();
412
412
}
413
413
414
414
/* *
Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ class WiFiSTAClass
159
159
uint8_t subnetCIDR ();
160
160
161
161
bool enableIPv6 (bool en=true );
162
- IPAddress localIPv6 ();
162
+ IPAddress linkLocalIPv6 ();
163
163
IPAddress globalIPv6 ();
164
164
165
165
// ----------------------------------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments