Fixed language code

pull/41/head
Hieromon Ikasamo 6 years ago
parent 0e1a8cc3c7
commit 43bb6d2c12
  1. 2
      mkdocs/apiconfig.md
  2. 2
      mkdocs/apiextra.md
  3. 4
      mkdocs/basicusage.md
  4. 2
      mkdocs/examples.md
  5. 2
      mkdocs/faq.md
  6. 2
      mkdocs/gettingstarted.md

@ -252,7 +252,7 @@ Set the subnetmask when using static IP address.
## <i class="fa fa-code"></i> AutoConnectConfig example ## <i class="fa fa-code"></i> AutoConnectConfig example
```arduino ```cpp
AutoConenct Portal; AutoConenct Portal;
AutoConenctConfig Config("", "passpass"); // SoftAp name is determined at runtime AutoConenctConfig Config("", "passpass"); // SoftAp name is determined at runtime
Config.apid = ESP.hostname(); // Retrieve host name to SotAp identification Config.apid = ESP.hostname(); // Retrieve host name to SotAp identification

@ -16,7 +16,7 @@ To reference the icon, use the **AUTOCONNECT_LINK** macro in the sketch. It expa
</dl> </dl>
!!! note "Usage" !!! note "Usage"
```arduino ```cpp
String html = "<html>"; String html = "<html>";
html += AUTOCONNECT_LINK(BAR_32); html += AUTOCONNECT_LINK(BAR_32);
html += "</html>"; html += "</html>";

@ -47,13 +47,13 @@ Replacement the **handleClient** method is not indispensable. AutoConnect can st
[Two options](#esp8266webserver-hosted-or-parasitic) are available for [AutoConnect constructor](api.md#constructors). [Two options](#esp8266webserver-hosted-or-parasitic) are available for [AutoConnect constructor](api.md#constructors).
```arduino ```cpp
AutoConnect VARIABLE(&ESP8266WebServer); // For ESP8266 AutoConnect VARIABLE(&ESP8266WebServer); // For ESP8266
AutoConnect VARIABLE(&WebServer); // For ESP32 AutoConnect VARIABLE(&WebServer); // For ESP32
``` ```
or or
```arduino ```cpp
AutoConnect VARIABLE; AutoConnect VARIABLE;
``` ```

@ -82,7 +82,7 @@ The last key you need is the **User API Key** and can be confirmed it in the use
The complete code of the sketch is [mqttRSSI.ino](https://github.com/Hieromon/AutoConnect/blob/master/examples/mqttRSSI/mqttRSSI.ino) in the [AutoConnect repository](https://github.com/Hieromon/AutoConnect). Replace the following #define in a sketch with **User API Key**, **Write API Key** and **Channel ID**. After Keys updated, compile the sketch and upload it. The complete code of the sketch is [mqttRSSI.ino](https://github.com/Hieromon/AutoConnect/blob/master/examples/mqttRSSI/mqttRSSI.ino) in the [AutoConnect repository](https://github.com/Hieromon/AutoConnect). Replace the following #define in a sketch with **User API Key**, **Write API Key** and **Channel ID**. After Keys updated, compile the sketch and upload it.
```arduino ```cpp
#define MQTT_USER_KEY "****************" // Replace to User API Key. #define MQTT_USER_KEY "****************" // Replace to User API Key.
#define CHANNEL_ID "******" // Replace to Channel ID. #define CHANNEL_ID "******" // Replace to Channel ID.
#define CHANNEL_API_KEY_WR "****************" // Replace to the write API Key. #define CHANNEL_API_KEY_WR "****************" // Replace to the write API Key.

@ -15,7 +15,7 @@ Maybe it is successfully connected at the **first WiFi.begin**. ESP8266 remember
The saved SSID would be cleared by *WiFi.disconnect()* with WIFI_STA mode. If you do not want automatic reconnection, you can erase the memorized SSID with the following simple sketch. The saved SSID would be cleared by *WiFi.disconnect()* with WIFI_STA mode. If you do not want automatic reconnection, you can erase the memorized SSID with the following simple sketch.
```arduino ```cpp
#include <ESP8266WiFi.h> #include <ESP8266WiFi.h>
void setup() { void setup() {

@ -2,7 +2,7 @@
Open the Arduino IDE, write the following sketch and upload it. The feature of this sketch is that the SSID and Password are not coded. Open the Arduino IDE, write the following sketch and upload it. The feature of this sketch is that the SSID and Password are not coded.
```arduino ```cpp
#include <ESP8266WiFi.h> // Replace with WiFi.h for ESP32 #include <ESP8266WiFi.h> // Replace with WiFi.h for ESP32
#include <ESP8266WebServer.h> // Replace with WebServer.h for ESP32 #include <ESP8266WebServer.h> // Replace with WebServer.h for ESP32
#include <AutoConnect.h> #include <AutoConnect.h>

Loading…
Cancel
Save