Skip to content

Commit c7e63e6

Browse files
committed
Rename softAPenableIPv6
1 parent e333afb commit c7e63e6

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

docs/source/api/wifi.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,14 +327,14 @@ Get the softAP subnet mask.
327327
328328
IPAddress softAPSubnetMask();
329329
330-
softAPenableIpV6
330+
softAPenableIPv6
331331
****************
332332

333333
Function used to enable the IPv6 support.
334334

335335
.. code-block:: arduino
336336
337-
bool softAPenableIpV6();
337+
bool softAPenableIPv6();
338338
339339
The function will return ``true`` if the configuration is successful.
340340

libraries/WiFi/examples/WiFiBlueToothSwitch/WiFiBlueToothSwitch.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ void WiFiEvent(WiFiEvent_t event){
8989
break;
9090
case ARDUINO_EVENT_WIFI_STA_CONNECTED:
9191
Serial.println("STA Connected");
92-
WiFi.enableIpV6();
9392
break;
9493
case ARDUINO_EVENT_WIFI_STA_GOT_IP6:
9594
Serial.print("STA IPv6: ");
@@ -114,6 +113,7 @@ void setup() {
114113
Serial.begin(115200);
115114
pinMode(0, INPUT_PULLUP);
116115
WiFi.onEvent(WiFiEvent); // Will call WiFiEvent() from another thread.
116+
WiFi.enableIPv6();
117117
Serial.print("ESP32 SDK: ");
118118
Serial.println(ESP.getSdkVersion());
119119
Serial.println("Press the button to select the next mode");

libraries/WiFi/examples/WiFiIPv6/WiFiIPv6.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,15 +71,13 @@ void WiFiEvent(WiFiEvent_t event){
7171
//can set ap hostname here
7272
WiFi.softAPsetHostname(AP_SSID);
7373
//enable ap ipv6 here
74-
WiFi.softAPenableIpV6();
74+
WiFi.softAPenableIPv6();
7575
break;
7676
case ARDUINO_EVENT_WIFI_STA_START:
7777
//set sta hostname here
7878
WiFi.setHostname(AP_SSID);
7979
break;
8080
case ARDUINO_EVENT_WIFI_STA_CONNECTED:
81-
//enable sta ipv6 here
82-
WiFi.enableIpV6();
8381
break;
8482
case ARDUINO_EVENT_WIFI_STA_GOT_IP6:
8583
Serial.print("STA IPv6: ");
@@ -108,6 +106,8 @@ void setup(){
108106
WiFi.onEvent(WiFiEvent); // Will call WiFiEvent() from another thread.
109107
WiFi.mode(WIFI_MODE_APSTA);
110108
WiFi.softAP(AP_SSID);
109+
//enable sta ipv6 here
110+
WiFi.enableIPv6();
111111
WiFi.begin(STA_SSID, STA_PASS);
112112
}
113113

libraries/WiFi/src/WiFiAP.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ bool WiFiAPClass::softAPsetHostname(const char * hostname)
411411
* Enable IPv6 on the softAP interface.
412412
* @return true on success
413413
*/
414-
bool WiFiAPClass::softAPenableIpV6()
414+
bool WiFiAPClass::softAPenableIPv6()
415415
{
416416
if(WiFiGenericClass::getMode() == WIFI_MODE_NULL){
417417
return false;

libraries/WiFi/src/WiFiAP.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class WiFiAPClass
5656
IPAddress softAPSubnetMask();
5757
uint8_t softAPSubnetCIDR();
5858

59-
bool softAPenableIpV6();
59+
bool softAPenableIPv6();
6060
IPAddress softAPIPv6();
6161

6262
const char * softAPgetHostname();

0 commit comments

Comments
 (0)