1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-12 01:53:07 +03:00
Commit Graph

2542 Commits

Author SHA1 Message Date
b0bb1e144f Fix issue with UdpContext.h comment (#4068) 2018-01-02 10:16:06 -03:00
06f21f28b4 bump version number 2018-01-02 07:37:22 +08:00
4ceabea9c3 bump version for platformio 2.4.0 2018-01-02 07:26:39 +08:00
8941404e63 get.py: identify aarch64 properly (#4050) 2018-01-02 02:17:21 +03:00
ed83304179 Python 3.6 invalid escape sequence deprecation fixes
https://docs.python.org/3/whatsnew/3.6.html#deprecated-python-behavior
2018-01-01 17:53:27 +03:00
7dca0727e1 Python 3 syntax fixes 2018-01-01 17:53:27 +03:00
8edeac0cf4 sdk: rename hostname and default_hostname symbols (#1281)
hostname -> wifi_station_hostname
default_hostname -> wifi_station_default_hostname
2017-12-31 22:52:00 +08:00
9183366734 fix IDE's OTA when using MSS != 1460 2017-12-31 12:15:16 +03:00
f9c60a226a Prevent endless loop in run_scheduled_functions (#4048) 2017-12-31 03:53:42 -03:00
b2e2d2272f lwip2: fix minor "C" conflict (#4052) 2017-12-30 23:46:42 -03:00
b4653f4d44 Fix URL parameter decoding in web server (#3313)
* Make HTTP server test data easier to examine

* Add HTTP server parameter tests containing & and =

* Fix URL parameter decoding in web server

The parameters string needs to be first split on & and =, and URL
decoding on parts done after that. Otherwise URL encoded & and = within
parameter names and values cause incorrect splitting.
2017-12-30 14:24:37 -03:00
4ab89d07fc ESP8266WiFiMulti: Add count function (#3073)
Return total number of AP added

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2017-12-30 13:16:47 -03:00
a2d16f38d4 Extern C blocks (#1352) (#4044)
* Add extern C guard blocks to SDK header files #1352

* fixed some extern C blocks in core and libraries
2017-12-30 02:03:26 -03:00
1cd4a00cff Remove compiler warnings (#4043) 2017-12-29 13:14:56 -03:00
a71118caeb Improve error messages (#2800)
I was having trouble understanding what some of the serial output meant so I changed it to the best of my ability
2017-12-29 11:49:29 -03:00
2b868aac00 allow disabling global Serial and Serial1 object (#2807)
allow the user to disable specific global `Serial` objects to save
memory.

that's 0x1c bytes per object.
2017-12-29 11:11:00 -03:00
28803540a2 Added String hostname support to WiFiClient and WiFiClientSecure (#3349)
* Added String hostname support to WiFiClient and WiFiClientSecure

* Typo in WiFi
2017-12-29 01:58:36 -03:00
0b2df35117 follow arduino API: pure virtual Stream::flush() moved to empty virtual Print::flush() (#4029)
re fix #4018
2017-12-29 01:16:41 -03:00
370e75cb47 multi-mss menus for lwip2, remove lwip xcc variant, lwip2 readme, updates and fixes (#4039)
lwip2 updates:
  > multi-mss makefile
  > forwardported espconn (no multicast yet)
  > restore max 3 ntp servers for configTime() coherency
  > unchain seldom chained pbufs
  > dns cache name length back to (256->48->) 128
  > use sntp_stop/start() when dhcp address got
  > fix netif's hostname glue-handling
  > forwardported ping from lwip1.4
fix #3970
fix maybe #3963
2017-12-29 00:48:31 -03:00
1540369c40 Set architecture=esp8266 for bundled SD and Ethernet libraries (#4035)
Fixes https://github.com/esp8266/Arduino/issues/3868.
2017-12-28 12:21:55 -03:00
7dd50360b9 Fix bug in WiFiClientBasic.ino (#3902) 2017-12-28 09:47:10 -03:00
3838e58f62 WiFiClientSecure: don't use the broken max_fragment_length extension (#4033)
axTLS does not correctly implement max_fragment_length extension. This
causes servers which understand this extension (currently GnuTLS- and
WolfSSL-based) to reject the client hello.

Until this is fixed in axTLS, remove the call to enable this extension
from WiFiClientSecure.

Fixes https://github.com/esp8266/Arduino/issues/3932.
2017-12-28 01:45:49 -03:00
a7984b65dc Update a02-my-esp-crashes.rst (#3950)
* Update a02-my-esp-crashes.rst

Added section Other causes for crashes with ISR, Async callbacks, memory guidelines, stack.
Fixes #1388 .

* Update a02-my-esp-crashes.rst

Minor typos and text fixes

* Update a02-my-esp-crashes.rst

Fixed stack size typo
2017-12-28 00:41:45 -03:00
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