![]() I try to assist the user to conenct to the right wifi (or even turn wifi on) with the Settings.Panel.I try to verify if the user is currently connected to the right wifi.Note that most modern routers support dynamic DNS service, such as, which eliminates the need to remember your external IP. Please refer to your router’s user manual. I fallback to Settings.ACTION_WIFI_ADD_NETWORKS where possible To do so, you need to find out the external IP (WAN IP) and forward Port 80 to OpenSprinkler’s IP address. ![]() proper port forwarding and use of the WAN IP within the application or by using a VPN. If the user is not connected to the right wifi I would try to use the _WIFI action to let the user to connect to the right wifi Download OpenSprinkler 2.2.4 and all version history for Android.However the ConnectivityManager API don't return the actual SSID, that drives me crazy. To do so I already own the permissions ACCESS_WIFI_STATE, ACCESS_NETWORK_STATE, ACCESS_COARSE_LOCATION and ACCESS_FINE_LOCATION. I need to verify if the steps before worked and the user is actually connected to the desired wifi.On Android 11+ I can fallback to the Settings.ACTION_WIFI_ADD_NETWORKS intent which can always add Wifis (with the downside that the user can share the wifi password). ![]() On Android 10 I can just check if I'm connected with the right wifi, well at least theoretically (see step 7).
0 Comments
Leave a Reply. |