1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-19 23:22:16 +03:00

2995 Commits

Author SHA1 Message Date
Maurice Ribble
7f0b9d1be9 Rx fifo latency fix (#4328)
* Flush the rx fifo when checking available bytes in fifo.  This gives a more correct result rather than waiting until either the fifo is full or until a serial rx timeout occurs.

* When rx_avaiable is checked return rx_buffer plus rx_fifo.  Then during rx_read and rx_peek functions copy over the data in the fifo as needed.

* Clean up early out case.

* Set the rx full fifo ISR to trigger a little sooner.  This makes the uart rx isr more robust in cases where the ISR can't trigger very fast
2018-03-08 12:16:14 -03:00
Ivan Grokhotkov
61cd8d8385 examples: format all .ino files
This formats all the example source files using Arduino style rules.
2018-03-08 14:32:06 +08:00
Ivan Grokhotkov
e226251b27 ci: check examples code style
Use code style defined in Arduino project to check code style of the
examples. The check is done by formatting all files with astyle and
checking whether any changes have been introduced.
2018-03-08 14:32:06 +08:00
Ivan Grokhotkov
af74a10d27 Bump version to 2.5.0-dev 2018-03-08 12:39:41 +08:00
Ivan Grokhotkov
614f7c32e5 Release 2.4.1 2.4.1 2018-03-08 11:49:56 +08:00
Ivan Grokhotkov
e52ead1e83 doc: remove changelog
Change logs are now hosted on Github releases page.

Closes #4142
2018-03-08 11:49:48 +08:00
david gauchard
8053f285b1 provide full version descriptor, displayed in debug mode (#4467)
* provide full version descriptor, displayed in debug mode

* unix: shows core version like under windows when git is unavailable

* store strings in progmem

* version string honours NDEBUG

* add ARDUINO_ESP8266_GIT_DESC
restore ARDUINO_ESP8266_GIT_VER
restore global variable "core_version"
don't print full version on setDebugOutput(true)
set platform.txt version to 2.4.1-pre
hide irrelevant boot version
fix typo

* lwip2: fix disconnection/reconnection issue
also:
improve version string
remove useless message

* lwip2: bump tag before 2.4.1

* lwip2: improve netif flags management on git side

* full-version string: remove useless NDEBUG in separate source file

* do not automatically enable sdk messages along with core messages

* automatically reenable sdk messages along with core messages *before* setup not after

* check serial port when showing version-string + move sdk messages enabler in hardware serial

* + license header

* updated and tested windows commands in platform.txt (without git)

* updated and tested windows commands in platform.txt (without git)

* update package builder accordingly
2018-03-08 11:37:03 +08:00
Develo
5b87c7b82d
Update ISSUE_TEMPLATE.md (#4474)
* Update ISSUE_TEMPLATE.md

Proposal for issue template update

* Update ISSUE_TEMPLATE.md

Updates per feedback.

* Update ISSUE_TEMPLATE.md

Update based on feedback.
2018-03-07 20:14:55 -03:00
David Gauchard
e47a92a836 lwip2: improve netif flags management on git side 2018-03-07 22:47:04 +08:00
david gauchard
3df3246514 lwip2: bump tag before 2.4.1 2018-03-07 22:47:04 +08:00
David Gauchard
2335f18f5a lwip2: fix disconnection/reconnection issue
also:
improve version string
remove useless message
2018-03-07 22:47:04 +08:00
per1234
7999f5c29c Use correct separator in keywords.txt
The Arduino IDE currently requires the use of a tab separator between the name and identifier. Without this tab the keyword is not highlighted.

Reference:
https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5:-Library-specification#keywords
2018-03-05 15:51:14 +08:00
david gauchard
a2e7c7d016 (bool)WiFiClient needs to return ::connected() since ClientContext is not destroyed on ::stop() (#4422) 2018-03-02 20:27:08 -03:00
Ivan Grokhotkov
1349bafd83 [WIP] ESP8266WiFi: initialize new fields, remove old workaround (#4413)
* ESP8266WiFi: initialise new STA configuration fields

* ESP8266WiFi: remove workaround for wifi_station_ap_number
2018-02-28 17:21:32 -03:00
fabianoms
19eb6ea548 Fix small typo in documentation. (#4440) 2018-02-28 15:41:15 -03:00
ZaPpInG
9127e6eaac Fix some links (#4408)
Fix some links
2018-02-28 14:32:52 -03:00
Aarush Ahuja
29789b1193 fixed replyPakcet to replyPacket (#4439)
Fixed variable name
2018-02-27 15:21:16 -03:00
Ivan Grokhotkov
cd6cd85fca sdk: add a script for library update
Moves instructions from Readme file into a script
2018-02-22 14:11:43 +03:00
Ivan Grokhotkov
c885542f05 sdk: update to v2.2.0-3-gf8f27ce
- Fixes WiFi not being able to reconnect after SDK update (#4398)
- Fixes increased current in light sleep mode
- Fixes return value documentation for wifi_{get,set}_country
2018-02-22 14:11:43 +03:00
Ivan Grokhotkov
00c8b633df platform, boards: add menu to control what gets erased during upload 2018-02-20 21:51:53 +03:00
Ivan Grokhotkov
0222e32f15 esptool: update to 0.4.13
- fix argument parsing for flash erase command (-ce)
- add region erase command (-cz)
2018-02-20 21:51:53 +03:00
Ivan Kravets
e5746c0f5a
Merge pull request #4399 from ivankravets/master
Drop PlatformIO lines from LD script; append object suffix to the end of target name // Resolve #4355
2018-02-20 15:01:57 +02:00
Ivan Kravets
f2fc590d51 Drop PlatformIO lines from LD script; append object suffix to the end of target name // Resolve #4355 2018-02-20 13:40:54 +02:00
Ivan Grokhotkov
ee5a1e2804 WiFiClient: don’t destroy ClientContext on ::stop
Reported in https://github.com/esp8266/Arduino/issues/4078.

WiFiClient::stopAll, called from a WiFi disconnected event handler,
could be called while WiFiClient::connect was in progress. This issue
was initially fixed in #4194, by testing `this` pointer for being
non-null in ClientContext::connect.

This change delegates deletion of ClientContext to WiFiClient
destructor. WiFiClient::stop only calls ClientContext::stop, which
closes/aborts the connection.
2018-02-20 03:33:55 +03:00
Ivan Grokhotkov
28d8a41219 ESP8266WiFi: zero-initialise scan_config structure
Fixes #4394
2018-02-20 03:33:03 +03:00
Ivan Kravets
0a000fef95
Merge pull request #4393 from esp8266/ivankravets-patch-2
Revert "Remove @PlatformIO library.json from GDBStub; fix pattern in LD"
2018-02-20 01:00:40 +02:00
Ivan Kravets
dcb67599b5
Revert "Remove @PlatformIO library.json from GDBStub; fix pattern in LD"
Reverts esp8266/Arduino#4363
2018-02-19 23:28:14 +02:00
Ivan Grokhotkov
f3f00ed64e gitignore: ignore generated files 2018-02-19 17:11:48 +03:00
Ivan Grokhotkov
73ae0bb824 sdk: add missing version.h file 2018-02-19 16:34:01 +03:00
Ivan Grokhotkov
a020e8941a boards.txt.py: normalize script name in generated output 2018-02-19 12:43:30 +03:00
Ivan Grokhotkov
a358bce0d9 boards.txt.py: fix extra newline at the end of JSON output 2018-02-19 12:43:30 +03:00
Ivan Grokhotkov
f0787e7106 boards.txt.py: fix trailing comma in generated JSON 2018-02-19 12:43:30 +03:00
Ivan Grokhotkov
aa37364e04 boards, package: update from boards.txt.py 2018-02-19 12:43:30 +03:00
Ivan Grokhotkov
0d17639bee ci: check that files generated by boards.txt.py are up to date
Files are re-generated in CI build, and git diff is used to check if
there have been any changes.
2018-02-19 12:43:30 +03:00
Ivan Grokhotkov
ce90037fca tools/boards.txt.py: make ldscript output same as the existing files 2018-02-19 12:43:30 +03:00
Ivan Grokhotkov
bc46db79c6 tools/boards.txt.py: remove tabs 2018-02-19 12:43:30 +03:00
Ivan Grokhotkov
429f40d321 sdk: update to 2.2.0
- update libraries and header files
- remove libmesh
- update PHY init data
2018-02-19 12:43:01 +03:00
Earle F. Philhower, III
f9ac524b13
Add -Werror to acceptance builds for C and CPP (#4369)
Use platform.local.txt to add -Werror to GCC for the build of all
code.  Any warnings on a submitted patch will cause an error.

Several examples and libraries had warnings/errors (missing returns
on functions, types, etc.).  Clean those up with this commit as well.
2018-02-17 18:47:10 -08:00
diogosalazar
ad42ab69c1 Fix typos (#4346)
Found a couple of typos in the Servo section
2018-02-17 00:28:36 -03:00
david gauchard
d0f220fb54 fix board common variant inclusion for deprecated BUILTIN_LED (#4366) 2018-02-16 22:40:25 -03:00
Develo
5328a8b91e
additional mimetable fixes, additional string moves to progmem (#4371) 2018-02-16 16:56:33 -03:00
Earle F. Philhower, III
bb90e12ea0
Fix double-free in ESP8266WebServer (#4365)
In issue #4350, @mongozmaki found that the web server was accessing a
deleted variable in the destructor.  Implement his suggested change
and move the close() before any freeing.  Could also have simply
NULL'd out the _currentHeaders member after freeing as well.

Fixes issue #4350
2018-02-14 07:50:26 -08:00
Ivan Kravets
11c83e1687
Merge pull request #4363 from ivankravets/master
Remove @PlatformIO library.json from GDBStub; fix pattern in LD
2018-02-14 13:30:48 +02:00
Ivan Kravets
eb58a31b89 Remove @PlatformIO library.json from GDBStub; fix pattern in LD // Resolve #4355 2018-02-14 00:23:12 +02:00
Earle F. Philhower, III
291bc6bca5
Wrap mimetype strings in FSPTR()s (#4338)
Mimetype is now in progmem, so any accesses to it need to be using FPSTR()
wrapped Strings.

Fixes #4329
2018-02-10 08:12:38 -08:00
Earle F. Philhower, III
bf5a0f24dc Fix mem leak in SSL server, allow for concurrent client and server connections w/o interference (#4305)
* Fix leak on multiple SSL server connections

Fixes #4302

The refcnt setup for the WiFiClientSecure's SSLContext and ClientContext
had issues in certain conditions, causing a massive memory leak on each
SSL server connection.  Depending on the state of the machine, after two or
three connections it would OOM and crash.

This patch replaces most of the refcnt operations with C++11 shared_ptr
operations, cleaning up the code substantially and removing the leakage.

Also fixes a race condition where ClientContext was free'd before the SSLContext
was stopped/shutdown.  When the SSLContext tried to do ssl_free, axtls would
attempt to send out the real SSL disconnect bits over the wire, however by
this time the ClientContext is invalid and it would fault.

* Separate client and server SSL_CTX, support both

Refactor to use a separate client SSL_CTX and server SSL_CTX.  This
allows for separate certificates to be installed on each, and means
that you can now have both a *single* client and a *single* server
running in parallel at the same time, as they'll have separate memory
areas.

Tested using mqtt_esp8266 SSL client with a client certificate and a
WebServerSecure with its own custom certificate and key in parallel.

* Add brackets around a couple if-else clauses
2018-02-08 15:25:24 -03:00
Develo
cda72a07e0
Changed TIM_DIV265 for deprecation (#4326) 2018-02-08 14:07:47 -03:00
Doanh Văn Lương
f6f977fb03 fix links for read the docs (#4293)
* fix links for read the docs

* fix typo

fix typo in link
2018-02-08 01:17:36 -03:00
Develo
bb5787a1cd
Fix mdns buffer overrun by 1 (#4317)
* fix mdns buffer overflow, minor indent/prettify
2018-02-07 14:39:27 -03:00
david gauchard
85fb3d9b44
boards: Wemos D1 R1 needs a separate defined identifier (#4304) 2018-02-07 15:36:26 +01:00