Fork of my MQTTGateway

Dependencies:   mbed-http

Committer:
vpcola
Date:
Sat Apr 08 14:45:51 2017 +0000
Revision:
0:f1d3878b8dd9
Initial commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
vpcola 0:f1d3878b8dd9 1 #ifndef _WEATHER_INFO_H_
vpcola 0:f1d3878b8dd9 2 #define _WEATHER_INFO_H_
vpcola 0:f1d3878b8dd9 3
vpcola 0:f1d3878b8dd9 4 #include "jsmn.h"
vpcola 0:f1d3878b8dd9 5 #include <string>
vpcola 0:f1d3878b8dd9 6
vpcola 0:f1d3878b8dd9 7 typedef struct {
vpcola 0:f1d3878b8dd9 8
vpcola 0:f1d3878b8dd9 9 std::string weather;
vpcola 0:f1d3878b8dd9 10 std::string icon;
vpcola 0:f1d3878b8dd9 11
vpcola 0:f1d3878b8dd9 12 float temperature;
vpcola 0:f1d3878b8dd9 13 float pressure;
vpcola 0:f1d3878b8dd9 14 float humidity;
vpcola 0:f1d3878b8dd9 15 } WeatherInfo, *pWeatherInfo;
vpcola 0:f1d3878b8dd9 16
vpcola 0:f1d3878b8dd9 17 int parseweatherinfo(const char * jsonstring, WeatherInfo &);
vpcola 0:f1d3878b8dd9 18
vpcola 0:f1d3878b8dd9 19 #endif