Vergil Cola
/
MQTTGatewayK64
Fork of my MQTTGateway
Diff: jsmn/WeatherInfo.h
- Revision:
- 0:f1d3878b8dd9
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jsmn/WeatherInfo.h Sat Apr 08 14:45:51 2017 +0000 @@ -0,0 +1,19 @@ +#ifndef _WEATHER_INFO_H_ +#define _WEATHER_INFO_H_ + +#include "jsmn.h" +#include <string> + +typedef struct { + + std::string weather; + std::string icon; + + float temperature; + float pressure; + float humidity; +} WeatherInfo, *pWeatherInfo; + +int parseweatherinfo(const char * jsonstring, WeatherInfo &); + +#endif \ No newline at end of file