Skip to content

Commit 897a475

Browse files
author
Me No Dev
committed
Merge remote-tracking branch 'esp8266/master'
2 parents 7615966 + b5341bb commit 897a475

File tree

9 files changed

+130
-12
lines changed

9 files changed

+130
-12
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ESP8266 Arduino core comes with libraries to communicate over WiFi using TCP and
1111
- [Using git version](#using-git-version-)
1212
- [Using stable version with PlatformIO](#using-stable-version-with-platformio)
1313
- [Documentation](#documentation)
14-
- [Issues and support](#issues-and-support)
14+
- [Issues and support](#issues-and-support)
1515
- [Contributing](#contributing)
1616
- [License and credits](#license-and-credits)
1717

@@ -25,7 +25,7 @@ Starting with 1.6.4, Arduino allows installation of third-party platform package
2525
- Open Boards Manager from Tools > Board menu and install *esp8266* platform (and don't forget to select your ESP8266 board from Tools > Board menu after installation).
2626

2727
The best place to ask questions related to this core is ESP8266 community forum: http://www.esp8266.com/arduino.
28-
If you find this ESP8266 board manager useful, please consider supporting it with a donation. The ESP8266 Community Forum and IGRR have made this wonderful port available.
28+
If you find this forum or the ESP8266 Boards Manager package useful, please consider supporting it with a donation.
2929
[![Donate](https://img.shields.io/badge/paypal-donate-yellow.svg)](https://www.paypal.com/webscr?cmd=_s-xclick&hosted_button_id=4M56YCWV6PX66)
3030

3131
#### Available versions
@@ -38,11 +38,11 @@ Documentation: [http://esp8266.github.io/Arduino/versions/2.0.0/](http://esp8266
3838
##### Staging version ![](http://arduino.esp8266.com/staging/badge.svg)
3939
Boards manager link: `http://arduino.esp8266.com/staging/package_esp8266com_index.json`
4040

41-
Documentation: [http://esp8266.github.io/Arduino/versions/2.0.0-rc2/](http://esp8266.github.io/Arduino/versions/2.0.0-rc2/)
41+
Documentation: [http://esp8266.github.io/Arduino/versions/2.1.0-rc1/](http://esp8266.github.io/Arduino/versions/2.1.0-rc1/)
4242

4343
### Using git version [![Linux build status](https://travis-ci.org/esp8266/Arduino.svg)](https://travis-ci.org/esp8266/Arduino)
4444

45-
- Install Arduino 1.6.5
45+
- Install Arduino 1.6.7
4646
- Go to Arduino directory
4747
- Clone this repository into hardware/esp8266com/esp8266 directory (or clone it elsewhere and create a symlink)
4848
```bash

boards.txt

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,8 @@ generic.menu.DebugLevel.WiFi=WiFi
189189
generic.menu.DebugLevel.WiFi.build.debug_level=-DDEBUG_ESP_WIFI
190190
generic.menu.DebugLevel.HTTPClient=HTTPClient
191191
generic.menu.DebugLevel.HTTPClient.build.debug_level=-DDEBUG_ESP_HTTP_CLIENT
192+
generic.menu.DebugLevel.HTTPClient2=HTTPClient + SSL
193+
generic.menu.DebugLevel.HTTPClient2.build.debug_level=-DDEBUG_ESP_HTTP_CLIENT -DDEBUG_ESP_SSL
192194
generic.menu.DebugLevel.HTTPUpdate=HTTPUpdate
193195
generic.menu.DebugLevel.HTTPUpdate.build.debug_level=-DDEBUG_ESP_HTTP_UPDATE
194196
generic.menu.DebugLevel.HTTPUpdate2=HTTPClient + HTTPUpdate
@@ -944,8 +946,20 @@ wifinfo.build.variant=wifinfo
944946
wifinfo.build.flash_mode=qio
945947
wifinfo.build.board=ESP8266_ESP12
946948
wifinfo.build.spiffs_pagesize=256
947-
wifinfo.build.debug_port=
948-
wifinfo.build.debug_level=
949+
wifinfo.build.debug_port=Serial1
950+
wifinfo.build.debug_level=Wifinfo
951+
952+
wifinfo.menu.Debug.Disabled=Disabled
953+
wifinfo.menu.Debug.Disabled.build.debug_port=
954+
wifinfo.menu.Debug.Serial=Serial
955+
wifinfo.menu.Debug.Serial.build.debug_port=-DDEBUG_ESP_PORT=Serial
956+
wifinfo.menu.Debug.Serial1=Serial1
957+
wifinfo.menu.Debug.Serial1.build.debug_port=-DDEBUG_ESP_PORT=Serial1
958+
959+
wifinfo.menu.DebugLevel.None=None
960+
wifinfo.menu.DebugLevel.None.build.debug_level=
961+
wifinfo.menu.DebugLevel.Wifinfo=Wifinfo
962+
wifinfo.menu.DebugLevel.Wifinfo.build.debug_level=-DDEBUG_ESP_WIFINFO
949963

950964
#wifinfo.menu.ESPModule.ESP07512=ESP07 (1M/512K SPIFFS)
951965
#wifinfo.menu.ESPModule.ESP07512.build.board=ESP8266_ESP07

doc/Troubleshooting/debug_level.png

36.4 KB
Loading

doc/Troubleshooting/debug_port.png

33.8 KB
Loading

doc/Troubleshooting/debugging.md

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
---
2+
title: Debugging
3+
---
4+
5+
## Table of Contents
6+
* [Introduction](#introduction)
7+
* [Requirements](#requirements)
8+
* [Usage](#Usage)
9+
* [Informations](#Informations)
10+
* [For Developers](#for-developers)
11+
12+
## Introduction
13+
14+
Since 2.1.0-rc1 the core includes a Debugging feature that is controllable over the IDE menu.
15+
16+
The new menu points manage the real-time Debug messages.
17+
18+
### Requirements
19+
20+
For usage of the debugging a Serial connection is required (Serial or Serial1).
21+
22+
The Serial Interface need to be initialized in the ```setup()```.
23+
24+
Set the Serial baud rate as high as possible for your Hardware setup.
25+
26+
Minimum sketch to use debugging:
27+
```cpp
28+
void setup() {
29+
Serial.begin(115200);
30+
}
31+
32+
void loop() {
33+
}
34+
```
35+
36+
### Usage
37+
38+
1. Select the Serial interface for the Debugging messages:
39+
![Debug-Port](debug_port.png)
40+
41+
2. Select which type / level you want debug messages for:
42+
![Debug-Level](debug_level.png)
43+
44+
3. Check if the Serial interface is initialized in ```setup()``` (see [Requirements](#requirements))
45+
46+
4. Flash sketch
47+
48+
5. Check the Serial Output
49+
50+
51+
52+
## Informations
53+
54+
It work with every sketch that enables the Serial interface that is selected as debug port.
55+
56+
The Serial interface can still be used normal in the Sketch.
57+
58+
The debug output is additional and will not disable any interface from usage in the sketch.
59+
60+
### For Developers
61+
62+
For the debug handling uses defines.
63+
64+
The defined are set by command line.
65+
66+
#### Debug Port
67+
68+
The port has the define ```DEBUG_ESP_PORT``` possible value:
69+
- Disabled: define not existing
70+
- Serial: Serial
71+
- Serial1: Serial1
72+
73+
#### Debug Level
74+
75+
All defines for the different levels starts with ```DEBUG_ESP_```
76+
77+
a full list can be found here in the [boards.txt](https://github.com/esp8266/Arduino/blob/master/boards.txt#L180)
78+
79+
#### Example for own debug messages
80+
81+
The debug messages will be only shown when the Debug Port in the IDE menu is set.
82+
83+
```cpp
84+
#ifdef DEBUG_ESP_PORT
85+
#define DEBUG_MSG(...) DEBUG_ESP_PORT.printf( __VA_ARGS__ )
86+
#else
87+
#define DEBUG_MSG(...)
88+
#endif
89+
90+
void setup() {
91+
Serial.begin(115200);
92+
93+
delay(3000);
94+
DEBUG_MSG("bootup...\n");
95+
}
96+
97+
void loop() {
98+
DEBUG_MSG("loop %d\n", millis());
99+
delay(1000);
100+
}
101+
```
102+

doc/libraries.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ While many RC servo motors will accept the 3.3V IO data pin from a ESP8266, most
141141
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:
142142
143143
- [Adafruit_ILI9341](https://github.com/Links2004/Adafruit_ILI9341) - Port of the Adafruit ILI9341 for the ESP8266
144+
- [arduinoVNC](https://github.com/Links2004/arduinoVNC) - VNC Client for Arduino
144145
- [arduinoWebSockets](https://github.com/Links2004/arduinoWebSockets) - WebSocket Server and Client compatible with ESP8266 (RFC6455)
145146
- [aREST](https://github.com/marcoschwartz/aREST) - REST API handler library.
146147
- [Blynk](https://github.com/blynkkk/blynk-library) - easy IoT framework for Makers (check out the [Kickstarter page](http://tiny.cc/blynk-kick)).

libraries/ESP8266WiFi/src/ESP8266WiFiMulti.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ wl_status_t ESP8266WiFiMulti::run(void) {
127127
ip = WiFi.localIP();
128128
mac = WiFi.BSSID();
129129
DEBUG_WIFI_MULTI("[WIFI] Connecting done.\n");
130-
DEBUG_WIFI_MULTI("[WIFI] SSID: %s\n", WiFi.SSID());
130+
DEBUG_WIFI_MULTI("[WIFI] SSID: %s\n", WiFi.SSID().c_str());
131131
DEBUG_WIFI_MULTI("[WIFI] IP: %d.%d.%d.%d\n", ip[0], ip[1], ip[2], ip[3]);
132132
DEBUG_WIFI_MULTI("[WIFI] MAC: %02X:%02X:%02X:%02X:%02X:%02X\n", mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]);
133133
DEBUG_WIFI_MULTI("[WIFI] Channel: %d\n", WiFi.channel());

package/build_boards_manager_package.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ cat << EOF > exclude.txt
3939
package
4040
EOF
4141
# Also include all files which are ignored by git
42-
git ls-files --other --ignored --exclude-standard --directory >> exclude.txt
42+
git ls-files --other --directory >> exclude.txt
4343
# Now copy files to $outdir
4444
rsync -a --exclude-from 'exclude.txt' $srcdir/ $outdir/
4545
rm exclude.txt

package/esp8266-arudino-doc.bash

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@ set -e
2424

2525
# some variable definitions
2626
tmp_path=$1
27-
arduinoESP_src="$tmp_path/arduino"
28-
version="$(git --work-tree=$arduinoESP_src describe --tags --always)"
27+
doc_src_path=$2
28+
arduinoESP_src=$(cd $PWD/..; pwd)
29+
version="$(git --work-tree=$arduinoESP_src --git-dir=$arduinoESP_src/.git describe --tags --always)"
2930
release_date=$(date "+%b_%d,_%Y") # format for badge link
3031
build_date=$(date "+%b %d, %Y")
3132
destination_path="$tmp_path/doc"
@@ -62,7 +63,8 @@ mkdir -p $destination_path/$version
6263
cp -R $arduinoESP_src/doc/* $destination_path/src
6364

6465
# download doc template
65-
git clone $doc_template_url $destination_path/build
66+
rsync -av $doc_src_path/ $destination_path/build/
67+
# git clone $doc_template_url $destination_path/build
6668

6769
# create versions.html file
6870

@@ -113,4 +115,3 @@ popd
113115

114116
# grab badge
115117
wget -q -O $destination_path/$version/badge.svg "https://img.shields.io/badge/updated-$release_date-blue.svg"
116-

0 commit comments

Comments
 (0)