Hi,
I need to make two json requests, i.e.
Comm.makeJsonRequest("api.openweathermap.org/.../weather",
{"lat"=>latLon[0].toFloat(), "lon"=>latLon[1].toFloat()}, {}, method(:onReceive));
Comm.makeJsonRequest("api.openweathermap.org/.../daily",
{"lat"=>latLon[0].toFloat(), "lon"=>latLon[1].toFloat(),"cnt"=>"5"}, {}, method(:onReceiveForecastDaily));
But I'm having trouble, the 1st one seems to get called and returns but the 2nd one doesn't. I'm still investigating why but just wondered if this is OK or if there's a better way?
Is it OK to call them one after the other? I did put the second call in the onReceive method of the 1st one but that didn't help.
Ta.