Get weather Information
Diff: WeatherInfo.cpp
- Revision:
- 0:6d53d6d34ac3
- Child:
- 1:8655f1720450
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/WeatherInfo.cpp Sat Jun 27 10:34:38 2015 +0000 @@ -0,0 +1,23 @@ +#include <mbed.h> +#include <string> +#include "WeatherInfo.h" +#include "WeatherHacks.h" + +WeatherInfo::WeatherInfo(enum WeatherInfoSource s) { + source = s ; + WH_init() ; +} ; + +WeatherInfo::~WeatherInfo(){ } ; + +bool WeatherInfo::getInfo(void) +{ + switch(source) { + case WEATHER_HACKS: + WH_getInfo() ; + break ; + default: + return false ; + } + return true ; +} \ No newline at end of file