Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: NWSWeather.cpp
- Revision:
- 6:cf96f2787a4e
- Parent:
- 4:94dfdc405640
- Child:
- 7:6a06861905f6
--- a/NWSWeather.cpp Mon Apr 21 00:19:38 2014 +0000 +++ b/NWSWeather.cpp Thu May 22 16:10:13 2014 +0000 @@ -16,7 +16,7 @@ // #include "NWSWeather.h" -//#define DEBUG "NWS " +#define DEBUG "NWS " // ... // INFO("Stuff to show %d", var); // new-line is automatically appended // @@ -90,6 +90,7 @@ NWSWeather::NWSReturnCode_T NWSWeather::get(const char * site, int responseSize) { + HTTPClient http; NWSReturnCode_T retCode = nomemory; char *url = NULL; char *message = (char *)malloc(responseSize); @@ -112,6 +113,7 @@ retCode = noerror; // redirection that was not satisfied. break; } else { + INFO("wx get %d bytes.\r\n", strlen(message)); ParseWeatherXML(message); retCode = noerror; break;