mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-19 23:22:16 +03:00
Merge pull request #1113 from esp8266/doc-formatting-fix
Documentation updates
This commit is contained in:
commit
abd98f1ff8
@ -127,9 +127,7 @@ Returns *true* if a file with given path exists, *false* otherwise.
|
||||
SPIFFS.openDir(path)
|
||||
```
|
||||
|
||||
Opens a directory given its absolute path. Returns a *Dir* object. To check if
|
||||
directory was opened successfully, use the boolean operator, similar to opening
|
||||
a file.
|
||||
Opens a directory given its absolute path. Returns a *Dir* object.
|
||||
|
||||
### remove
|
||||
|
||||
|
@ -121,8 +121,9 @@ Instructions below demonstrate how to configure both [Classic OTA](#classic-ota-
|
||||
2. Now prepare the sketch and configuration for the upload over a serial port.
|
||||
- Start Arduino IDE and load sketch DNS_SD_Arduino_OTA.ino available under File > Examples > ESP8266mDNS
|
||||

|
||||
|
||||
**Note:** This sketch is available only for 1.6.5-947-g39819f0 (of July 23, 2015) and 1.6.5-1160-gef26c5f (of Sep 30, 2015) versions of platform packages installed in Arduino IDE using https://github.com/esp8266/Arduino#installing-with-boards-manager. It was removed in [#980](https://github.com/esp8266/Arduino/pull/980) from GitHub repository.
|
||||
- Update ssid and pass in the sketch so the module can join your Wi-Fi network
|
||||
- Update SSID and password in the sketch so the module can join your Wi-Fi network
|
||||

|
||||
- Configure upload parameters as below (you may need to adjust configuration if you are using a different module):
|
||||

|
||||
@ -133,7 +134,7 @@ Instructions below demonstrate how to configure both [Classic OTA](#classic-ota-
|
||||
|
||||
4. Only if module is connected to network, after a couple of seconds, the esp8266-ota port will show up in Arduino IDE:
|
||||
|
||||

|
||||

|
||||
|
||||
5. Now get ready for your first OTA upload by changing configuration settings as follows:
|
||||
|
||||
@ -145,7 +146,7 @@ Instructions below demonstrate how to configure both [Classic OTA](#classic-ota-
|
||||
|
||||

|
||||
|
||||
**Note** To be able to upload your sketch over and over again using OTA, you need to embed OTA routines inside. Please use DNS_SD_Arduino_OTA.ino as an example.
|
||||
**Note:** To be able to upload your sketch over and over again using OTA, you need to embed OTA routines inside. Please use DNS_SD_Arduino_OTA.ino as an example.
|
||||
|
||||
|
||||
#### ArduinoOTA
|
||||
@ -217,15 +218,21 @@ You can use another module if it meets “Flash chip size is 2x the size of the
|
||||
- Start Arduino IDE and load sketch WebUpdater.ino available under File > Examples > ESP8266HTTPUpdateServer.
|
||||
- Update ssid and pass in the sketch so the module can join your Wi-Fi network.
|
||||
- Open File > Preferences, look for “Show verbose output during:” and check out “compilation” option.
|
||||
|
||||

|
||||
|
||||
**Note:** This setting will be required in step 5 below. You can uncheck this setting afterwards.
|
||||
|
||||
3. Upload sketch (Ctrl+U). Once done open Serial Monitor (Ctrl+Shift+M) and check if you see the following message displayed, that contains url for OTA update.
|
||||
|
||||

|
||||
**Note:** Such message will be shown only after module successfully joins network and is ready for an OTA upload:
|
||||
|
||||
**Note:** Such message will be shown only after module successfully joins network and is ready for an OTA upload.
|
||||
|
||||
4. Now open web browser and enter the url provided on Serial Monitor, i.e. http://esp8266-webupdate.local/update. Once entered, browser should display a form like below that has been served by your module. The form invites you to choose a file for update.
|
||||
|
||||

|
||||
|
||||
**Note:** If entering “http://esp8266-webupdate.local/update” does not work, try replacing “esp8266-webupdate” with module’s IP address. For example, if your module IP is “192.168.1.100” then url should be “http://192.168.1.100/update”. This workaround is useful in case the host software installed in step 2 does not work. If still nothing works and there are no clues on Serial Monitor, try to diagnose issue by opening provided url in Google Chrome, pressing F12 and checking contents of “Console” and “Network” tabs. Chrome provides some advanced logging on these tabs.
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user