Force to choose another accesspoint

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
PieterS
Normal user
Posts: 87
Joined: 27 Mar 2018, 17:18
Location: NL

Force to choose another accesspoint

#1 Post by PieterS » 06 Oct 2023, 19:53

In the past, when I flashed the NodeMCU and I configured ESPeasy, the software chosed to select the router as accesspoint. That device was close to my desk.

But when everything was up and running I decided to mount the NodeMCU in my garage. And than the signalstrengh was worse, even bad.

So last week I bought a accesspoint (wired and powered by POE, TP-Link model EAP235-Wall) and mounted that in my garage, close to the nodemcu. I expected that ESPeasy should be quick.. But even after a reboot no difference at all. Still slow... :? Easpeasy tries to connect to a weak signal, even when there is a very strong signal. :o

Image

This are the results when I do a scan with Tools, Scan..

Image

I am a bit scared to choose the disconnect button in the Tools, Wifi. Could not find any info about that option.

Running ESP_Easy_mega_20230820_energy_ESP8266_4M1M Aug 20 2023 on a NodeMCU 8266
Is it posible to force another source or accesspoint in ESPeasy?

Thanks for any suggestion!

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

Re: Force to choose another accesspoint

#2 Post by TD-er » 06 Oct 2023, 20:01

If you power cycle the ESP, it will 'forget' to which exact AP it was connected.
And thus it is forced to do a WiFi scan and then will sort based on RSSI and connect to the strongest matching one first.

PieterS
Normal user
Posts: 87
Joined: 27 Mar 2018, 17:18
Location: NL

Re: Force to choose another accesspoint

#3 Post by PieterS » 06 Oct 2023, 21:41

Thanks Gijs,

You are right! Again!

I learned: a reboot in ESPEasy is not the same as a power-cycle. :evil:

Unfortunately I tested that option but the accesspoint started later; to slow.

Thnx again

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

Re: Force to choose another accesspoint

#4 Post by TD-er » 06 Oct 2023, 21:50

Just to explain the differences....

The last used AP is being stored in RTC memory.
This memory will survive reboots/crashes and even OTA updates as long as the unit keeps having power.
This is done to make sure a unit will stay on a connection once it is deemed to be "stable" for a while.

After power cycle, this RTC memory is cleared.
Also if a connection is lost for more than 2 times within 5 minutes, it will also clear the last used BSSID from RTC memory and start over doing a full WiFi scan.

PieterS
Normal user
Posts: 87
Joined: 27 Mar 2018, 17:18
Location: NL

Re: Force to choose another accesspoint

#5 Post by PieterS » 06 Oct 2023, 22:02

As I read your explanation; my case was coincidence and bad luck.
Happy with this forum :mrgreen:

Post Reply

Who is online

Users browsing this forum: No registered users and 38 guests