File tree Expand file tree Collapse file tree 4 files changed +10
-10
lines changed Expand file tree Collapse file tree 4 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ See more at http://blog.squix.ch
3030
3131#define MAX_WEATHER_ALERTS 6 // The maximum number of concurrent weather alerts supported by the library
3232
33- struct WGAlert {
33+ typedef struct WGAlert {
3434 String activeAlerts;
3535 String activeAlertsMessage;
3636 bool activeAlertsMessageTrunc;
@@ -40,7 +40,7 @@ struct WGAlert {
4040 String activeAlertsPhenomena;
4141 String activeAlertsSignificance;
4242 String activeAlertsAttribution;
43- };
43+ } WGAlert ;
4444
4545class WundergroundAlerts : public JsonListener {
4646 private:
Original file line number Diff line number Diff line change @@ -28,15 +28,15 @@ See more at http://blog.squix.ch
2828#include < JsonListener.h>
2929#include < JsonStreamingParser.h>
3030
31- struct WGAstronomy {
31+ typedef struct WGAstronomy {
3232 String moonPctIlum;
3333 String moonAge;
3434 String moonPhase;
3535 String sunriseTime;
3636 String sunsetTime;
3737 String moonriseTime;
3838 String moonsetTime;
39- };
39+ } WGAstronomy ;
4040
4141class WundergroundAstronomy : public JsonListener {
4242 private:
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ See more at http://blog.squix.ch
2828#include < JsonListener.h>
2929#include < JsonStreamingParser.h>
3030
31- struct WGConditions {
31+ typedef struct WGConditions {
3232 String currentTemp;
3333 String windSpeed;
3434 String windDir;
@@ -41,9 +41,9 @@ struct WGConditions {
4141 String feelslike;
4242 String UV;
4343 String observationTime;
44- String date = " - " ;
45- String observationDate = " - " ;
46- };
44+ String date;
45+ String observationDate;
46+ } WGConditions ;
4747
4848class WundergroundConditions : public JsonListener {
4949 private:
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ See more at http://blog.squix.ch
2828#include < JsonListener.h>
2929#include < JsonStreamingParser.h>
3030
31- struct WGForecast {
31+ typedef struct WGForecast {
3232 String forecastIcon;
3333 String forecastTitle;
3434 String forecastLowTemp;
@@ -37,7 +37,7 @@ struct WGForecast {
3737 String forecastMonth;
3838 String forecastText;
3939 String PoP;
40- };
40+ } WGForecast ;
4141
4242class WundergroundForecast : public JsonListener {
4343 private:
You can’t perform that action at this time.
0 commit comments