You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -77,12 +78,28 @@ Since jumper IO0JP is tied to GPIO0, which is PIN 21, you'll have to ground it b
77
78
78
79
UART pins for programming and serial I/O are GPIO1 (TXD, pin 3) and GPIO3 (RXD, pin 4).
79
80
80
-
Get the board schematics [here](https://github.com/OLIMEX/ESP8266/blob/master/HARDWARE/MOD-WIFI-ESP8266-DEV/MOD-WIFI-ESP8266-DEV_schematic.pdf)
81
+
You can find the board schematics [here](https://github.com/OLIMEX/ESP8266/blob/master/HARDWARE/MOD-WIFI-ESP8266-DEV/MOD-WIFI-ESP8266-DEV_schematic.pdf)
81
82
82
83
## Olimex MOD-WIFI-ESP8266
83
84
84
85
This is a stripped down version of the above. Behaves identically in terms of jumpers but has less pins readily available for I/O. Still 2 MB of SPI flash.
85
86
87
+
## Olimex ESP8266-EVB
88
+
89
+
It's a Olimex MOD-WIFI-ESP8266-DEV module installed on the headers of a development board which features some breakout connectors, a button (GPIO0) and a relay (GPIO5).
90
+
91
+
Programming is pretty straightforward: the board is supported in the Arduino IDE after [installing it via the Board Manager](https://github.com/esp8266/Arduino#installing-with-boards-manager). To download a program you just have to connect GND/RX/TX from a serial/USB adapter to the UEXT connector and press the only button before applying power to enter UART mode.
92
+
93
+
Don't connect 5V from the serial/USB adapter to the board or you won't be able to power cycle it for UART mode.
94
+
95
+
You can find the board schematics [here](https://github.com/OLIMEX/ESP8266/blob/master/HARDWARE/ESP8266-EVB/ESP8266-EVB_Rev_A.pdf).
96
+
97
+
[This guide](https://www.olimex.com/Products/IoT/ESP8266-EVB/resources/ESP8266-EVB-how-to-use-Arduino.pdf) is also useful for the first setup, since it contains the UEXT connector pinout.
98
+
99
+
Board variants include:
100
+
* ESP8266-EVB-BAT: comes with built-in LiPo charger and step-up converter
101
+
* ESP8266-EVB-BAT-BOX: as above, but enclosd in a plastic box (non-weatherproof)
Copy file name to clipboardExpand all lines: doc/libraries.md
+1
Original file line number
Diff line number
Diff line change
@@ -142,6 +142,7 @@ Libraries that don't rely on low-level access to AVR registers should work well.
142
142
- [Blynk](https://github.com/blynkkk/blynk-library) - easy IoT framework for Makers (check out the [Kickstarter page](http://tiny.cc/blynk-kick)).
- [DHT-sensor-library](https://github.com/adafruit/DHT-sensor-library) - Arduino library for the DHT11/DHT22 temperature and humidity sensors. Download latest v1.1.1 library and no changes are necessary. Older versions should initialize DHT as follows: `DHT dht(DHTPIN, DHTTYPE, 15)`
145
+
- [Encoder](https://github.com/PaulStoffregen/Encoder) - Arduino library for rotary encoders. Version 1.4 supports ESP8266.
145
146
- [NeoPixel](https://github.com/adafruit/Adafruit_NeoPixel) - Adafruit's NeoPixel library, now with support for the ESP8266 (use version 1.0.2 or higher from Arduino's library manager).
146
147
- [NeoPixelBus](https://github.com/Makuna/NeoPixelBus) - Arduino NeoPixel library compatible with ESP8266. Use the "DmaDriven" or "UartDriven" branches for ESP8266. Includes HSL color support and more.
147
148
- [PubSubClient](https://github.com/Imroy/pubsubclient) - MQTT library by @Imroy.
Copy file name to clipboardExpand all lines: doc/ota_updates/ota_updates.md
+35
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,7 @@ title: OTA Update
12
12
*[Application Example](#application-example)
13
13
*[Classic OTA](#classic-ota)
14
14
*[ArduinoOTA](#arduinoota)
15
+
*[Password Protection](#password-protection)
15
16
*[Troubleshooting](#troubleshooting)
16
17
*[Web Browser](#web-browser)
17
18
*[Requirements](#requirements-1)
@@ -228,6 +229,40 @@ IP address: 192.168.1.100
228
229
**Note:** To be able to upload your sketch over and over again using OTA, you need to embed OTA routines inside. Please use BasicOTA.ino as an example.
229
230
230
231
232
+
#### Password Protection
233
+
234
+
Protecting your OTA uploads with password is really straightforward. All you need to do, is to include the following statement in your code:
235
+
236
+
```cpp
237
+
ArduinoOTA.setPassword((constchar *)"123");
238
+
239
+
```
240
+
241
+
Where ``` 123 ``` is a sample password that you should replace with your own.
242
+
243
+
Before implementing it in your sketch, it is a good idea to check how it works using *BasicOTA.ino* sketch available under *File > Examples > ArduinoOTA*. Go ahead, open *BasicOTA.ino*, uncomment the above statement that is already there, and upload the sketch. To make troubleshooting easier, do not modify example sketch besides what is absolutely required. This is including original simple ``` 123 ``` OTA password. Then attempt to upload sketch again (using OTA). After compilation is complete, once upload is about to begin, you should see prompt for password as follows:
244
+
245
+

246
+
247
+
Enter the password and upload should be initiated as usual with the only difference being ``` Authenticating...OK ``` message visible in upload log.
248
+
249
+

250
+
251
+
You will not be prompted for a reentering the same password next time. Arduino IDE will remember it for you. You will see prompt for password only after reopening IDE, or if you change it in your sketch, upload the sketch and then try to upload it again.
252
+
253
+
Please note, it is possible to reveal password entered previously in Arduino IDE, if IDE has not been closed since last upload. This can be done by enabling *Show verbose output during: upload* in *File > Preferences* and attempting to upload the module.
254
+
255
+

256
+
257
+
The picture above shows that the password is visible in log as it is passed to *espota.py* upload script.
258
+
259
+
Another example below shows situation when password is changed between uploads.
260
+
261
+

262
+
263
+
When uploading, Arduino IDE used previously entered password, so the upload failed and that has been clearly reported by IDE. Only then IDE prompted for a new password. That was entered correctly and second attempt to upload has been successful.
264
+
265
+
231
266
#### Troubleshooting
232
267
233
268
If OTA update fails, first step is to check for error messages that may be shown in upload window of Arduino IDE. If this is not providing any useful hints try to upload again while checking what is shown by ESP on serial port. Serial Monitor from IDE will not be useful in that case. When attempting to open it, you will likely see the following:
0 commit comments