File tree 5 files changed +8
-8
lines changed 5 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -327,14 +327,14 @@ Get the softAP subnet mask.
327
327
328
328
IPAddress softAPSubnetMask();
329
329
330
- softAPenableIpV6
330
+ softAPenableIPv6
331
331
****************
332
332
333
333
Function used to enable the IPv6 support.
334
334
335
335
.. code-block :: arduino
336
336
337
- bool softAPenableIpV6 ();
337
+ bool softAPenableIPv6 ();
338
338
339
339
The function will return ``true `` if the configuration is successful.
340
340
Original file line number Diff line number Diff line change @@ -89,7 +89,6 @@ void WiFiEvent(WiFiEvent_t event){
89
89
break ;
90
90
case ARDUINO_EVENT_WIFI_STA_CONNECTED:
91
91
Serial.println (" STA Connected" );
92
- WiFi.enableIpV6 ();
93
92
break ;
94
93
case ARDUINO_EVENT_WIFI_STA_GOT_IP6:
95
94
Serial.print (" STA IPv6: " );
@@ -114,6 +113,7 @@ void setup() {
114
113
Serial.begin (115200 );
115
114
pinMode (0 , INPUT_PULLUP);
116
115
WiFi.onEvent (WiFiEvent); // Will call WiFiEvent() from another thread.
116
+ WiFi.enableIPv6 ();
117
117
Serial.print (" ESP32 SDK: " );
118
118
Serial.println (ESP.getSdkVersion ());
119
119
Serial.println (" Press the button to select the next mode" );
Original file line number Diff line number Diff line change @@ -71,15 +71,13 @@ void WiFiEvent(WiFiEvent_t event){
71
71
// can set ap hostname here
72
72
WiFi.softAPsetHostname (AP_SSID);
73
73
// enable ap ipv6 here
74
- WiFi.softAPenableIpV6 ();
74
+ WiFi.softAPenableIPv6 ();
75
75
break ;
76
76
case ARDUINO_EVENT_WIFI_STA_START:
77
77
// set sta hostname here
78
78
WiFi.setHostname (AP_SSID);
79
79
break ;
80
80
case ARDUINO_EVENT_WIFI_STA_CONNECTED:
81
- // enable sta ipv6 here
82
- WiFi.enableIpV6 ();
83
81
break ;
84
82
case ARDUINO_EVENT_WIFI_STA_GOT_IP6:
85
83
Serial.print (" STA IPv6: " );
@@ -108,6 +106,8 @@ void setup(){
108
106
WiFi.onEvent (WiFiEvent); // Will call WiFiEvent() from another thread.
109
107
WiFi.mode (WIFI_MODE_APSTA);
110
108
WiFi.softAP (AP_SSID);
109
+ // enable sta ipv6 here
110
+ WiFi.enableIPv6 ();
111
111
WiFi.begin (STA_SSID, STA_PASS);
112
112
}
113
113
Original file line number Diff line number Diff line change @@ -411,7 +411,7 @@ bool WiFiAPClass::softAPsetHostname(const char * hostname)
411
411
* Enable IPv6 on the softAP interface.
412
412
* @return true on success
413
413
*/
414
- bool WiFiAPClass::softAPenableIpV6 ()
414
+ bool WiFiAPClass::softAPenableIPv6 ()
415
415
{
416
416
if (WiFiGenericClass::getMode () == WIFI_MODE_NULL){
417
417
return false ;
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ class WiFiAPClass
56
56
IPAddress softAPSubnetMask ();
57
57
uint8_t softAPSubnetCIDR ();
58
58
59
- bool softAPenableIpV6 ();
59
+ bool softAPenableIPv6 ();
60
60
IPAddress softAPIPv6 ();
61
61
62
62
const char * softAPgetHostname ();
You can’t perform that action at this time.
0 commit comments