-->
Page 1 of 1

Deactivate Wireless Client Mode

PostPosted: Thu Apr 09, 2015 4:51 pm
by erniberni
Hi,
I loaded the WiFiClient example and could successfull connect to my WiFi.
After that I flashed a new sketch without WiFi client activation.
The client is still activated after reset and messages according to that are send out through serial interface.

How can I deactivate the WiFI client mode?

Regards
Reinhard

Re: Deactivate Wireless Client Mode

PostPosted: Fri Apr 10, 2015 3:46 am
by gerardwr
The ESP stores Wifi connection info in flash, and restarts this connection at reboot, before execution your sketch.

As a workaround you could try setting a Wifi mode in your sketch that is sure to fail, but I am not sure if this will work out.

Re: Deactivate Wireless Client Mode

PostPosted: Sun Apr 26, 2015 9:55 am
by thewiep
if you add this on top of your sketch
Code: Select allextern "C" {
  #include "user_interface.h"
}


you can set wifi mode with following line
Code: Select allwifi_set_opmode(WIFI_STA);

and disable AP