Get weather Information

WeatherInfo.cpp

Committer:
takashikojo
Date:
2015-06-27
Revision:
0:6d53d6d34ac3
Child:
1:8655f1720450

File content as of revision 0:6d53d6d34ac3:

#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 ;
}