Fixed typos.

pull/83/head
Hieromon Ikasamo 6 years ago
parent 55333406ab
commit 617576969e
  1. 9
      mkdocs/achandling.md

@ -156,10 +156,10 @@ For example, to enable the submit button only when the ESP module is connected t
#include <ESP8266WebServer.h> #include <ESP8266WebServer.h>
#include <AutoConnect.h> #include <AutoConnect.h>
static const char AUX[] PROGMEM = R(" static const char AUX[] PROGMEM = R"(
{ {
"name" : "aux",
"uri" : "/aux", "uri" : "/aux",
"title" : "Aux.",
"menu" : true, "menu" : true,
"element" : [ "element" : [
{ {
@ -170,16 +170,17 @@ static const char AUX[] PROGMEM = R("
{ {
"name": "send", "name": "send",
"type": "ACSubmit", "type": "ACSubmit",
"value": "SEND",
"uri": "/send" "uri": "/send"
} }
] ]
} }
"); )";
AutoConnect portal; AutoConnect portal;
AutoConnectAux page; AutoConnectAux page;
String onPage(AutoConectAux& aux, PageArgument& args) { String onPage(AutoConnectAux& aux, PageArgument& args) {
AutoConnectSubmit& send = aux["send"].as<AutoConnectSubmit>(); AutoConnectSubmit& send = aux["send"].as<AutoConnectSubmit>();
if (WiFi.isConnected()) if (WiFi.isConnected())
send.enable = (WiFi.getMode() == WIFI_STA); send.enable = (WiFi.getMode() == WIFI_STA);

Loading…
Cancel
Save