Sub TestConnection
Dim Connect As HttpJob
Connect.Initialize("Connect", Me)
Dim txtconn As String
txtconn = "https://www.xxx.com.br/check.php?id=" & Tracker.imei
Connect.Download(txtconn)
Wait For (Connect) JobDone(Connect As HttpJob)
If Connect.Success Then
Dim act As String = Connect.GetString
Log("CONN "& act)
If (act = "ok") Then
Tracker.temnet = "N: Ok"
isPRO = 0
Log("Is Ok") < ----not log
End If
If act = "okP" Then
isPRO = 1
Log("Pro")
End If
If (act = "inativo") Then
Log("Inativo")
End If
End If
Connect.Release
End Sub