Skip to content

Commit dfbe385

Browse files
authored
Merge pull request #96 from ellensp/fix-wifi-interface-idf4
Use WIFI_IF_STA / WIFI_IF_AP for esp_wifi_get_protocol / esp_wifi_get…
2 parents 916c63c + 33bc3d4 commit dfbe385

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/command.cpp‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1262,7 +1262,7 @@ bool COMMAND::execute_internal_command (int cmd, String cmd_params, level_authen
12621262
espresponse->print ("%");
12631263
espresponse->print ("\n");
12641264
uint8_t PhyMode;
1265-
esp_wifi_get_protocol (ESP_IF_WIFI_STA, &PhyMode);
1265+
esp_wifi_get_protocol (WIFI_IF_STA, &PhyMode);
12661266
espresponse->print ("Phy Mode: ");
12671267
if (PhyMode == (WIFI_PROTOCOL_11B | WIFI_PROTOCOL_11G | WIFI_PROTOCOL_11N)) {
12681268
espresponse->print ("11n");
@@ -1310,7 +1310,7 @@ bool COMMAND::execute_internal_command (int cmd, String cmd_params, level_authen
13101310
espresponse->print (")");
13111311
espresponse->print ("\n");
13121312
wifi_config_t conf;
1313-
esp_wifi_get_config (ESP_IF_WIFI_AP, &conf);
1313+
esp_wifi_get_config (WIFI_IF_AP, &conf);
13141314
espresponse->print ("SSID: ");
13151315
espresponse->print ((const char*) conf.ap.ssid);
13161316
espresponse->print ("\n");

0 commit comments

Comments
 (0)