1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-25 20:02:37 +03:00

3697 Commits

Author SHA1 Message Date
david gauchard
2843a5ace1 backport #7491 2.7.4 2020-08-02 20:14:22 +02:00
david gauchard
1cdec7b256 hand made 2.7.4 2020-08-02 13:01:57 +02:00
david gauchard
73f04e3ec8 Backport #7478 2020-08-02 12:52:35 +02:00
David Gauchard
5d3af16552 backport #7488 2.7.3 2020-07-27 00:10:32 +02:00
David Gauchard
4ac1608573 backport #7487 2020-07-27 00:10:09 +02:00
David Gauchard
59499c7361 backport #7486 2020-07-27 00:09:26 +02:00
David Gauchard
59bbfc7061 backport #7464 2020-07-19 00:07:13 +02:00
David Gauchard
7f9863674f backport #7434 2020-07-19 00:04:36 +02:00
David Gauchard
5337f93522 backport #7433 2020-07-19 00:04:02 +02:00
David Gauchard
ef7c26ac42 hotfix: 2.7.2=>2.7.3 eboot: disable "Verify the copy" 2020-07-18 23:12:22 +02:00
david gauchard
39c79d9bab
prepare 2.7.2 (#7429) 2.7.2 2020-07-07 10:22:00 +02:00
Develo
4609e440ad
Add some pending methods to generic-class docs (#7427) 2020-07-06 16:39:30 -04:00
david gauchard
cc1cc0b2ce
emulation on host: option for FS persistence location (#7424)
* fix warnings
* emulation on host: option -P to change FS persistence location
* exit on SIGTERM too, with SIGINT
2020-07-03 19:10:08 +02:00
Mikael Bertze
f1651fba89
Ability to set connect timeout in WifiMulti->run (#7420)
* Adds timeout parameter to run

* Renaming varaible to connectTimeoutMs
2020-07-02 00:01:34 +02:00
david gauchard
799c0f6774
emulation on host: FS: minor reset fix (#7417) 2020-06-30 22:44:50 +02:00
DanKoloff
b706fd4d59
I2C pin assignment fix (#7416)
There was a typo in I2C pin assignment, SCL was set to GPIO #4 instead of GPIO #14, The schematic can be seen here: https://github.com/OLIMEX/ESP8266/blob/master/HARDWARE/MOD-WIFI-ESP8266-DEV/MOD-WiFi-ESP8266-DEV%20revision%20B1/MOD-WiFi-ESP8266-DEV_Rev_B1.pdf
2020-06-30 18:14:43 +02:00
Earle F. Philhower, III
d85ff6efc4
Add namespace to FS references in CertStore (#7413)
Fixes #7410
2020-06-29 10:30:06 -07:00
david gauchard
52f4cc8de0
httpclient: fix error meaning (#7401)
* httpclient: fix error meaning

* deprecate HTTPC_ERROR_CONNECTION_REFUSED
2020-06-25 09:00:24 +02:00
Dirk O. Kaar
00fc716ccc
EspSoftwareSerial 6.8.5: fixes parity for TX with odd word size modes (#7399)
* EspSoftwareSerial 6.8.4: fixes parity for TX with odd data-bit count modes (e.g. 7E1)
* EspSoftwareSerial 6.8.5: examples report rx errors from HW serial API, in lieu of specific parity errors, which are not made available.
2020-06-24 19:41:28 +02:00
david gauchard
5d60c55fb2
emulation on host: missing mock functions, improve host interface handling (#7404) 2020-06-24 19:05:57 +02:00
M Hightower
b26388812a
For UMM_CRITICAL_METRICS fixed time_stats initializer. (#7390)
* Corrected missed edit in check_poison_block() change variable ok
to bool.

Updated time_stats (used by UMM_CRITICAL_METRICS) initializer to
include UMM_POINSON_CHECK_LITE.

Update maintenace comment block for UMM_REALLOC_...

* Add missing defined(UMM_INTEGRITY_CHECK) to heap.cpp.
Fixes build case of UMM_INTEGRITY_CHECK and Debug port: "disabled"
2020-06-21 15:34:25 -07:00
Mjxkill
7298691252
Add ESP8266WebServerTemplate<ServerType>::enableCORS(bool _ec) (#7388)
Add ESP8266WebServerTemplate<ServerType>::enableCORS(bool _ec) like ESP32 Arduino platform.
2020-06-21 14:38:32 -07:00
Earle F. Philhower, III
786a65402f
Update GitHub cert fingerprint in example (#7397)
The certificate was regenerated yet again, so update the FP in the
SSL validation example.

Fixes #7394
2020-06-21 13:34:31 -07:00
david gauchard
448486a4c9
emulation on host: lwIP always receive multicast packets, enable and fix multicast udp server (#7386) 2020-06-16 23:03:22 +02:00
david gauchard
64f1f7b727
doc fixes for LittleFS (#7385) 2020-06-16 17:31:19 +02:00
ChenJinBo
1bfb29395f
Update readme.rst (#7379)
ESP9266 to ESP8266
2020-06-14 23:05:42 -04:00
Max Prokhorov
599492ec43
libraries/SPI: abs -> std::abs and cast fixes (#7362)
* libraries/SPI: remove pointless abs(...) call

SPI library code erroneously assumed that:
- abs() is a C function, so include stdlib.h is required.
  what happens instead is Arduino.h shadows `abs()` with it's own macro
- uint32_t() - int32_t() promotes to int32_t, thus needing abs()

Fix both issues, leaving existing calculations as-is.

* additional changes for freq and constants

- restore abs call, cast freq to correctly display the intent
- update magic numbers comments
- move some spiclk_t magic numbers to func consts
2020-06-13 11:17:06 -07:00
david gauchard
89d0c78703
emulation on host: fix binding from a particular interface (#7372)
allows to effectively use virtual interfaces (ifconfig eth0:1) with a different IP address
2020-06-13 14:04:28 +02:00
Earle F. Philhower, III
a70e834d1e
Add a "-- CUT HERE --" marker to exception output (#7369)
Users aren't reporting/seeing the actual PC of failures because they
are only copying the >>stack<< into the decoder and not the Exception
line.  Add an ALL CAPS "CUT HERE FOR EXCEPTION DECODER" line to the
output to make it blindingly obvious to include the full crashdump
both in bug reports as well as exception decodes.
2020-06-11 15:24:21 -07:00
Dirk O. Kaar
fe673cc16a
User requested fix: be less restrictive in the use of GPIOs. (#7367) 2020-06-11 09:48:31 -07:00
Develo
ab03add8d0
Fix oversight for ap gw (#7366) 2020-06-10 15:18:19 -04:00
Jonathan Dumaresq
5473656eac
Update ESP8266WiFiAP.cpp (#7363)
Fix the bad adress of the the AP if the settings are wrong
2020-06-08 16:41:25 -04:00
hreintke
7346754c09
API change to faciliate executer to know the number of active callbacks (#7361) 2020-06-08 14:19:18 -04:00
M Hightower
83523c0259
umm_malloc manual merge with upstream (#7337)
* umm_malloc manual merge with upstream

* Fix divide by zero, case when heap is 100% allocated.

* Removed extra line.

* Fixed block count for debug build. This resolves OOM events for debug build.
Correct overstepping array when freeing.

* Handle another corner case in example HeapMetric.ino.
Comment corrections.

* Revert - ESP.getMaxFreeBlockSize() is back to indicating the size of a
contiguous block of memory before the umm_malloc overhead is removed.

* Stale code cleanup and comment improvements
2020-06-07 20:00:15 -07:00
Dirk O. Kaar
0d04124b94
EspSoftwareSerial service release 6.8.2. (#7354) 2020-06-07 12:46:53 -07:00
Earle F. Philhower, III
8693ad4d8b
Use a prebuild, portable Python3 for OSX (#7348)
It seems like Macs don't have a consistent version or way of installing
Python3.  Use a prebuild binary instead of attempting to use the OS X
Python3 interpreter.
2020-06-07 12:12:43 -07:00
Earle F. Philhower, III
e70092ca3e
Recognize MSYS(MINGW) as Windows for toolchain get (#7358)
Add the ID string reported by MSYS's latest tools under Windows with
the string "MINGW..." as "Windows" for toolchain selection in get.py
2020-06-07 10:53:48 -07:00
david gauchard
45feadcb4a
emulation on host: various fixes (#7355)
(trying to compile LEAmDNS2)
2020-06-07 10:12:04 -07:00
Max Prokhorov
23febc189b
elf2bin.py objcopy cleanup (#7351)
* elf2bin: clean-up after objcopy, use kwargs interfaces

* unique names for segments

* names

* run with python2, just os.remove file after use
2020-06-06 16:08:16 -07:00
vdeconinck
c3796a4de5
Graph example (#7299)
* New Graph Example

* Now using isFlashInterfacePin() no define default GPIO mask.

* Added info about zooming.

* Adressed requested changes (boolean > bool,
using esp8266::polledTimeout::periodicMs, reducing complexity)
2020-06-02 20:59:16 -04:00
Earle F. Philhower, III
8ee67ab2b5
Return FALSE on seek past EOF (#7324)
Fixes #7323

While I'm not a fan, the Arduino FileSeek API online shows that a seek()
past EOF should return FALSE.
https://www.arduino.cc/en/Reference/FileSeek

SPIFFS and SDFS obey this, but LittleFS followed the POSIX standard or
allowing seeks past EOF.

Update LittleFS::seek() to follow the Arduino API and add tests for it.
2020-05-30 21:47:53 -07:00
Amadeus
27ef03fc05
Add documentation on recovering from deep sleep with WAKE_RF_DISABLED (#7338)
* Clarify how to enable WiFi after DeepSleep

* Add FAQ item for recovering from DeepSleep

* Reference issue

* Update issue URL
2020-05-29 14:14:45 -04:00
Develo
0d43338a37
Add FTP client/server lib link (#7336) 2020-05-29 10:12:46 -04:00
Mike Nix
51daecc236
Xmc flash 2 (#7317)
* Remove unnecessary XMC support from eboot

eboot is always run with the flash access speed set to 20MHz, so
there is no need for special treatment of XMC chips.

* After eboot copies the new firmware into place, verify the copy.

If the data written to flash is as expected, the line cmp:0 will be displayed
after the usual @cp:0 from eboot.

* Disable interrupts during the precached part of _SPICommand()

For some reason this was an issue during the reboot after an OTA update.
2020-05-26 20:04:49 -04:00
Earle F. Philhower, III
0deb87483e
Document ESP.getMaxFreeBlockSize() != max malloc size (#7328)
Fixes #7322.  Because of UMM internals, the largest `malloc()`able block
will be smaller than the largest contiguous free RAM block.  Note in the docs.
2020-05-26 14:00:41 -07:00
david gauchard
52b3e5b7b3
rotate right (#7320) 2020-05-20 22:18:59 +02:00
Earle F. Philhower, III
5762712277
Bring SPIFFS up to latest version (#7276)
Manually merged the PATCH files from upstream up until Jan 26, 2020.

Looks to only fix a single bug related to reading past the end of a file
in certain cases.  Other new features (secure erase) are included to
make it easier to merge any future releases, but are not enabled in the
core.

Merges included:
20fc6df0ab2bee391961b5f823a327887abc96b4
da1cf494796d68bb5c02ba70cf78a904db08a170
13935985cdde6d6b4ec77f2685264242ee55e7ac
ec68ba8208d7550860e4e78299d58a529b88bf85
f59d958e0b2f169b549e5cdc293a70bc6873cd45
f7d3e9f2b207958dfc2c01cf3fc42f98a4b9b239
554b59c147d96223ccce18374989f191f7222b45
07e013056dd976d12ae36db5c54a275e1497f6c8
d0d44c4908efff7a443ed9b1174d9173fb784a72
3cb24dbfd32a396dca46a7ca56a8e75bdcb97078
8172b40813ff36aa0df4c88a6e9c76e5300d7e32
2020-05-18 20:48:18 -07:00
s-hadinger
7c008e31bb
Flash size reduction for mime-type (#7312)
* Flash size reduction for mime-type
* moving from fixed size strings to standard PROGMEM strings
* adding `#define MIMETYPE_MINIMAL` to reduce the footprint to
  mime-types that are strictly necessary

* Added MIMETYPE_MINIMAL conditionals
2020-05-18 20:16:11 -07:00
s-hadinger
3e4d7c76c4
Allow non-aligned PSTR() (#7275)
* Allow non-aligned PSTR()

* Add PSTR4() macro to first 4-bytes aligned PSTR
2020-05-18 15:21:50 -04:00
aerlon
1b20cd6263
- Add required BearSSL include in header. (#7310)
Co-authored-by: Anders <andlo151@student.liu.se>
2020-05-18 13:54:25 -04:00