1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-10 14:42:08 +03:00
Commit Graph

3219 Commits

Author SHA1 Message Date
237f7d9b18 ESP8266HTTPClient: allow changing connection timeout using setTimeout (#4038)
Call Client::setTimeout before connection to influence connection
timeout.

Closes https://github.com/esp8266/Arduino/issues/3451.
2017-12-27 23:53:31 -03:00
7fc23c6f7a WiFiUDP: fix crash when calling destinationIP with no packet available (#4036)
Fixes https://github.com/esp8266/Arduino/issues/3989.
2017-12-27 23:15:11 -03:00
db1cfc7772 handle empty uri
http.begin("http://www.google.com") yields an empty uri and makes a broken request "GET  HTTPi/1.1"
2017-12-26 19:14:14 +01:00
4c08389961 ESP8266WebServer: send empty chunk when done sending chunked response
Fixes https://github.com/esp8266/Arduino/issues/3225
2017-12-26 19:13:19 +01:00
9b3583d227 ESP8266WebServer: add CONTENT_LENGTH_UNKNOWN keyword 2017-12-26 19:13:19 +01:00
fac64900dd Configurable WiFiClientSecure connect timeout, better default value (#4027)
* WiFiClientSecure: use _timeout setting when connecting

This timeout value can be customized via a call to setTimeout function.

Closes https://github.com/esp8266/Arduino/issues/3944.

* WiFiClientSecure: increase default connection timeout to 15 sec
2017-12-26 14:01:28 -03:00
ddda374985 WiFiClientSecure: don't trash unread decrypted data when writing (#4024)
* WiFiClientSecure: don't decrypt when testing for 'connected'

* WiFiClientSecure: don't trash unread decrypted data when writing

When application requests to write data, check if there is any unread
decrypted data left. If there is, don't write immediately, but save the
data to be written. When all decrypted data has been consumed by the
application, send out the saved outgoing data.

Fixes https://github.com/esp8266/Arduino/issues/2256.
2017-12-26 11:28:18 -03:00
e4043e9ba7 Fix boundary condition on resize (#4016)
cbuf.size() must be at least one byte larger than cbuf.available() for
logic to work.  reject request to resize = available.
2017-12-26 00:38:07 -03:00
9913e52107 handle tv.tv_usec in settimeofday() (#4001)
optional settimeofday()'s callback
fix #1679
2017-12-24 17:48:25 -03:00
d5bb4a99f6 in example properly wait for NTP to be set (#4000)
fix #3905
2017-12-21 16:27:58 -03:00
d0a4900e2d * extra validation breaking POST/DELETE rest calls (#4003) 2017-12-20 22:28:37 -03:00
355232ff6d boards.txt: missing -DESP8266 + debug menu for -DNDEBUG (#3974)
* boards.txt: add missing -DESP8266 - fix #3973

* + debug menu NoAssert-NDEBUG => -DNDEBUG
fix #3978 and saves ram+flash
on behalf of @earlephilhower
2017-12-18 10:35:47 -03:00
022ea5a872 consequence of ::flush() update: fix potential double free (#3990) 2017-12-18 08:56:18 -03:00
f8b577b6c3 fix WiFiClient::availableForWrite() with no connexion (#3985)
fix #3983
2017-12-18 00:47:56 -03:00
08cdf153d4 added int16_t i2s_available(); it returns the number of samples than can be (#3988)
written before blocking
2017-12-17 21:34:38 -03:00
26980b39e3 fix #1002 ::Flush() wait for empty send buffer (#3967)
* fix #1002 ::Flush() wait for empty send buffer

* WiFiClient::Flush() guarantees that the data has been delivered
option 1 of https://github.com/esp8266/Arduino/pull/3967#discussion_r156901071
10ms max wait according to loaded tcp echo/reply scheme
2017-12-17 13:16:41 -03:00
affd1b37b8 Update generic-class.rst (#3875) 2017-12-17 00:00:09 -03:00
291fdfc141 Update client-secure-examples.rst (#3907)
fix link
2017-12-16 20:01:50 -03:00
89e5a481a7 increase HTTP SEND/POST timeout to 5s (#3971) 2017-12-16 00:01:43 -03:00
58937dd489 check nullptr in ESP8266WebServer (#3958) 2017-12-14 14:38:44 +08:00
4a0cdca28c Export pgmspace symbols to C (#3955) 2017-12-14 14:38:09 +08:00
cc9e799fc1 ci: split into multiple jobs 2017-12-13 23:50:57 +08:00
cb723a5960 realloc bug: fix #3953 (#3957)
fix #3699
2017-12-13 10:30:33 -03:00
bd261c05f1 update and fix current generated boards.txt (#3940)
less confusing lwip versions in menus
fix #3850
fix #3707
fix #3640
fix #3098
fix #2740
fix #2683
fix #2550
2017-12-11 21:20:01 -03:00
7df2858285 Fix comment misnomer (#3939) 2017-12-08 15:58:46 -03:00
7ff3ee91c4 [doc] update client-secure-class.rst (#3924)
add limitations of tls connection
2017-12-08 04:25:18 -03:00
31abb6e5e1 [doc] update HTTPSRequest.ino (#3925)
add limitations of https connections
2017-12-08 03:38:19 -03:00
3b0c395837 cleanup warnings (#3934) 2017-12-08 02:08:54 -03:00
eb494065b4 Merge pull request #3894 from esp8266/ivankravets-patch-2
CI: Use updated staging dev/platform without "_stage" suffix
2017-11-30 01:23:25 +02:00
6e75ae49ad CI: Use updated staging dev/platform without "_stage" suffix 2017-11-30 00:10:50 +02:00
7b09ae5f69 Bug #3795 (#3858)
* fixes #3795

* adds beacon_interval and authmode to softap_config_equal
2017-11-22 19:01:22 -03:00
c40d8a990e adds WiFi.getPersistent() (#3857) 2017-11-22 18:08:28 -03:00
fecacf167c Added Serial.setRxBufferSize method description in libraries reference document (#3862)
* Added null pointer check

* Fixed typo

* Added Serial.setRxBufferSize method description in libraries reference document
2017-11-22 14:30:11 -03:00
9dcc580aef Add compatibility check for ::config() method with arduino arg order (#3860) 2017-11-22 10:22:11 -03:00
7de58d9671 Fixed broken links in ota_updates/readme.rst
Replaced links to filesystem.md with filesystem.rst
2017-11-21 20:51:50 +08:00
03f1a540ca Added constant time string comparison to avoid possible time-based attacks. (#3836)
* Added constant time strings comparison to avoid possible time-based attacks

* Fixed data types

* Fixed indentation

* Moved string comnparison in constant time to String class; modified function body to assure constant time comparison despite compiler optimizations

* Removed wrong code

* Fixed error and prevented compiler optimization to delete u1 local variable

* Avoid timing attacks on string comparison

* Minor

* changed counter names, removed else
2017-11-21 01:56:05 -03:00
cbfbc1ad63 lwip2 fixes and time/ntp management
core: +settimeofday()
core: +coredecls.h +sntp-lwip2.c
core: fix clock_gettime() with micros64()
core: honor DST in configTime()
core: internal clock is automatically started
examples: +esp8266/NTP-TZ-DST.ino
lwip2: sntp client removed
lwip2: fix crashing with WiFi.softAPConfig(ip,ip,ip)
fix #3852
2017-11-21 10:50:48 +08:00
2f09ea7117 refactor of WiFiMulti::run to reduce complexity and remove dead code (#3847) 2017-11-20 21:46:12 -03:00
cb0a30c22b Removed unused function that serves no purpose (#3854) 2017-11-20 17:51:25 -03:00
422f35938a Added length and operator[] methods, added some constness, missed dirty clear (#3855)
* Added length and operator[] methods, added some constness, missed _dirty clear

* Added forgotten const
2017-11-20 16:25:52 -03:00
1b76e9bf72 Clear dirty flag in begin and reallocate only if necessary, add getConstDataPtr method (#2217) (#3849) 2017-11-20 14:39:27 -03:00
117bc875ff Fix too wide 'word' type -- it should be 16-bit instead of 32-bit (#3851) 2017-11-19 19:42:15 -03:00
78b0f44348 fixes #3795 (#3796)
don't ignore ret when handling AP enable/disable in softAPdisconnect
2017-11-17 20:28:34 -03:00
Luc
bec6a4d302 Fix ESP8266NetBIOS to compile with lwip V2 (#3823)
* Fix to compile with lwip V2

* Add changes suggested
2017-11-17 18:02:22 -03:00
397592fce7 fixes #3793 (#3794)
wifi_softap_set_config always fails, password cannot be 0 unless authmode is open, no documentation found, trial and error.
2017-11-17 15:20:40 -03:00
Luc
d1e8fe99a2 Fix compilation with LWIP v2 (#3822) 2017-11-17 00:33:19 -03:00
9f2dcd6892 Fix ESP8266LLMNR for build with lwip2 (#3821)
* Fix for build with lwip2

* Fix for lwip2: Removed unnecessary #ifdefs

* Remove duplicate define for BIT
2017-11-16 13:41:24 -03:00
5b925697ec Added micros64 and used to fix and improve gettimeofday. 2017-11-14 12:44:41 +08:00
303a71deea Servo: fix arg types for std::min/max 2017-11-05 14:46:36 +08:00
7ad89e58cd Use isnan and isinf from std:: 2017-11-05 14:46:36 +08:00