Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skipping local connections, when WiFi name cannot be read #3414

Open
dilyanpalauzov opened this issue Jun 5, 2023 · 2 comments
Open

Skipping local connections, when WiFi name cannot be read #3414

dilyanpalauzov opened this issue Jun 5, 2023 · 2 comments
Labels
enhancement Indicates new feature requests

Comments

@dilyanpalauzov
Copy link
Contributor

I have set up in the Local connections “Restrict access to these Wi-Fi networks”.

I do not understand what is the purpose of the “Restrict” toggle - if there are network names, then openHAB-Android shall use the local connection, only if the WiFi networks have one of the provided names. Just the presence of any Wi-Fi network name implies restrcting connections to these names.

Apart from this, if the Location service is turned globally off, the applications cannot read the names of the Wi-Fi networks. In these cases openhab-Android does not try to connect to the local connections and uses the global connection.

I think, when openhab-Android does not know the names of the WiFi networks, then it shall use try the local connection.

@dilyanpalauzov dilyanpalauzov added the enhancement Indicates new feature requests label Jun 5, 2023
@mueller-ma
Copy link
Member

Entering a SSID makes the app switch the primary server when you connect to a specified Wi-Fi. There might be cases where servers are reachable over multiple SSIDs, e.g. router with 2.4 and 5 GHz with different names or two houses being connected over VPN.

I think, when openhab-Android does not know the names of the WiFi networks, then it shall use try the local connection.

That could lead to a connection to a wrong (not-openhab) server, especially since local IP addresses aren't unique.

@dilyanpalauzov
Copy link
Contributor Author

My understand of this function is, that it works as speed-up. If the application knows that in the current WLAN, based on its name, it cannot connect to the local instance, it does not try to the local system, and connects faster to the remove address.

If the application does not know the name of the Wi-Fi network, then the speed up does not apply: it first tryes to connect to the local instance, waits until it fails and the connects to the remote instance.

@dilyanpalauzov dilyanpalauzov changed the title Skiping local connections, when WiFi name cannot be read Skipping local connections, when WiFi name cannot be read Jun 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Indicates new feature requests
Projects
None yet
Development

No branches or pull requests

2 participants