Closed moraleja39 closed 6 years ago
@zhangyanjiaoesp please help.
Perhaps you need to set the mode first (STA or AP_STA) before trying to set the protocol? If the board has been previously switched to STA mode, and settings saved to flash, you will not get the error. If it has not been used before, it may default to AP mode, hence you get an error when trying to set protocol for STA interface.
@moraleja39 Does igrr's suggestion help you?
Hi. I have a couple of ESP-WROOM-32 dev boards. I'm trying to set the WiFi protocol as b or bg, using this portion of code:
On some of the boards, when running the program, it throws the following error:
However, on some other (identical) boards the same program runs fine, and the WiFi protocol is switched correctly.
Any help on this would be highly appreciated.