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

WiFi Health Tool #117

Open
bplattenburg opened this issue Aug 30, 2024 · 1 comment
Open

WiFi Health Tool #117

bplattenburg opened this issue Aug 30, 2024 · 1 comment

Comments

@bplattenburg
Copy link
Member

Add a new tool to check the health of the local WiFi network. This includes both a UI and a HealthMetricProvider implementation. We should be able to leverage Android's WiFiInfo and related code to get the data.

This tool gets the values for first whether WiFi is connected, and if it is the ssid, bssid (the specific access point, useful to see if a single AP is overloaded), and signalStrength (based on rssi) of the connected network.

The UI simply displays all these values.

The HealthMetricProvider always provides the same connected boolean, and if connected the ssid, bssid, and signalStrength as the UI.

Its 'healthy boolean is somewhat configurable:

  • if the device is not connected to WiFi it is always unhealthy
  • If the ssid does not match an optional configuration value of "expectedSSID", it is unhealthy (covers enterprise scenarios where the customer wants to validate the devices are on the correct WiFi with the other peers).
  • If the signalStrength is below an optional configured minimum value.

Open questions - should we scale the rssi into a 0-1 scale to match how Apple does it so that these can more easily be compared across platforms? Sync with development of getditto/DittoSwiftTools#148

@bplattenburg
Copy link
Member Author

We may not be able to scale signalStrength to match what Apple does, if we're not confident we can create a truly comparable metric, just use raw rssi instead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant