Problems with For loop!

The problem is that the Web_API.Get uses slow asynchronous call. A cycle has worked, as Web_API.Get have not had time for it and, therefore, displayed the latest reading. You will need to modify the algorithm so that the next call to Web_API.Get happened only after the completion of the previous call.

Here it is necessary to use recursion, as Mark showed.

I will think over such a block

1 Like