tbnobody / OpenDTU

Software for ESP32 to talk to Hoymiles/TSUN/Solenso Inverters
GNU General Public License v2.0
1.69k stars 471 forks source link

Min WIFI signal strength #2116

Open Moony128 opened 2 days ago

Moony128 commented 2 days ago

Is your feature request related to a problem? Please describe.

In situations with overlapping WIFI access points, OpenDTU may choose a weak AP instead of the stronger signal.

Describe the solution you'd like

Please add a setting for the minimum WIFI RSSI level. In case with overlapping WIFI signals, OpenDTU seems to revert to the weaker access point despite a better signal being available.

Describe alternatives you've considered

No response

Additional context

No response

jstammi commented 2 days ago

The openDTU goes with the best RSSI ap being available on connecting. BUT if having chosen one, it will not switch to an ap (re-)appearing ap with better RSSI until power cycling the openDTU (soft-reset/web ui restart is not sufficient at the moment - I just created a PR to at least make a soft-reset/web ui restart sufficient, #618).

Having this: if initially multiple aps being available, the best one is chosen. If that one disappears for any reasons the next best ap is chosen. And openDTU is stick to this. Even with the previous better one coming back.