diff options
author | Mike Beattie <mike@ethernal.org> | 2012-03-22 19:44:49 +1300 |
---|---|---|
committer | Mike Beattie <mike@ethernal.org> | 2012-03-22 19:44:49 +1300 |
commit | 8b6c084eb911b80234bcd4fee6f359d018656a3d (patch) | |
tree | b78d98dfeb8d54eff2a8dbe08120c1ec4d816138 /HouseControl.ino | |
parent | 65ba78eaa17b7b9d3cd297e7c585c689c90941c3 (diff) |
rename json handler... it's json, not ajax.
Signed-off-by: Mike Beattie <mike@ethernal.org>
Diffstat (limited to 'HouseControl.ino')
-rw-r--r-- | HouseControl.ino | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/HouseControl.ino b/HouseControl.ino index 760f695..622ce3d 100644 --- a/HouseControl.ino +++ b/HouseControl.ino @@ -249,7 +249,7 @@ void httpHandler(WebServer &server, WebServer::ConnectionType type, char *url_ta } } -void ajaxHandler(WebServer &server, WebServer::ConnectionType type, char *url_tail, bool tail_complete) { +void jsonHandler(WebServer &server, WebServer::ConnectionType type, char *url_tail, bool tail_complete) { /* for a GET or HEAD, send the standard "it's all OK headers" */ server.httpSuccess("application/json"); @@ -371,7 +371,7 @@ void setup() { NTPSocket.begin(123); httpServer.setDefaultCommand(&httpHandler); - httpServer.addCommand("json", &ajaxHandler); + httpServer.addCommand("json", &jsonHandler); httpServer.addCommand("do", &doHandler); httpServer.begin(); |