Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compiler error because CONFIG_ESP_WIFI_IS_STATION is not defined #15

Open
aguaviva opened this issue Mar 23, 2024 · 2 comments
Open

compiler error because CONFIG_ESP_WIFI_IS_STATION is not defined #15

aguaviva opened this issue Mar 23, 2024 · 2 comments

Comments

@aguaviva
Copy link

For some reason CONFIG_ESP_WIFI_IS_STATION is not set in sdkconfig

CONFIG_ESPTOOLPY_MONITOR_BAUD_OTHER_VAL=74
CONFIG_ESPTOOLPY_MONITOR_BAUD=230400
CONFIG_ESP_WIFI_IS_SOFTAP=y
# CONFIG_ESP_WIFI_IS_STATION is not set   <--
CONFIG_ESP_WIFI_MODE_AP=y
CONFIG_ESP_WIFI_SSID="auto"
CONFIG_ESP_WIFI_PASSWORD="helloworld"
CONFIG_MAX_STA_CONN=4

And this causes a compilation error here

if(strcmp(CONFIG_ESP_WIFI_SSID, "auto") == 0 || CONFIG_ESP_WIFI_IS_STATION) {

@aguaviva
Copy link
Author

This was my lazy fix

-    if(strcmp(CONFIG_ESP_WIFI_SSID, "auto") == 0 || CONFIG_ESP_WIFI_IS_STATION) {
+    if(strcmp(CONFIG_ESP_WIFI_SSID, "auto") == 0 
+#ifdef CONFIG_ESP_WIFI_IS_STATION
+        || CONFIG_ESP_WIFI_IS_STATION
+#endif
+    ) 
+    {

@aguaviva
Copy link
Author

I also had to comment the two instances of esp_log_set_putchar in platform.c, otherwise the app hangs there. I believe that might be because the UART is disables in an earlier call.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant