From 59e904362bde73ad38ae3c1b3d716a35e48738aa Mon Sep 17 00:00:00 2001 From: Me No Dev Date: Thu, 7 Jul 2016 22:45:20 +0300 Subject: [PATCH] fix some readme typos --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b092029..55dac78 100644 --- a/README.md +++ b/README.md @@ -57,7 +57,7 @@ To use this library you need to have the latest git versions of either [ESP8266] - Setting a ```Filter``` to the ```Rewrite``` enables to control when to apply the rewrite, decision can be based on request url, http version, request host/port/target host, get parameters or the request client's localIP or remoteIP. - Two filter callbacks are provided: ```ON_AP_FILTER``` to execute the rewrite when request is made to the AP interface, - ```ON_SAT_FILTER``` to execute the rewrite when request is made to the STA interface. + ```ON_STA_FILTER``` to execute the rewrite when request is made to the STA interface. - The ```Rewrite``` can specify a target url with optional get parameters, e.g. ```/to-url?with=params``` ### Handlers and how do they work @@ -66,7 +66,7 @@ To use this library you need to have the latest git versions of either [ESP8266] - Setting a ```Filter``` to the ```Handler``` enables to control when to apply the handler, decision can be based on request url, http version, request host/port/target host, get parameters or the request client's localIP or remoteIP. - Two filter callbacks are provided: ```ON_AP_FILTER``` to execute the rewrite when request is made to the AP interface, - ```ON_SAT_FILTER``` to execute the rewrite when request is made to the STA interface. + ```ON_STA_FILTER``` to execute the rewrite when request is made to the STA interface. - The ```canHandle``` method is used for handler specific control on whether the requests can be handled and for declaring any interesting headers that the ```Request``` should parse. Decision can be based on request method, request url, http version, request host/port/target host and get parameters @@ -693,7 +693,7 @@ void setup(){ void loop(){ if(eventTriggered){ // your logic here //send event "myevent" - client->send("my event content","myevent",millis()); + events.send("my event content","myevent",millis()); } } ```