Softap - Stop

narayan
Posts: 14
Joined: Tue Feb 02, 2016 5:23 am

Softap - Stop

Postby narayan » Wed Feb 24, 2016 9:26 am

I can start a SOFTAP mode using:
wifi_softap_set_config_current ()
wifi_set_opmode (xxx)
wifi_softap_dhcps_start ()

How do I stop the SOFTAP (completly stop it - not just beaconing). I don't want anybody connecting.
Is there an API or should I set something specific in wifi_softap_set_config_current ()?

Thanks

narayan

ESP_Faye
Posts: 1646
Joined: Mon Oct 27, 2014 11:08 am

Re: Softap - Stop

Postby ESP_Faye » Wed Mar 02, 2016 4:42 pm

Hi,

Call wifi_set_opmode(STATION_MODE); to set it to be station mode. Can this help?

narayan
Posts: 14
Joined: Tue Feb 02, 2016 5:23 am

Re: Softap - Stop

Postby narayan » Wed Mar 30, 2016 5:51 am

Thanks for the suggestion. I will try this. When I stop the softAP, I sometimes
need to stop the Station mode to.
so to stop softAP can i do:

wifi_set_opmode (STATION_MODE)
wifi_station_autoconnect (0)

ESP_Faye
Posts: 1646
Joined: Mon Oct 27, 2014 11:08 am

Re: Softap - Stop

Postby ESP_Faye » Wed Mar 30, 2016 10:46 am

Hi,

How about wifi_set_opmode(NULL_MODE) ?

Who is online

Users browsing this forum: No registered users and 14 guests