'WIFI_STA_AP' was not declared in this scope esp32

Hi,

Trying to make ESP32 as AP and Station, but i get the following error

‘WIFI_STA_AP’ was not declared in this scope

but WIFI_STA is working
im using WROOM 32 ,
esp library version 1.0.6

Any solutions

with regards
Hari Haran.C
India

help us help you. post the code, in code tags, as described here:

My guess is that you are trying to use some code for ESP8266 on the ESP32 and that does not work since there are many differences in the API. On ESP32 the mode for Station+Soft-AP is “WIFI_MODE_APSTA”.

1 Like

Hi,
Thanks Danois,
I found it , it is WIFI_AP_STA and now it works fine.

with regards
Hari Haran.C
India

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.