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

3820 Commits

Author SHA1 Message Date
Erriez
c82c6840e4 Add WiFi persistent to WiFi Multi example 2020-10-15 20:03:56 +02:00
Erriez
00673e05fb
Merge branch 'master' into feature/issue-2246-multi-wifi-hidden 2020-10-15 19:57:47 +02:00
Erriez
0d94b5f560 Add support for hidden AP's 2020-10-15 19:56:27 +02:00
hreintke
9003b02889
MDNS MultiInterface (#7636)
* MDNS MultiInterface
* Move strlcat & strlcpy to __cplusplus
* Add LwipIntfCB.cpp to Makefile
2020-10-15 10:39:55 -07:00
Develo
1c624dd76a
BREAKING: Add Wrong Password wifi status case (#7652)
* Add Wrong Password wifi status case
* Add wrong password case for status return
* Add wrong password case for debug
* Add Wrong password case to interactive example
* Add case for wrong password to station doc
* Add case for wrong password to resumeFromShutdown
* Add wrong password case to wifi readme
* Update ESP8266WiFiGeneric.cpp
2020-10-15 09:52:17 -07:00
Drzony
79ea883fb3
New flash writing method with offset/memory/size alignment handling (#7514)
* Do not write more data than requested on PUYA flashes

* Always align flash reads/writes to 4 bytes

* fixup! Always align flash reads/writes to 4 bytes

This commit simplifies the code a bit and fixes a bug that caused wrong number of bytes to be
written

* fixup! Always align flash reads/writes to 4 bytes

* fixup! Always align flash reads/writes to 4 bytes

* Check for result before additional read/write

* Add overloads for unaligned reads/writes

* fixup! Add overloads for unaligned reads/writes

* fixup! Add overloads for unaligned reads/writes

* fixup! Add overloads for unaligned reads/writes

* fixup! Add overloads for unaligned reads/writes

* fixup! Add overloads for unaligned reads/writes

* fixup! Add overloads for unaligned reads/writes

* fixup! Add overloads for unaligned reads/writes

* Add tests for flashRead/flashWrite

* fixup! Add overloads for unaligned reads/writes

* fixup! Add tests for flashRead/flashWrite

* fixup! Add tests for flashRead/flashWrite

* fixup! Add overloads for unaligned reads/writes
2020-10-14 22:21:41 -07:00
Earle F. Philhower, III
200e47fc7b
Fix error when debug enabled but no port chosen (#7648)
When the debug level for the device includes SSL but the debug port is
chosen as "None," don't attempt to write debug messages.

Fixes #7638
2020-10-09 15:54:39 -07:00
david gauchard
bc2b13ae16
LEAmDNSv2: change a macro name to be independant from LEAmDNS1 (#7640) 2020-10-07 12:31:56 +02:00
Max Prokhorov
36b444dba3
Allow test framework to use cores/esp8266/Arduino.h directly (#7377)
* Allow test framework to use cores/esp8266/Arduino.h directly
* fix wps debugging
* some more missing debug.h
* Hunt down debug.h and roll-back
  TODO: rename it to something else... it is an internal header
* Move abs+round checks to test/device/test_sw
* Restore macros for C code
* fixup! Move abs+round checks to test/device/test_sw
* Fix bad c/p, actually try round with ints
* tweak c macros per review
* fix gcc-10 missing cerrno include
2020-10-06 16:18:00 +02:00
Kevin Sidwar
7ba31010be
Update OTA HTTP Server Header Information (#7633)
The headers sent when an OTA update is requested of an HTTP server have changed in the code. This change is to update the documentation accordingly. PHP sample code was changed but not tested.
2020-10-06 12:49:27 +02:00
Harald
01cfc54ccb
Add missing sntp_init/sntp_stop (#7628) 2020-10-06 12:31:45 +02:00
Dirk Mueller
4aeb0f5cca
Use direct member initialization instead of ctr initialisation (#7558)
* Use direct member initialization instead of ctr initialisation

This removes a bit of code repetition.

* Add symbolic names for member initializers
2020-10-05 13:56:08 -07:00
Harald
8b8639e833
Prevent rewriting Updater_Signing.h if content unchanged (#7627) 2020-10-03 12:47:30 -07:00
Develo
d0300806cd
Merge pull request #7631 from Erriez/feature/documentation-wifi-multi
Add WiFi Multi to readme.rst
2020-10-03 14:42:30 -03:00
Erriez
9c9e193f7f Add WiFi Multi to readme.rst 2020-10-03 17:14:25 +02:00
Earle F. Philhower, III
85ba53a249
Remove stray axtls refs, deprecated compat funcs (#7626)
Remove the axTLS compatability functions from WiFiClient/ServerSecure,
device tests for axTLS, and any document refs to axTLS.
2020-10-02 21:39:36 -07:00
Develo
7c8f934d2b
Merge pull request #7619 from Erriez/redesign-wifi-multi
Redesign ESP8266WiFiMulti.[cpp|h]
2020-10-02 16:02:29 -03:00
Develo
fcb5414e02
Merge branch 'master' into redesign-wifi-multi 2020-10-02 15:51:07 -03:00
Develo
93f41dcbb1
Pull deprecated axtls link (#7624)
Pull axtls link, add Espressif's NONOS SDK repo link
2020-10-02 11:30:08 -07:00
Erriez
1e54cb25b0
Merge branch 'master' into redesign-wifi-multi 2020-10-02 18:14:28 +02:00
Erriez
fceb390a1a Redesign ESP8266WiFiMulti.[cpp|h]
Fixed critical issues WiFiMulti library:
- WiFi scan timeout implemented to prevent endless connect loop
- Fallback implemented on WiFi connect failure to prevent endless loop
- Fast WiFi connection at startup
- Improved debug prints
- Doxygen added
- Code maturing
- Example update

Make functions not related to ESP8266WiFiMulti class static
Revert static functions startScan and printWiFiScan()
Use PolledTimeout.h to protect while loops
Move static functions beginning of the file
Add connect timeout to example
2020-10-02 17:37:32 +02:00
Develo
5dbc572b20
Update README.md (#7623)
Fix document version links
2020-10-02 08:29:14 -07:00
Develo
96243d7ccc
Merge pull request #7040 from dok-net/print64bit
Extend Print class for 64bit integers.
2020-09-30 23:09:30 -03:00
Dirk O. Kaar
6f57c222c1 Eliminate code duplication by template for printNumber(...)/printFloat(...).
Move template defintion into cpp file - valid for private member function templates.
2020-09-30 20:29:53 +02:00
Dirk O. Kaar
0b502b3f7b Eliminate code duplication by template for println(...). 2020-09-30 20:29:53 +02:00
Dirk O. Kaar
8c725d5736 Fix for 32bit long used in long long printNumber. 2020-09-30 20:29:53 +02:00
Dirk O. Kaar
7e1d891e84 Revert to explicit calculation of modulo, saving 16 bytes in IROM. 2020-09-30 20:29:53 +02:00
Dirk O. Kaar
af53772e7b Extend Print class for 64bit integers. 2020-09-30 20:29:53 +02:00
david gauchard
f542175009
httpclient: remove deprecated API (#7617) 2020-09-30 09:59:46 -07:00
david gauchard
37ef41ceb0
mdns: #ifndef/#define/#endif (#7615) 2020-09-30 11:03:59 +02:00
Max Prokhorov
cc042b99d1
WString: c_str() returns null pointer after move (#7611)
* (test) WString: c_str() returns null pointer

target = std::move(source) does not reset buffer pointer back to the sso

* wstring: correctly do move invalidation & copy

based on the #7553 without isSSO -> isHeap rename and inline optimizations
additionally, remove useless pre-c++11 preprocessor checks

Co-authored-by: Takayuki 'January June' Suwa <jjsuwa@sys3175.com>
2020-09-27 08:11:52 -07:00
Labor-Et-Ars
a3281fe2f3
LEA mDNS v2 (#7540)
* LEAmDNSv2
2020-09-25 11:12:39 +02:00
Earle F. Philhower, III
faf59f5190
Update to GCC 10.2 (#7607) 2020-09-24 14:25:18 -07:00
Max Prokhorov
c24109fd57
WString: mark move ctor as noexcept (#7610)
ref.
- https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Rc-move-noexcept
- https://rules.sonarsource.com/cpp/RSPEC-5018?search=noexecept
- https://clang.llvm.org/extra/clang-tidy/checks/performance-noexcept-move-constructor.html

> Move constructors of all the types used with STL containers, for
example, need to be declared noexcept. Otherwise STL will choose copy
constructors instead. The same is valid for move assignment operations.
2020-09-23 19:35:32 -07:00
The-MEO
4a24d3cc16
FIX MIME-Type for txt-suffix (#7608)
correct mime is text/plain instead of .txt
2020-09-22 08:41:31 -07:00
The-MEO
3cbf3039bd
FIX StaticRequestHandler crashes when cache_header is null and DEBUG_ESP_CORE is enabled (#7609) 2020-09-22 13:01:01 +02:00
Dirk Mueller
32470fbfab
Avoid #includes with a surrounding namespace (#7560)
untangle the namespace/double inclusions in webserver library.
This is a followup of the discussion in
https://github.com/esp8266/Arduino/pull/6946#discussion_r361582525
2020-09-17 15:35:27 +02:00
Sander van der Horst
e5c84c9503
Update path of gdb (#7603) 2020-09-17 14:04:02 +02:00
Dirk O. Kaar
c883605bd5
EspSoftwareSerial 6.9.0: data/strings in flash alignment handling fix. Yielding during write() improvement. (#7604) 2020-09-17 11:11:39 +02:00
david gauchard
40eb5747e4
sntp: use one time source and fix unsynchronized sntp time stamp (#7595)
* sntp: use one time source and fix unsynchronized sntp time stamp
* show subsecond synchro between time() and gettimeofday()
2020-09-12 18:22:38 +02:00
david gauchard
8418aaf4ef
ci: apt update (#7596) 2020-09-12 15:38:27 +02:00
Ruggero Tomaselli
a460cb7935
Add clear method to IPAddress (#7586) 2020-09-09 12:24:35 +02:00
Ruggero Tomaselli
08f170510d
Check also if IP is not IPADDR_NONE (#7585) 2020-09-09 12:03:41 +02:00
9bryan
8258db53da
Fix error message typo (#7581)
Sorry, I know it's little.  But it eats at me...
2020-09-07 10:46:13 -07:00
gnorbsl
88be34e2dc
Update certs-from-mozilla.py (#7578)
* Update certs-from-mozilla.py

Check if ar exists, if not tell the user what to get to prevent issue #7300 also dynamically get certs instead of hardcoded row item https://github.com/esp8266/Arduino/pull/7573#issuecomment-686192353
changed comment for missing ar exception
updated path and check for openssl
2020-09-07 15:06:36 +02:00
deive
bfecdb0e39
Update DigestAuthorization.ino (Simple example update) (#7579)
Simple example update to pass the method as a parameter to getDigestAuth(), so it is more easily used for POST.
Add setting the ransom seed to RANDOM_REG32 in setup() for better getCNonce() values.
2020-09-04 12:03:55 -07:00
Earle F. Philhower, III
2171a2e852
Fix gzip+signed OTA error (#7577)
The last 4 bytes of a GZIP file is the decompressed file length, and
are used in eboot to do sanity checks and know when decompression is
done.

Updater was incorrectly telling eboot to look at
"end-of-bin + sizeof(signing)", and when eboot did so it got an
incorrect value causing either the update to be skipped or for only a
portion of update to be completed.

Fix by adjusting the size back to the end of binary.
Fixes #7570
2020-09-04 08:57:03 -07:00
Valerii Koval
22a197eea1
Properly replace toolchain in PlatformIO CI script (#7580) 2020-09-04 18:15:02 +03:00
gnorbsl
e636a6587c
Update certs-from-mozilla.py (#7573)
Looks like Mozilla changed the csv, certs are now at row 32
2020-09-02 19:53:54 -07:00
Develo
d02bc02fac
Merge pull request #7547 from earlephilhower/noboom
Don't overwrite boot sector unless OTA changes it
2020-09-02 17:58:08 -04:00