Android Question check WiFi

davelt99

Member
Licensed User
Longtime User
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.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…