|
Post by darenbessinger on Jan 31, 2018 13:22:46 GMT -8
Hello,
I am wanting to have the Board send additional information by adding another aREST function. While trying understand how the code works as a whole I saw that it seems to be sending the information in the Utils.h file but while working backwards I can not figure out how variables like rainTotal are sent, with them only being mentioned and changed in Utils.h but never initialized. Is there a library that I'm missing or am I just completely off the mark while trying to figure this out.
|
|
|
Post by SDL on Feb 4, 2018 19:43:46 GMT -8
Hmm. I answered this a couple of days ago and it didn't stick. Irritating.
For adding variables, just add a line in the SDL_ESP8266_WeatherPlus.ino file with the other variables.
Above this line (putting in your own name and variable)
rest.variable("OurWeatherTime", &RestTimeStamp);
Don't go wahoo with adding tons of variables without looking at the maximums in the aRest files.
BP
|
|