davelt99 Member Licensed User Longtime User Mar 30, 2017 #1 I'm trying to check the availability and strength of WiFi: <code> if checkWiFi then Job1.Initialize("Job1",Me) Job1.PostString(sURL,"") end if sub checkWifi as boolean Dim wifiTest As HttpJob wifiTest.Initialize("wifiTest", Me) wifiTest.Download("http://myServerAddress.com/testWiFi.txt") if bWiFi then return true else return false end if end sub </code> The success or failure of Job.Success in JobDone sets the global boolean variable bWiFi. My problem is: the download doesn't have a chance to get to JobDone before the test for bWiFi in sub CheckWiFi. Any help would be greatly appreciated.
I'm trying to check the availability and strength of WiFi: <code> if checkWiFi then Job1.Initialize("Job1",Me) Job1.PostString(sURL,"") end if sub checkWifi as boolean Dim wifiTest As HttpJob wifiTest.Initialize("wifiTest", Me) wifiTest.Download("http://myServerAddress.com/testWiFi.txt") if bWiFi then return true else return false end if end sub </code> The success or failure of Job.Success in JobDone sets the global boolean variable bWiFi. My problem is: the download doesn't have a chance to get to JobDone before the test for bWiFi in sub CheckWiFi. Any help would be greatly appreciated.
dibb3386 Member Licensed User Longtime User Mar 30, 2017 #2 See here for availability https://www.b4x.com/android/forum/threads/utility-code-getwifiname.26174/#post151429 Upvote 0
See here for availability https://www.b4x.com/android/forum/threads/utility-code-getwifiname.26174/#post151429