-->
Page 1 of 1

How to properly disconnect an ESP8266 from AP

PostPosted: Mon Mar 16, 2020 5:35 am
by sharkx
Setup :
  • two ESP8266 modules
  • NonOS SDK 1.3.0
  • one module is AP, the other is station
  • station is connected to AP

Now... station calls `wifi_station_disconnect` to disconnect from AP, but AP module doesn't get notified; no event is triggerred. The only similar issue I found is here (https://github.com/esp8266/Arduino/issues/3279) :

when a station is leaving, it should first tell its current AP (in a simplified terms) "hey AP, i'm leaving"


... but it doesn't explain how to do this, hence the questions : shouldn't `wifi_station_disconnect` do this ? and how to properly disconnect if it doesn't ?

Thanks.

Re: How to properly disconnect an ESP8266 from AP

PostPosted: Mon Mar 16, 2020 9:12 am
by Ape21
Try to unplug if the command is not disconnecting it.

Re: How to properly disconnect an ESP8266 from AP

PostPosted: Mon Mar 16, 2020 11:58 pm
by sharkx
Ape21 wrote:Try to unplug if the command is not disconnecting it.

Very funny...