Get weather Information
WeatherInfo.cpp
- Committer:
- takashikojo
- Date:
- 2015-06-28
- Revision:
- 1:8655f1720450
- Parent:
- 0:6d53d6d34ac3
- Child:
- 2:76b812680942
File content as of revision 1:8655f1720450:
#include <mbed.h> #include <string> #include "WeatherInfo.h" #include "WeatherHacks.h" WeatherInfo::WeatherInfo(enum WeatherInfoSource s) { source = s ; WH_init() ; } ; WeatherInfo::~WeatherInfo(){ } ; void WeatherInfo::setBuff(char *buff, int size) { recvBuff = buff ; recvSize = size ; } bool WeatherInfo::getInfo(void) { switch(source) { case WEATHER_HACKS: WH_getInfo(recvBuff, recvSize) ; break ; default: return false ; } return true ; }