I have fully implemented the Calling for weather data and Processing it into usable data into my desired program. Now I am having issues with incomplete data coming across in response to the HTTP GET request.
A full response consists of 1 string of HTTP/1.0 200 OK<CR><LF>, followed by 4 strings of data, 3 at 1024 bytes, and the last one a little less.
I call for data every 3 minutes (well within terms of API license)
I always get a 200 OK response.
Sometimes, maybe 1 or 2 times an hour, I receive all the data.
The rest of the time I get partial data, either the first string is about 1000 bytes and then nothing else, or first string is 1024 bytes, and the second is a partial, maybe 500 bytes.
My program is basically: If .InQueue > 0, I do a STREAMIN (1). Next STAGE. If .InQueue > 0 I do a STREAMIN (2). Repeat as needed.
Any idea where to be looking here? Are my STREAMIN's too close together, timing wise?