From 788c16c4cc774658033fdfd60e8a2c289a22983f Mon Sep 17 00:00:00 2001 From: Mike Beattie Date: Fri, 23 Mar 2012 08:42:15 +1300 Subject: Begin adding #defines for strings Signed-off-by: Mike Beattie --- HouseControl.ino | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/HouseControl.ino b/HouseControl.ino index d76daf4..42eae68 100644 --- a/HouseControl.ino +++ b/HouseControl.ino @@ -121,6 +121,16 @@ time_t lastNTPtime = 0; //Server telnetServer(23); WebServer httpServer("", 80); +/*********************************************************************************/ +/* Globally used strings */ + +#define JSON_HEADER "{\"" +#define JSON_FOOTER "\"}" + +#define JSON_NAME_START "\", \"" +#define JSON_VALUE_START "\":\"" + + /*********************************************************************************/ /* Utility functions */ -- cgit v1.2.3