Vergil Cola
/
MQTTGateway2
Fork of my original MQTTGateway
jsmn/WeatherInfo.h@0:a1734fe1ec4b, 2017-04-08 (annotated)
- Committer:
- vpcola
- Date:
- Sat Apr 08 14:43:14 2017 +0000
- Revision:
- 0:a1734fe1ec4b
Initial commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
vpcola | 0:a1734fe1ec4b | 1 | #ifndef _WEATHER_INFO_H_ |
vpcola | 0:a1734fe1ec4b | 2 | #define _WEATHER_INFO_H_ |
vpcola | 0:a1734fe1ec4b | 3 | |
vpcola | 0:a1734fe1ec4b | 4 | #include "jsmn.h" |
vpcola | 0:a1734fe1ec4b | 5 | #include <string> |
vpcola | 0:a1734fe1ec4b | 6 | |
vpcola | 0:a1734fe1ec4b | 7 | typedef struct { |
vpcola | 0:a1734fe1ec4b | 8 | |
vpcola | 0:a1734fe1ec4b | 9 | std::string weather; |
vpcola | 0:a1734fe1ec4b | 10 | std::string icon; |
vpcola | 0:a1734fe1ec4b | 11 | |
vpcola | 0:a1734fe1ec4b | 12 | float temperature; |
vpcola | 0:a1734fe1ec4b | 13 | float pressure; |
vpcola | 0:a1734fe1ec4b | 14 | float humidity; |
vpcola | 0:a1734fe1ec4b | 15 | } WeatherInfo, *pWeatherInfo; |
vpcola | 0:a1734fe1ec4b | 16 | |
vpcola | 0:a1734fe1ec4b | 17 | int parseweatherinfo(const char * jsonstring, WeatherInfo &); |
vpcola | 0:a1734fe1ec4b | 18 | |
vpcola | 0:a1734fe1ec4b | 19 | #endif |