Skip to content

Update from original #618

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 108 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
108 commits
Select commit Hold shift + click to select a range
f6a78cd
Added support for NodeMCU dev kit v2
May 23, 2015
dee777b
Better sketch size reporting (#314)
igrr May 24, 2015
296307a
add link to arduinoWebSockets
Links2004 May 24, 2015
5604875
Update build_board_manager_package.sh
Testato May 24, 2015
f4ec5c2
Fix max upload size for modwifi and nodemcu (#314)
igrr May 24, 2015
bb462ea
Proper naming of NodeMCU boards, flash map update
igrr May 24, 2015
a965c76
Add API to set the beginning of local ports range for WiFiClient
igrr May 24, 2015
25dba7a
Add NodeMCU 1.0 board to package json
igrr May 24, 2015
0836380
Expose Chip CCompare0 timer
Makuna May 25, 2015
1f2b702
ETS_INTR_ENABLED & ETS_INT_PENDING as inline
Makuna May 25, 2015
11f1368
read the rst reason from the SDK if stored.
Links2004 May 25, 2015
547d6c3
add ESP.eraseESPconfig() to erase the ESP SDK configuration (includin…
Links2004 May 25, 2015
703951b
correct addr
Links2004 May 25, 2015
025a086
Fixed timer bug and cleaned up
Makuna May 25, 2015
99591ed
Update NTPClient.ino
moeur May 26, 2015
f3cd562
Fix windows build
Toshik May 27, 2015
bf3b78f
adds adafruit huzzah to board manager package
toddtreece May 27, 2015
448f09b
adds adafruit huzzah to boards.txt & adds adafruit variant
toddtreece May 27, 2015
ecfaee2
add function to get the MAC / BSSID as String
Links2004 May 28, 2015
b06b511
add missing include #include "ets_sys.h"
Links2004 May 28, 2015
b6fc62f
fix bug #343
Links2004 May 28, 2015
bde1730
Revert "Fixed timer bug and cleaned up"
Makuna May 29, 2015
bb9e584
Revert "ETS_INTR_ENABLED & ETS_INT_PENDING as inline"
Makuna May 29, 2015
0f7800f
Revert "Expose Chip CCompare0 timer"
Makuna May 29, 2015
6cbd0b8
strtok fix
Makuna May 29, 2015
e357a22
Add eboot
igrr May 29, 2015
6eda713
Update esptool to 0.4.5
igrr May 29, 2015
aeb83c8
Fix eboot makefile
igrr May 29, 2015
f265d0f
Update flash layout to use eboot
igrr May 29, 2015
c943b86
Fix max sketch sizes for branded boards
igrr May 29, 2015
e993f4e
Improve I2C waveforms
igrr May 29, 2015
05c68fb
Add staging board manager package (#324)
igrr May 29, 2015
aaff33a
Update board manager package to use esptool 0.4.5
igrr May 29, 2015
db5b63d
Add wakeup pullup and pulldown pin modes
igrr May 29, 2015
11a9f15
Timer0 and Servo library support
Makuna May 29, 2015
fe96580
add higher I2C freqs for 160MHz core clock
May 30, 2015
4c7e951
Use correct variable for sendNTPpacket
thewiep May 31, 2015
6d25f65
reading eboot commands via RTC, flash erase/copy
igrr May 31, 2015
c63dc88
Remove .bss from sketch size calculation
igrr May 31, 2015
650ded4
Fix missing slash
igrr Jun 1, 2015
7dc997b
Fix uboot startup
igrr Jun 1, 2015
a342f92
Leftovers from cherry-pick
igrr Jun 2, 2015
32f4836
Update README.md
igrr Jun 1, 2015
c08b036
register and clock changes
Jun 1, 2015
f6619c8
add PWM Range control
Jun 1, 2015
25ae1db
spi clock does not depend on cpu clock
Jun 1, 2015
8ac9298
Fix SPI Clock Div in TFTv2
boybundit Jun 3, 2015
a32d5dd
double
Jun 3, 2015
259067d
fix pwm
Jun 3, 2015
5aeb375
Update README.md
plinioseniore Jun 4, 2015
cd4a023
Merge pull request #379 from me-no-dev/esp8266-sdk-1.0
igrr Jun 5, 2015
4775fba
Merge pull request #382 from plinioseniore/patch-1
igrr Jun 5, 2015
b9bc98e
Merge pull request #375 from boybundit/tftv2-spi-clock
igrr Jun 5, 2015
8778fa7
Fix typo
igrr Jun 5, 2015
d5788af
Clean up eboot
igrr Jun 5, 2015
323d743
rename EspClass::eraseESPconfig to eraseConfig
igrr Jun 5, 2015
21844e3
Add some headers
igrr Jun 5, 2015
b0d34ab
Add function to update sketch from Stream
igrr Jun 5, 2015
078efcb
fix #386
Links2004 Jun 5, 2015
7b77442
add images
Links2004 Jun 2, 2015
52544aa
add new schematics to README.md
Links2004 Jun 2, 2015
9862bf6
add current note
Links2004 Jun 2, 2015
1ea9d89
improve mode handling for ESP8266WiFiClass::scanNetworks and ESP8266W…
Links2004 Jun 3, 2015
cf57589
fix ILI9341 (define for SPI speed was deleted?)
Links2004 Jun 3, 2015
3d396ad
only call wifi_set_opmode when really needed
Links2004 Jun 3, 2015
580a602
add some infos to Serial Adapter
Links2004 Jun 3, 2015
b4d483d
Add function overload to config to include DNS
chadouming Jun 3, 2015
75b48a8
Include Servo Library in Readme
Makuna Jun 2, 2015
484feb8
edits
Makuna Jun 2, 2015
aa372a7
Remove unnecessary ICACHE_FLASH_ATTR
plinioseniore Jun 4, 2015
3d7352e
added NOT_ON_TIMER and digitalPinToTimer defines to make a liquidcrys…
Jun 6, 2015
2d530a8
Added a DNSServer library
knovoselic Jun 6, 2015
47eecaa
Merge pull request #1 from esp8266/esp8266-sdk-1.0
me-no-dev Jun 8, 2015
b3ff6b5
fix sd example returning bad json on empty folder
Jun 8, 2015
7133a9e
Merge pull request #393 from Duality4Y/esp8266-sdk-1.0
igrr Jun 11, 2015
297df29
Merge pull request #396 from knovoselic/esp8266-sdk-1.0
igrr Jun 11, 2015
d218c4e
Merge pull request #405 from me-no-dev/esp8266-sdk-1.0
igrr Jun 11, 2015
dc31da5
Better handling of wifi disconnect (#231)
igrr Jun 11, 2015
86ab7b9
Fix tcp error handler
igrr Jun 11, 2015
87d11ab
correct sync use
Makuna Jun 11, 2015
6476759
Merge pull request #416 from Makuna/esp8266-sdk-1.0
igrr Jun 11, 2015
bb5cda6
fix example not working on Firefox
Jun 12, 2015
f802bb6
Merge pull request #3 from esp8266/esp8266-sdk-1.0
me-no-dev Jun 12, 2015
6e47228
Merge pull request #419 from me-no-dev/esp8266-sdk-1.0
igrr Jun 13, 2015
683c424
Don't wait for a connection to an AP when we're supposed to be the AP.
peternewman Jun 14, 2015
6061d9b
Fix pin change interrupt handling (#322)
igrr Jun 15, 2015
f0e5905
allow proper content length handling
Jun 15, 2015
5b19f62
Merge pull request #5 from esp8266/esp8266-sdk-1.0
me-no-dev Jun 15, 2015
97e2ded
add SLC Interrupt routines
Jun 15, 2015
b23d6e0
add SLC and I2S register definitions
Jun 16, 2015
f195379
readd wrongly deleted definition
Jun 16, 2015
4c8873f
Update core_esp8266_wiring_analog.c
Testato Jun 18, 2015
b0a840c
add ESP8266WiFiMesh library
jtfell Jun 19, 2015
6145dce
Merge pull request #425 from peternewman/esp8266-sdk-1.0
igrr Jun 19, 2015
8a97666
Added simple HTTP server to DNSServer example
knovoselic Jun 19, 2015
7f29669
Merge pull request #432 from me-no-dev/esp8266-sdk-1.0
igrr Jun 19, 2015
34f1053
Merge pull request #446 from jtfell/esp8266-sdk-1.0
igrr Jun 19, 2015
5deef1b
Added captive portal functionality
knovoselic Jun 19, 2015
44bde71
missing part of class name WiFiMesh -> ESP8266WiFiMesh
reaper7 Jun 19, 2015
4dc1917
ESP8266 Blink example for the blue LED on the ESP-01 module
probonopd Jun 21, 2015
d072f0a
ESP8266 BlinkWithoutDelay
probonopd Jun 21, 2015
704a661
No need to disable the watchdog
probonopd Jun 21, 2015
67b78bd
Use BUILTIN_LED
probonopd Jun 21, 2015
f024ef5
Use BUILTIN_LED
probonopd Jun 21, 2015
2e1484e
Merge pull request #461 from probonopd/patch-1
igrr Jun 26, 2015
d400d31
Merge pull request #450 from reaper7/patch-1
igrr Jun 26, 2015
7faebcd
Merge pull request #448 from knovoselic/dns_server_improvements
igrr Jun 26, 2015
ab9b8e3
Merge pull request #443 from Testato/patch-2
igrr Jun 26, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,3 @@ nbproject
build/macosx/esptool-*-osx.zip

build/macosx/dist/osx-xtensa-lx106-elf.tgz
/hardware/esp8266com/esp8266/tools
97 changes: 73 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Arduino-compatible IDE with ESP8266 support
===========================================

![Linux build status](http://img.shields.io/travis/igrr/Arduino.svg)
[![Linux build status](http://img.shields.io/travis/igrr/Arduino.svg)](https://travis-ci.org/igrr/Arduino)
[![Donate](http://img.shields.io/paypal/donate.png?color=yellow)](https://www.paypal.com/webscr?cmd=_s-xclick&hosted_button_id=4M56YCWV6PX66)

This project brings support for ESP8266 chip to the Arduino environment. ESP8266WiFi library bundled with this project has the same interface as the WiFi Shield library, making it easy to re-use existing code and libraries.
Expand Down Expand Up @@ -102,9 +102,9 @@ This is mostly similar to WiFi shield library. Differences include:
- ```WiFi.RSSI()``` doesn't work
- ```WiFi.printDiag(Serial);``` will print out some diagnostic info
- ```WiFiUDP``` class supports sending and receiving multicast packets on STA interface.
When sending a multicast packet, replace ```udp.beginPacket(addr, port)``` with
When sending a multicast packet, replace ```udp.beginPacket(addr, port)``` with
```udp.beginPacketMulticast(addr, port, WiFi.localIP())```.
When listening to multicast packets, replace ```udp.begin(port)``` with
When listening to multicast packets, replace ```udp.begin(port)``` with
```udp.beginMulticast(WiFi.localIP(), multicast_ip_addr, port)```.
You can use ```udp.destinationIP()``` to tell whether the packet received was
sent to the multicast or unicast address.
Expand All @@ -117,7 +117,7 @@ Four samples are provided for this library.

Library for calling functions repeatedly with a certain period. Two examples included.

It is currently not recommended to do blocking IO operations (network, serial, file) from Ticker
It is currently not recommended to do blocking IO operations (network, serial, file) from Ticker
callback functions. Instead, set a flag inside the ticker callback and check for that flag inside the loop function.

#### EEPROM ####
Expand Down Expand Up @@ -183,28 +183,62 @@ Allows the sketch to respond to multicast DNS queries for domain names like "foo
Currently the library only works on STA interface, AP interface is not supported.
See attached example and library README file for details.

#### DNS server (DNSServer library) ####

Implements a simple DNS server that can be used in both STA and AP modes. The DNS server currently supports only one domain (for all other domains it will reply with NXDOMAIN or custom status code). With it clients can open a web server running on ESP8266 using a domain name, not an IP address.
See attached example for details.

#### Servo ####

This library exposes the ability to control RC (hobby) servo motors. It will support upto 24 servos on any available output pin. By defualt the first 12 servos will use Timer0 and currently this will not interfere with any other support. Servo counts above 12 will use Timer1 and features that use it will be effected.
While many RC servo motors will accept the 3.3v IO data pin from a esp8266, most will not be able to run off 3.3v and will require another power source that matches their specifications. Make sure to connect the grounds between the esp8266 and the servo motor power supply.

#### Other libraries (not included with the IDE)

Libraries that don't rely on low-level access to AVR registers should work well. Here are a few libraries that were verified to work:

- [arduinoWebSockets](https://github.com/Links2004/arduinoWebSockets) - WebSocket Server and Client compatible with esp8266 (RFC6455)
- [aREST](https://github.com/marcoschwartz/aREST) REST API handler library.
- [PubSubClient](https://github.com/Imroy/pubsubclient) MQTT library by @Imroy.
- [DHT11](https://github.com/adafruit/DHT-sensor-library) - initialize DHT as follows: ```DHT dht(DHTPIN, DHTTYPE, 15);```
- [Blynk](https://github.com/blynkkk/blynk-library) - easy IoT framework for Makers (check out the [Kickstarter page](http://tiny.cc/blynk-kick)).
- [DallasTemperature](https://github.com/milesburton/Arduino-Temperature-Control-Library.git)
- [DHT11](https://github.com/adafruit/DHT-sensor-library) - initialize DHT as follows: ```DHT dht(DHTPIN, DHTTYPE, 15);```
- [NeoPixelBus](https://github.com/Makuna/NeoPixelBus) - Arduino NeoPixel library compatible with esp8266.
- [PubSubClient](https://github.com/Imroy/pubsubclient) MQTT library by @Imroy.
- [RTC](https://github.com/Makuna/Rtc) - Arduino Library for Ds1307 & Ds3231 compatible with esp8266.
- [Blynk](https://github.com/blynkkk/blynk-library) - easy IoT framework for Makers (check out the [Kickstarter page](http://tiny.cc/blynk-kick)).
- [Souliss, Smart Home](https://github.com/souliss/souliss) - Framework for Smart Home based on Arduino, Android and openHAB.

#### Upload via serial port ####
Pick the correct serial port.
You need to put ESP8266 into bootloader mode before uploading code.

#### Power Supply ####

For stable use of the ESP8266 a power supply with 3V3 and >= 250mA is required.

* Note
- using Power from USB to Serial is may unstable, they not deliver enough current.

#### Serial Adapter ####

There are many different USB to Serial adapters / boards.

* Note
- for full upload management you need RTS and DTR
- the chip need to have 3V3 TTL (5V may damage the chip)
- not all board have all pins of the ICs as breakout (check before order)
- CTS and DSR are not useful for upload (they are Inputs)

* Working ICs
- FT232RL
- CP2102
- may others (drop a comment)

#### Minimal hardware Setup for Bootloading and usage ####

ESPxx Hardware

| PIN | Resistor | Serial Adapter |
| ------------- | -------- | -------------- |
| ------------- | -------- | -------------- |
| VCC | | VCC (3.3V) |
| GND | | GND |
| TX or GPIO2* | | RX |
Expand All @@ -214,32 +248,49 @@ ESPxx Hardware
| GPIO15* | PullDown | |
| CH_PD | PullUp | |

* Note
* Note
- GPIO15 is also named MTDO
- Reset is also named RSBT or REST (adding PullUp improves the stability of the Module)
- GPIO2 is alternative TX for the boot loader mode

ESP01 example:

![ESP01 connect](https://raw.githubusercontent.com/Links2004/Arduino/esp8266/docs/ESP01_connect.jpg)
###### esp to Serial
![ESP to Serial](https://raw.githubusercontent.com/Links2004/Arduino/esp8266/docs/ESP_to_serial.png)

#### Minimal hardware Setup for Bootloading only ####
ESPxx Hardware

| PIN | Resistor | Serial Adapter |
| ------------- | -------- | -------------- |
| VCC | | VCC (3.3V) |
| GND | | GND |
| TX or GPIO2 | | RX |
| RX | | TX |
| GPIO0 | | GND |
| PIN | Resistor | Serial Adapter |
| ------------- | -------- | --------------- |
| VCC | | VCC (3.3V) |
| GND | | GND |
| TX or GPIO2 | | RX |
| RX | | TX |
| GPIO0 | | GND |
| Reset | | RTS* |
| GPIO15 | PullDown | |
| CH_PD | PullUp | |
| GPIO15 | PullDown | |
| CH_PD | PullUp | |

* Note
* Note
- if no RTS is used a manual power toggle is needed

#### Minimal hardware Setup for running only ####

ESPxx Hardware

| PIN | Resistor | Power supply |
| ------------- | -------- | --------------- |
| VCC | | VCC (3.3V) |
| GND | | GND |
| GPIO0 | PullUp | |
| GPIO15 | PullDown | |
| CH_PD | PullUp | |

###### minimal
![ESP min](https://raw.githubusercontent.com/Links2004/Arduino/esp8266/docs/ESP_min.png)

###### improved stability
![ESP improved stability](https://raw.githubusercontent.com/Links2004/Arduino/esp8266/docs/ESP_improved_stability.png)

### Issues and support ###

Forum: http://www.esp8266.com/arduino
Expand All @@ -259,5 +310,3 @@ Esptool written by Christian Klippel is licensed under GPLv2, currently maintain
ESP8266 core support, ESP8266WiFi, Ticker, ESP8266WebServer libraries were written by Ivan Grokhotkov, [email protected].

[SPI Flash File System (SPIFFS)](https://github.com/pellepl/spiffs) written by Peter Andersson is used in this project. It is distributed under MIT license.


32 changes: 16 additions & 16 deletions build/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -398,13 +398,13 @@


<antcall target="untar">
<param name="archive_file" value="${staging_folder}/esptool-0.4.4-osx.tar.gz" />
<param name="archive_url" value="https://github.com/igrr/esptool-ck/releases/download/0.4.4/esptool-0.4.4-osx.tar.gz" />
<param name="final_folder" value="${staging_folder}/work/${staging_hardware_folder}/esp8266com/esp8266/tools/esptool-0.4.4-osx" />
<param name="archive_file" value="${staging_folder}/esptool-0.4.5-osx.tar.gz" />
<param name="archive_url" value="https://github.com/igrr/esptool-ck/releases/download/0.4.5/esptool-0.4.5-osx.tar.gz" />
<param name="final_folder" value="${staging_folder}/work/${staging_hardware_folder}/esp8266com/esp8266/tools/esptool-0.4.5-osx" />
<param name="dest_folder" value="${staging_folder}/work/${staging_hardware_folder}/esp8266com/esp8266/tools/" />
</antcall>
<move file="${staging_folder}/work/${staging_hardware_folder}/esp8266com/esp8266/tools/esptool-0.4.4-osx/esptool" tofile="${staging_folder}/work/${staging_hardware_folder}/esp8266com/esp8266/tools/esptool" />
<delete dir="${staging_folder}/work/${staging_hardware_folder}/esp8266com/esp8266/tools/esptool-0.4.4-osx/" />
<move file="${staging_folder}/work/${staging_hardware_folder}/esp8266com/esp8266/tools/esptool-0.4.5-osx/esptool" tofile="${staging_folder}/work/${staging_hardware_folder}/esp8266com/esp8266/tools/esptool" />
<delete dir="${staging_folder}/work/${staging_hardware_folder}/esp8266com/esp8266/tools/esptool-0.4.5-osx/" />

</target>

Expand Down Expand Up @@ -673,13 +673,13 @@
</antcall>

<antcall target="untar">
<param name="archive_file" value="${staging_folder}/esptool-0.4.4-linux64.tar.gz" />
<param name="archive_url" value="https://github.com/igrr/esptool-ck/releases/download/0.4.4/esptool-0.4.4-linux64.tar.gz" />
<param name="final_folder" value="${staging_folder}/work/${staging_hardware_folder}/esp8266com/esp8266/tools/esptool-0.4.4-linux64" />
<param name="archive_file" value="${staging_folder}/esptool-0.4.5-linux64.tar.gz" />
<param name="archive_url" value="https://github.com/igrr/esptool-ck/releases/download/0.4.5/esptool-0.4.5-linux64.tar.gz" />
<param name="final_folder" value="${staging_folder}/work/${staging_hardware_folder}/esp8266com/esp8266/tools/esptool-0.4.5-linux64" />
<param name="dest_folder" value="${staging_folder}/work/${staging_hardware_folder}/esp8266com/esp8266/tools/" />
</antcall>
<move file="${staging_folder}/work/${staging_hardware_folder}/esp8266com/esp8266/tools/esptool-0.4.4-linux64/esptool" tofile="${staging_folder}/work/${staging_hardware_folder}/esp8266com/esp8266/tools/esptool" />
<delete dir="${staging_folder}/work/${staging_hardware_folder}/esp8266com/esp8266/tools/esptool-0.4.4-linux64/" />
<move file="${staging_folder}/work/${staging_hardware_folder}/esp8266com/esp8266/tools/esptool-0.4.5-linux64/esptool" tofile="${staging_folder}/work/${staging_hardware_folder}/esp8266com/esp8266/tools/esptool" />
<delete dir="${staging_folder}/work/${staging_hardware_folder}/esp8266com/esp8266/tools/esptool-0.4.5-linux64/" />

</target>

Expand Down Expand Up @@ -891,7 +891,7 @@
<fileset dir="windows/work" includes="**/*.html, **/*.dll, **/*.exe" />
</chmod>

<loadproperties srcfile="${WINDOWS_BUNDLED_JVM}/release" prefix="windows"/>
<loadproperties srcfile="${WINDOWS_BUNDLED_JVM}/../release" prefix="windows"/>

<fail message="It looks like ${WINDOWS_BUNDLED_JVM} does not contain a Windows JVM">
<condition>
Expand Down Expand Up @@ -928,13 +928,13 @@


<antcall target="unzip">
<param name="archive_file" value="${staging_folder}/esptool-0.4.4-win32.zip" />
<param name="archive_url" value="https://github.com/igrr/esptool-ck/releases/download/0.4.4/esptool-0.4.4-win32.zip" />
<param name="final_folder" value="${staging_folder}/work/${staging_hardware_folder}/esp8266com/esp8266/tools/esptool-0.4.4-win32" />
<param name="archive_file" value="${staging_folder}/esptool-0.4.5-win32.zip" />
<param name="archive_url" value="https://github.com/igrr/esptool-ck/releases/download/0.4.5/esptool-0.4.5-win32.zip" />
<param name="final_folder" value="${staging_folder}/work/${staging_hardware_folder}/esp8266com/esp8266/tools/esptool-0.4.5-win32" />
<param name="dest_folder" value="${staging_folder}/work/${staging_hardware_folder}/esp8266com/esp8266/tools/" />
</antcall>
<move file="${staging_folder}/work/${staging_hardware_folder}/esp8266com/esp8266/tools/esptool-0.4.4-win32/esptool.exe" tofile="${staging_folder}/work/${staging_hardware_folder}/esp8266com/esp8266/tools/esptool.exe" />
<delete dir="${staging_folder}/work/${staging_hardware_folder}/esp8266com/esp8266/tools/esptool-0.4.4-win32/" />
<move file="${staging_folder}/work/${staging_hardware_folder}/esp8266com/esp8266/tools/esptool-0.4.5-win32/esptool.exe" tofile="${staging_folder}/work/${staging_hardware_folder}/esp8266com/esp8266/tools/esptool.exe" />
<delete dir="${staging_folder}/work/${staging_hardware_folder}/esp8266com/esp8266/tools/esptool-0.4.5-win32/" />

</target>

Expand Down
66 changes: 44 additions & 22 deletions build/build_board_manager_package.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/bin/bash
#
# for platform in windows linux macosx; do pushd $platform; ls -l esptool-*; shasum -a 256 esptool-*; popd; done;
#
#

ver=`git describe --tags`
outdir=esp8266-$ver
Expand All @@ -23,9 +27,14 @@ size=`/bin/ls -l $outdir.zip | awk '{print $5}'`
echo Size: $size
echo SHA-256: $sha

if [ ! -z "$do_upload" ]; then
if [ "$upload" == "prod" ]; then
remote="http://arduino.esp8266.com"
path=""
elif [ "$upload" == "stag" ]; then
remote="http://arduino.esp8266.com"
path="staging/"
else
upload=""
remote="http://localhost:8000"
fi

Expand All @@ -45,21 +54,34 @@ cat << EOF > package_esp8266com_index.json
"architecture":"esp8266",
"version":"$ver",
"category":"ESP8266",
"url":"$remote/$outdir.zip",
"url":"$remote/$path/$outdir.zip",
"archiveFileName":"$outdir.zip",
"checksum":"SHA-256:$sha",
"size":"$size",
"help":{
"online":"http://esp8266.com"
},
"boards":[ {
"boards":[
{
"name":"Generic ESP8266 Module"
},
{
"name":"Olimex MOD-WIFI-ESP8266(-DEV)"
},
{
"name":"NodeMCU 0.9 (ESP-12 Module)"
},
{
"name":"NodeMCU 1.0 (ESP-12E Module)"
},
{
"name":"Adafruit HUZZAH ESP8266 (ESP-12)"
}
],
"toolsDependencies":[ {
"packager":"esp8266",
"name":"esptool",
"version":"0.4.4"
"version":"0.4.5"
},
{
"packager":"esp8266",
Expand All @@ -70,33 +92,33 @@ cat << EOF > package_esp8266com_index.json

"tools": [ {
"name":"esptool",
"version":"0.4.4",
"version":"0.4.5",
"systems": [
{
"host":"i686-mingw32",
"url":"https://github.com/igrr/esptool-ck/releases/download/0.4.4/esptool-0.4.4-win32.zip",
"archiveFileName":"esptool-0.4.4-win32.zip",
"checksum":"SHA-256:bc52165c847b194d8f079add982eae1c4b4466784bff8c8494241de602a003b3",
"size":"17262"
"url":"https://github.com/igrr/esptool-ck/releases/download/0.4.5/esptool-0.4.5-win32.zip",
"archiveFileName":"esptool-0.4.5-win32.zip",
"checksum":"SHA-256:1b0a7d254e74942d820a09281aa5dc2af1c8314ae5ee1a5abb0653d0580e531b",
"size":"17408"
},
{
"host":"x86_64-apple-darwin",
"url":"http://arduino.esp8266.com/esptool-0.4.4-5-g744c44d-osx.tar.gz",
"archiveFileName":"esptool-0.4.4-5-g744c44d-osx.tar.gz",
"checksum":"SHA-256:d8bc920e046fcc668b31cda63ac5553b4c07a6db12bfd0abc9005fc94628afcb",
"size":"12133"
"url":"https://github.com/igrr/esptool-ck/releases/download/0.4.5/esptool-0.4.5-osx.tar.gz",
"archiveFileName":"esptool-0.4.5-osx.tar.gz",
"checksum":"SHA-256:924d31c64f4bb9f748e70806dafbabb15e5eb80afcdde33715f3ec884be1652d",
"size":"11359"
},
{
"host":"x86_64-pc-linux-gnu",
"url":"https://github.com/igrr/esptool-ck/releases/download/0.4.4/esptool-0.4.4-linux64.tar.gz",
"archiveFileName":"esptool-0.4.4-linux64.tar.gz",
"checksum":"SHA-256:beedf89db0bdce0bf6034232d86edebcfed0966ff1501545aca9cfbba1f92593",
"size":"12513"
"url":"https://github.com/igrr/esptool-ck/releases/download/0.4.5/esptool-0.4.5-linux64.tar.gz",
"archiveFileName":"esptool-0.4.5-linux64.tar.gz",
"checksum":"SHA-256:4ce799e13fbd89f8a8f08a08db77dc3b1362c4486306fe1b3801dee80cfa3203",
"size":"12789"
},
{
"host":"i686-pc-linux-gnu",
"url":"https://github.com/igrr/esptool-ck/releases/download/0.4.4/esptool-0.4.4-linux32.tar.gz",
"archiveFileName":"esptool-0.4.4-linux32.tar.gz",
"url":"https://github.com/igrr/esptool-ck/releases/download/0.4.5/esptool-0.4.5-linux32.tar.gz",
"archiveFileName":"esptool-0.4.5-linux32.tar.gz",
"checksum":"SHA-256:4aa81b97a470641771cf371e5d470ac92d3b177adbe8263c4aae66e607b67755",
"size":"12044"
}
Expand Down Expand Up @@ -140,9 +162,9 @@ cat << EOF > package_esp8266com_index.json
}
EOF

if [ ! -z "$do_upload" ]; then
scp $outdir.zip dl:apps/download_files/download/
scp package_esp8266com_index.json dl:apps/download_files/download
if [ ! -z "$upload" ]; then
scp $outdir.zip dl:apps/download_files/download/$path
scp package_esp8266com_index.json dl:apps/download_files/download/$path
else
python -m SimpleHTTPServer
fi
Expand Down
1 change: 0 additions & 1 deletion build/linux/esptool-0.4.4-linux64.tar.gz.sha

This file was deleted.

1 change: 1 addition & 0 deletions build/linux/esptool-0.4.5-linux64.tar.gz.sha
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ef9940f7b690f346739b54e4df46d0fbd37f0e12
1 change: 0 additions & 1 deletion build/macosx/esptool-0.4.4-osx.tar.gz.sha

This file was deleted.

1 change: 1 addition & 0 deletions build/macosx/esptool-0.4.5-osx.tar.gz.sha
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
702be33406745b31904a40b28cf6ebb87173e4c8
1 change: 0 additions & 1 deletion build/windows/esptool-0.4.4-win32.zip.sha

This file was deleted.

1 change: 1 addition & 0 deletions build/windows/esptool-0.4.5-win32.zip.sha
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
7c6b0049e016889a85dc0c7e01282ef0ce36d1f3
Binary file added docs/ESP_improved_stability.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/ESP_min.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/ESP_to_serial.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading