A Disconnect button to annoy people?

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
pgielen
Normal user
Posts: 8
Joined: 25 May 2019, 10:13

A Disconnect button to annoy people?

#1 Post by pgielen » 25 May 2019, 18:03

When trying to make my Wemos D1 mini (running on ESPEasy 20190511), connect to another Wifi network, I pushed the DISCONNECT button in the web-interface. As a result, the device disconnected, but did not connect to anything anymore after that.

Obviously, without a web-interface, you can't reconnect! I tried a soft reset, factory reset (D3 to GND), reflashing the blank and next the latest firmware image (20190523), but just couldn't get it to work anymore. It cost me an hour until I just tried re-installing firmware version 20190511. After that, I could re-enter all the settings.

The re-installation problems may or may not have something to do with firmware version 20190523, but why is the DISCONNECT button even there in the interface, when the only purpose it seems to have is to annoy people? I'd label it: 'Don't push this button!' (probably only to the effect that more people will give it a try ;) .

User avatar
grovkillen
Core team member
Posts: 3284
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: A Disconnect button to annoy people?

#2 Post by grovkillen » 25 May 2019, 19:44

You may want to use it to enter AP mode. If it didn't we might have a bug.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

User avatar
ThomasB
Normal user
Posts: 406
Joined: 17 Jun 2018, 20:41
Location: USA

Re: A Disconnect button to annoy people?

#3 Post by ThomasB » 26 May 2019, 04:43

I suspect this may be a bug. Please check the Command_Wifi_Disconnect() function in WiFi.h; There is a chance it will erase the SSID and password from WiFi STA.

Here is some info about preventing a disconnect's SSID erase: https://github.com/tzapu/WiFiManager/is ... -272458858

The Tools=>Disconnect feature is intended to *temporarily* disconnect STA mode and enable AP mode. But perhaps it can't do that as-is. Or maybe it can; I haven't tried it myself since I don't want to risk bricking one of my devices.

- Thomas

TD-er
Core team member
Posts: 1656
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: A Disconnect button to annoy people?

#4 Post by TD-er » 28 May 2019, 10:23

I have used that button myself a lot.
For example I use it myself to test disconnect events and trying to reproduce reported issues.
It is indeed a temporary disconnect, so it will be forced to try and reconnect.
If there is no known AP available, it should start AP mode for setup.

One of the first lines in ESPeasy setup function is about disabling the WiFi persistent mode.
Meaning it should not try to write the wifi connection parameters to flash every time (and thus killing the flash)
It is for sure not intended to lock out a user and I have not seen it do that.
If it would have happened here, I would for sure have fixed that (or removed it), since I also do not like to be annoyed :)

User avatar
ThomasB
Normal user
Posts: 406
Joined: 17 Jun 2018, 20:41
Location: USA

Re: A Disconnect button to annoy people?

#5 Post by ThomasB » 28 May 2019, 17:02

@TD-er, thank you for calming my worries. @Everyone, ignore my remarks.

- Thomas

Post Reply

Who is online

Users browsing this forum: No registered users and 23 guests