diff options
-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(); |