Fork of my MQTTGateway

Dependencies:   mbed-http

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers WeatherInfo.h Source File

WeatherInfo.h

00001 #ifndef _WEATHER_INFO_H_
00002 #define _WEATHER_INFO_H_
00003 
00004 #include "jsmn.h"
00005 #include <string>
00006 
00007 typedef struct {
00008     
00009     std::string weather;
00010     std::string icon;
00011     
00012     float temperature;
00013     float pressure;
00014     float humidity;    
00015 } WeatherInfo, *pWeatherInfo;
00016 
00017 int parseweatherinfo(const char * jsonstring, WeatherInfo &);
00018 
00019 #endif