File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -305,6 +305,7 @@ bool APClass::enableNAPT(bool enable) {
305
305
return true ;
306
306
}
307
307
308
+ #if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 4, 2)
308
309
bool APClass::enableDhcpCaptivePortal () {
309
310
esp_err_t err = ESP_OK;
310
311
static char captiveportal_uri[32 ] = {
@@ -343,6 +344,7 @@ bool APClass::enableDhcpCaptivePortal() {
343
344
344
345
return true ;
345
346
}
347
+ #endif
346
348
347
349
String APClass::SSID (void ) const {
348
350
if (!started ()) {
Original file line number Diff line number Diff line change @@ -53,7 +53,9 @@ class APClass : public NetworkInterface {
53
53
54
54
bool bandwidth (wifi_bandwidth_t bandwidth);
55
55
bool enableNAPT (bool enable = true );
56
+ #if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 4, 2)
56
57
bool enableDhcpCaptivePortal ();
58
+ #endif
57
59
58
60
String SSID (void ) const ;
59
61
uint8_t stationCount ();
You can’t perform that action at this time.
0 commit comments