1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-21 10:26:06 +03:00

3578 Commits

Author SHA1 Message Date
Ivan Grokhotkov
f6d232f1ac WiFiClientSecure: match CN and SANs ignoring case
Some websites have certificates with uppercase letters in CN. This change
makes _verifyDN function accept such certificates by converting all names
to lower case before comparing them.

Resolves #2978
2.4.0-rc1
2017-05-21 22:00:33 -05:00
Ivan Grokhotkov
a8e8ecb687 WiFiClientSecure: add example of setCACert/verifyCertChain
Ref #1851
2017-05-21 22:00:33 -05:00
Ivan Grokhotkov
79cfad5d46 WiFiClientSecure: initialize ssl_ctx when loading certificate
Fixes #2470
2017-05-21 22:00:33 -05:00
Ivan Grokhotkov
f211014dd3 SPIFFS: fix unaligned read in HAL (#3261)
Ref. #3065
2017-05-21 10:30:03 -05:00
Ivan Grokhotkov
4812cae8e2 WiFiClient: initialize _timeout properly 2017-05-20 12:20:03 +08:00
Ivan Grokhotkov
3363be0063 ci: fix -e flag not restored in build_sketches on error 2017-05-20 12:13:20 +08:00
Ivan Grokhotkov
684b5f1629 WiFiClient: set default timeout to 5000ms for compatibility 2017-05-19 09:35:01 -05:00
Ivan Grokhotkov
71512653ca WiFiClient: use Stream::_timeout for write operations 2017-05-19 09:35:01 -05:00
Ivan Grokhotkov
eebcc656ed WiFiClient: add support for connect timeout 2017-05-19 09:35:01 -05:00
Ivan Grokhotkov
2aeac91c90 ESP8266WiFi: support timeout for WiFi.hostByName 2017-05-19 09:35:01 -05:00
david gauchard
85078f47a0 yet less warnings for Wall Wextra guys 2017-05-18 06:43:22 -05:00
david gauchard
fed925149b update readme about automated crash with GDBStub 2017-05-18 06:43:22 -05:00
david gauchard
8c7d1b780e automate crash for GDBStub 2017-05-18 06:43:22 -05:00
Ivan Grokhotkov
1c4a48dbd8 docs: remove mention that Python 3 is not supported from OTA docs 2017-05-15 18:52:06 +08:00
wuweixin
0fa34430e6 ESP8266WebServer: add application/json content type 2017-05-15 18:38:24 +08:00
Ivan Grokhotkov
f3be2cd081 Update readme 2017-05-15 17:14:33 +08:00
Ivan Grokhotkov
a3a7e87df7 ci: build and upload releases on Travis 2017-05-15 03:49:21 -05:00
sticilface
d7044eceab Add PROGMEM docs 2017-05-14 11:44:16 -05:00
Ivan Grokhotkov
283eb97cd3 docs: convert to .rst and add readthedocs 2017-05-14 11:44:16 -05:00
Jon Sands
5c7247b0f4 Fix documentation typo (#3240) 2017-05-14 08:46:08 -05:00
André
9fd270faf1 Documenting a few Esp.cpp methods (#3057)
Adding: getCoreVersion, getSdkVersion, getCpuFreqMHz, getSketchSize, getFreeSketchSpace and getSketchMD5.
2017-05-14 07:53:15 -05:00
Charles
0b47911b69 Added 1M (No SPIFFS) board option (#3203) 2017-05-12 02:51:20 -05:00
Sven Eliasson
2404a602af Const-correctness for MD5Builder (#3222)
Resolves #1175
2017-05-12 01:03:14 -05:00
Ivan Grokhotkov
ace0622e46 ESP8266HTTPUpdateServer: fix responses after uploading
- fix response not being delivered to the browser after upload is done
  (https://github.com/esp8266/Arduino/issues/2221)

- if Update.begin fails, don’t attempt to write data

- if update is not successful, send error message from Update to the
  client

- move strings into PROGMEM
2017-05-10 09:49:47 -05:00
Korzo
b623613b2a Remove SD file available size saturation 2017-05-09 06:17:55 -05:00
Ivan Grokhotkov
7de81270a3 ClientContext: don’t read DataSource in TCP callback
Previously, _write_some function would be called each time TCP stack
notifies the application that some data was delivered (via the `sent`
callback). In turn, _write_some would obtain more data to be sent from
the DataSource. In case of a DataSource backed by a Stream, this would
read from a stream. Some libraries (such as SD) may call `yield` and
other blocking operations from Stream read function, which can not be
used in TCP stack callbacks.

This change moves the data sending loop back into the Arduino task, with
a negligible loss of performance. TCP callback now wakes the main task
via `esp_schedule`, which performs stream read and provides more data
to the TCP stack.

Possible future optimization would be to buffer Stream data ahead of
time. That way, buffered data could be sent immediately from the TCP
callback. On the other hand, this optimization would need extra TCP_MSS
of temporary storage, per connection.

Fixes #2399.
2017-05-09 06:17:32 -05:00
Ivan Grokhotkov
03baea27ef ArduinoOTA: forward errors from Update.begin to espota.py
If Update.begin fails, instead of printing “No response from device”,
espota.py will print the actual error message from the Updater.
2017-05-09 06:17:06 -05:00
Ivan Grokhotkov
01e1c586cb Updater: if low on heap memory, use smaller write buffer 2017-05-09 06:17:06 -05:00
Ivan Grokhotkov
9b0ad39e94 Updater: check boot mode before starting update
ref. https://github.com/esp8266/Arduino/issues/1017
2017-05-09 06:17:06 -05:00
Ivan Grokhotkov
22c7d792f0 Updater: place debug strings into progmem 2017-05-09 06:17:06 -05:00
Chris Mullins
8b27047911 Put SSDP constants in progmem (#3142)
* Put constant strings in progmem

* strlen -> strlen_P
2017-05-09 06:16:40 -05:00
Ivan Grokhotkov
1d41859238 axTLS: update to 1b2c299
Includes memory optimizations (less .rodata, less heap)
2017-05-09 17:40:52 +08:00
Andrew DeLisa
2881e910ec Fix typo in client-class.md (#3045) 2017-05-08 11:13:32 -05:00
Karl Palsson
0f50fc01d1 readme: update target milestones (#2692)
Signed-off-by: Karl Palsson <karlp@tweak.net.au>
2017-05-08 06:20:17 -05:00
Dhruv Acharya
97373e716d Add instructions how to re-enable DHCP (#2600)
In WiFi.config, if we pass 0.0.0.0 for all three parameters (as local_ip, gateway and subnet mask), it will re enable the DHCP. We need to re connect the device to get the IP from router.
2017-05-08 05:35:40 -05:00
Trygve Laugstøl
2d9e767630 Fixing a few compiler warnings to allow compilation with -Wall -Wextra and -Werror. (#3153) 2017-05-08 04:56:08 -05:00
Pablo Mendoza
db4d3e0098 Free memory we allocated and actually stop i2s. (#3191) 2017-05-08 03:33:20 -05:00
jpmendoza
af0f5ed956 Issue #1062: Implement support for HSPI overlap mode. 2017-05-08 03:04:11 -05:00
Beau Hardy
157698bef9 Base64: add option to disable any newlines in output. (#3208)
Closes #3194
2017-05-08 03:01:24 -05:00
4D Systems
ca3a1728d0 Addition of gen4-IoD Range boards (#3202) 2017-05-06 06:26:58 -05:00
Ivan Grokhotkov
5488792aff package: move toolchains to Github 2017-05-06 10:52:20 +08:00
Chris Mullins
72ed29ad5f allow for overridable value for HTTP_UPLOAD_BUFLEN 2017-05-01 05:33:20 -05:00
Christopher Cooper
0c66c8a88f [Issue #3145] ESP8266mDNS: Improve compliance with DNS-SD RFC6763
- When the "_services._dns_sd._udp.local" meta-query is received, an
enumeration of services types is now returned (e.g. "_http._tcp.local")
instead of an enumeration of instances (e.g.
"MyService._http._tcp.local").  This is consistent with Section 9 of the
RFC.

- When a response is sent, the response records are now properly
partitioned as either answers or additional records.  Only response
records that were explicitly requested as a result of the questions
should be treated as answers.  This is consistent with Section 12 of the
RFC.

- The "MDNSResponder::advertiseServices()" method has been removed as it
was declared as "private" and is no longer being called.  This method
was sending a response on multiple interfaces when available, but this
wasn't really necessary since the interface from which the request was
received that caused it to be invoked is known.
2017-05-01 05:31:10 -05:00
Stephen Warren
2450ec6803 ESP8266mDNS: support multiple interfaces in query code
Add a loop over all known interfaces to queryService() so that it will
find devices attached to all available WiFi networks.
2017-05-01 05:31:10 -05:00
Stephen Warren
4cf7909df9 Fix typo in MDNS multi-interface advertising code
MDNSResponder::advertiseServices() was transmitting all service adverts
on the same interface (AP) rather than once on STA and once on AP. Fix
this simple mistake.

With this change, both "ping esp8266.local" and "avahi-browse -a" see
the ESP8266 from a test Linux PC, on both AP and STA interfaces (where
applicable), with the ESP8266 running mDNS_Web_Server.ino modified for
each of AP-only, STA-only and AP+STA modes.

Note that no attempt has been made to make MDNSResponder::queryService()
operate correctly with multiple interfaces, either in this commit or the
commit this commit fixes.

Fixes: a546d64e07d2 ("ESP8266mDNS: support AP and STA interfaces at once")
Fixes #3101
2017-05-01 05:31:10 -05:00
Ivan Grokhotkov
c5c138ec5a axtls: update to bddda2a0
- update ssl_client_new signature
- add max fragment length negotiation support (hardcoded to 4096 bytes)
- build axtls with -f{function,data}-sections, ~1k less DRAM usage,
  ~3k less flash
- strip prefix from build paths in debug symbols
2017-04-29 22:58:19 +08:00
Ivan Grokhotkov
0b672668bf progmem: replace C version of pgm_read_{word,byte} with assembly
See discussion in https://github.com/esp8266/Arduino/issues/3140
2017-04-28 11:47:09 +08:00
david gauchard
a41f55c469 prepare lwip2 (#3129)
* minimum changes for libraries to compile with lwip2

* add WiFiClient::availableForWrite() (similar to Serial::) which indicates how much data can be sent without buffering
2017-04-25 08:55:01 -05:00
Sergio Tomasello
a9224266f3 Arduino boards with ESP8266 (#3121)
default crystal freq 26M for all boards, 40M for arduino
2017-04-11 10:19:30 -05:00
Ivan Grokhotkov
a01638f3b5 readme: mention axTLS library
fixes https://github.com/esp8266/Arduino/issues/3038
2017-03-13 15:35:06 +08:00