iOS Question download without stop?

cloner7801

Active Member
Licensed User
Longtime User
Hi

I have a api to get led status
for example I use this sub :

B4X:
Sub t_tick
    For i=0 To clv1.GetSize-1 'custom list view items

                getLed(clv1.GetPanel(i))  'this is find tag

    Next
End Sub


Sub getLed(Parent As Panel) As View

For Each v As View In Parent.GetAllViewsRecursive

Dim tagname As String

tagname = v.Tag

  If v Is ImageView And tagname.Contains("http") Then getLed2(v.Tag) ' every imageview hast api address

Next

'Log("View not found: " & Name)

ReturnNull

EndSub



Sub getLed2(tag As String)


ht.Download(tag)

ht.JobName =tag


EndSub

And I put getLed sub in timer and I check leds status every 5second

but !

It run burst and I disable last download job

for example at first it want to downlaod http://192.168.1.19/status=1 and when the second one call (http://192.168.1.19/status=2) the first one stop and in jobdone I cant get the first led status


How can I put a stop time or pause time between jobs?
 
Top