From abc10ff02ee62e61db45ac2a7afd98c870a0abd3 Mon Sep 17 00:00:00 2001 From: Leonie <135235065+DenialOfIntelligence@users.noreply.github.com> Date: Tue, 31 Oct 2023 12:09:50 +0100 Subject: [PATCH] Improve formatting and Spelling --- simple_web/explanation.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/simple_web/explanation.md b/simple_web/explanation.md index dd50798..fc34052 100644 --- a/simple_web/explanation.md +++ b/simple_web/explanation.md @@ -12,16 +12,16 @@ WiFi.begin(ssid, password); return; } ``` -Start the WIFI with `WiFi.begin(ssid, password);` and wait for connection +Start the WIFI with `WiFi.begin(ssid, password);` and wait for connection. ``` server.on("/", HTTP_GET, [](AsyncWebServerRequest *request){ request->send(200, "text/html", "Turn the LED ONTurn the LED OFF"); }); ``` -`server.on` Defines an Endpoint for a request (e.g /index.html) +`server.on` Defines an endpoint for a request (e.g /index.html) -`request->send(200, "text/html", " ");` on Request answer with 200 in the format text/html with this string +`request->send([..]"[..]");` on Request answer with 200 in the format text/html with this string ``` server.on("/on", HTTP_GET, [](AsyncWebServerRequest *request){