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

2949 Commits

Author SHA1 Message Date
Develo
cda72a07e0
Changed TIM_DIV265 for deprecation (#4326) 2018-02-08 14:07:47 -03:00
Doanh Văn Lương
f6f977fb03 fix links for read the docs (#4293)
* fix links for read the docs

* fix typo

fix typo in link
2018-02-08 01:17:36 -03:00
Develo
bb5787a1cd
Fix mdns buffer overrun by 1 (#4317)
* fix mdns buffer overflow, minor indent/prettify
2018-02-07 14:39:27 -03:00
david gauchard
85fb3d9b44
boards: Wemos D1 R1 needs a separate defined identifier (#4304) 2018-02-07 15:36:26 +01:00
david gauchard
4caf4878c7 LED_BUILTIN should be a #define (#4276)
* LED_BUILTIN should be a #define
deduplicate and hide BUILTIN_LED as a deprecated constant

* test for LED_BUILTIN existence

* board:espino:variant: rename button macro (naming coherence)
2018-02-07 10:42:57 -03:00
david gauchard
b15102ad28 doc/faq: tcpCleanup (#4314) 2018-02-07 09:09:25 -03:00
Develo
bcbd5961c0
add begin(port) to esp8266webserver, move some strings to flash, some refactoring (#4148)
* add begin(port) to esp8266webserver, move some strings to flash, some refactoring

* Moved more strings to flash, unified some strings

* move mimetable strings into a standalone file

* more string moves to flash, remove duplicates, refactor of template method, minor styling

* Reverted moving small string to flash (no heap advantage, reduces bin size)
2018-02-07 00:30:07 -03:00
david gauchard
0339bbb11c lwip2: use only wifi_station_get_hostname() to set netif hostname (#4299)
* lwip2: use only wifi_station_get_hostname() to set netif hostname
fix #3970

* lwip2 comments on hostname
2018-02-06 23:23:27 -03:00
david gauchard
64885fd5cf
minor cosmetics (dead code, -Wallextra) (#4274) 2018-02-07 01:34:46 +01:00
Develo
83f6d83db0
Fix RTCmem example buffer access past end (#4288) 2018-02-06 20:54:03 -03:00
Develo
9694b3e688
Fix spiffs lseek typo for seek_end (#4287) 2018-02-06 19:59:16 -03:00
Earle F. Philhower, III
4c23e66bba
SSL server DEBUG, code cleanup fixes (#4280)
The server needs to load an X509 and RSA key, but instead of using
the existing loadObject() calls implemented its own.  Remove them and
use the standard ones instead.

The DEBUG_OUTPUT macro was undefined in the SSL Web server.  Add it
in do that when you compile with DEBUG=HTTP_SERVER it actually compiles.
2018-02-06 07:33:26 -08:00
Earle F. Philhower, III
c8dbfb160b Refrech api.github.com x509 certificate (#4306)
The certificate fingerprint included with the HTTPSRequest example seems
to be for an expired api.github.com certificate.  Replace with the current
one to avoid reporting "certificate mismatch" errors when running.
2018-02-06 11:06:05 -03:00
Ivan Kravets
c3bd91af28
Merge pull request #4294 from esp8266/ivankravets-patch-1
Update integration with @PlatformIO
2018-02-05 16:38:14 +02:00
Ivan Kravets
e3074e9575
Update integration with @PlatformIO 2018-02-05 12:53:02 +02:00
Earle F. Philhower, III
e38f19e008
Remove warnings when NDEBUG build option used (#4196)
When building using the new NDEBUG option recently added, the assert()
macro is defined to nothing. This leaves a few variables unused in the
WiFi stack causing compiler warnings. Add in empty casts to remove
these warnings. Does not affect actual assert use when NDEBUG is not
defined.
2018-02-04 20:59:31 -08:00
Doanh Văn Lương
4e115917ae fix dead link docs (#4221) 2018-02-05 00:57:58 -03:00
david gauchard
29c9ebea32
update lwip menu (#4286) 2018-02-03 22:02:29 +01:00
david gauchard
199fe0f16d
ClientContext:_write_some: release buffer once data really accepted for sending (#4265)
may fix #1872
2018-02-01 11:49:04 +01:00
Develo
9ba8f77678
Check that pins needed by Wire are defined at compile-time (#4261) 2018-01-30 14:59:47 -03:00
NameOfTheRose
4bafbe5514 WiFiTelnetToSerial Example - Minor Issues #2435 (#4255)
* WiFiTelnetToSerial Example - Minor Issues #2435

* WiFiTelnetToSerial Example - Minor Issues #2435

Patch to rectify issue #2435
2018-01-29 14:12:22 -03:00
NameOfTheRose
84228b1c73 Nameoftherose patch for Issue #2435 (#4256)
* WiFiTelnetToSerial Example - Minor Issues #2435

* WiFiTelnetToSerial Example - Minor Issues #2435

Patch to rectify issue #2435
2018-01-29 13:28:28 -03:00
devyte
8da1d78cb4 Change argument to Esp.deepSleep from uint32 to uint64 to match SDK, add deepSleepMax based on the cali_proc function per SDK 2018-01-28 19:12:12 +08:00
david gauchard
8b87491700
new board generator option: --nofloat (#4232) 2018-01-27 11:10:59 +01:00
Maurice Ribble
4e539b2618 Add a new resetmethod_menu_all macro (#4241)
* Add a new resetmethod_menu_extra macro to give the choice of all the reset options.  Then only offer all these options for the generic modules.
2018-01-27 02:04:22 +01:00
Maurice Ribble
8a24598d5d Add missing esptool upload modes for none and dtrset (#4228)
* Add missing esptool upload modes for none and dtrset
2018-01-24 15:20:04 +01:00
david gauchard
575c45d1e7
Merge pull request #4222 from boneskull/oak-fix
add missing constants to variants/oak
2018-01-24 13:42:55 +01:00
Christopher Hiller
87b9097399
add missing constants to variants/oak 2018-01-22 23:25:35 -08:00
Earle F. Philhower, III
589eb29eb3 Clear calloc block only if malloc succeeds
Calloc was calling memset(0) on NULL when its implicit malloc failed,
causing a crash in UMM.  Instead, only do the memset if the memory
allocation succeeds.

Fixes issue #4207
2018-01-21 13:54:53 +08:00
Kristijan Gjoshev
0fe725909e Update I2S base frequency and frequency dividers to real ones (#4031)
* Fix I2S base frequency
* Update frequency dividers for I2S
Reference: https://github.com/espressif/ESP8266_MP3_DECODER/blob/master/mp3/driver/i2s_freertos.c
* fixed i2s_set_rate, added i2s_get_real_rate() and i2s_set_dividers
* Minimise float calculations
2018-01-20 15:58:42 -08:00
Develo
38fe6fc488
Add timeout to WiFi connection loop in WiFiMulti (#4146) 2018-01-20 14:45:54 -03:00
david gauchard
dd00db1b8c check ClientContext's this and _pcb once out of the ::connect() delay (#4194)
fix #4078
2018-01-18 21:20:33 -03:00
egemenertugrul
d5c43f0102 Utilized UPDATE_ERROR_ERASE, added _setError function and refactored code (#4190)
* Added _setError function in the header file

_setError function wraps a few lines to eliminate repetitiveness when debugging for errors.

* Added _setError function

_setError function wraps a few lines to eliminate repetitiveness when debugging for errors.
2018-01-18 13:34:35 -03:00
Develo
b08ff10269
Rework of arduino compatibility in WiFiSTAClass::config (#4145) 2018-01-17 15:30:24 -03:00
Earle F. Philhower, III
bb794f9e02 Move C++ vtables into IRAM, out of HEAP (#4179)
GCC places vtables in .rodata, with a mangled name of "_ZTV*."  Because
these are simply address jump tables, there is no need to place them in
RAM.  Instead, have the linker place them in the .text (aka IRAM) section.
This will free up a variable amount of heap space, depending on the number
of classes with virtual functions used in any particular project.
2018-01-17 14:10:40 -03:00
david gauchard
074402e23b
Merge pull request #4150 from d-a-v/lwip
restore zalloc() + lower lwip2 ram and flash footprint
2018-01-15 17:09:25 +01:00
David Gauchard
de2a3821f6 lower lwip2 ram and flash footprint (by disabling old asserts) 2018-01-15 09:51:33 +01:00
David Gauchard
23a7bc2939 restore zalloc() (lost with OOM debug commit, used by lwip/lwip2) 2018-01-15 09:51:33 +01:00
Peter
12f336fa5f Case change and and 'none' reset option for Digistump Oak (#4143)
* Case change and and 'none' reset option for Digistump Oak

The logo is 'digiStump', but is always written in text form as 'Digistump'. 

The generator fixed an issue with the release version of 2.4.0 not having a resetMethod for the Digistump Oak, and hence not being able to be uploaded to without modifying the boards.txt file. However, the Oak doesn't support auto-reset via serial - it was primarily designed to be a cloud-programmed board.

* Regenerated boards.txt
* Regeneration of doc/boards.rst
2018-01-15 04:19:52 +01:00
Zandt Tittle
ca25068733 initialize io_ctx to nullptr 2018-01-12 18:39:10 +08:00
Develo
02259a412c
fixed support for psk in WiFiSTA, added support for psk to WiFiMulti, minor code cleanups (#4076) 2018-01-10 23:15:24 -03:00
Parham Alvani
332e059724 ESP8266HTTPClient: add digest authentication example (#4112) 2018-01-10 16:27:25 +08:00
Earle F. Philhower, III
bd1c7ce1dc Add SSL enabled WiFiServer, Updater, WebServer
Adds SSL server mode for WiFiServerSecure, for plain SSL connections,
ESP8266WebServerSecure, for HTTPS web serving, and SecureHTTPSUpdater for
encrypted OTA updates.

Example code is provided for all new options, as well as a BASH script for
generating their own, self-signed certificates.

Both ESP8266WebServerSecure and SecureHTTPSUpdater are important for secure
password-based authentication.  HTTP Basic Authentication, the only supported
model presently, sends the username and password in *cleartext* and therefore
should *never* be used in any un-SSL encrypted channel unless you don't mind
sharing your login and password with anyone else on the internet.  Even if the
ESP8266 is not safety critical, this cleartext broadcast could expose you should
you reuse this password elsewhere on your network or the internet.
2018-01-10 11:56:32 +08:00
Luis Carlos Becerra Rueda
8765da258b Added WifiServer::begin(uint16_t port) method, listening port can be changed at runtime (#4123) 2018-01-09 22:10:43 -03:00
Ivan Grokhotkov
2c8b2b92ce tests: minor fixes, add README.md 2018-01-09 15:59:08 +08:00
Ivan Grokhotkov
e7127118c6 tests/device: clean up requirements.txt, use latest versions 2018-01-09 15:59:08 +08:00
Ivan Grokhotkov
74ba914ced tests/device: add make target to generate test reports 2018-01-09 15:59:08 +08:00
david gauchard
28253c5bd3 boards.txt generator (#3722)
+ generates boards.rst
+ generate and replace boards section in package.json
+ generate ldscripts
+ new debug option: OOM
+ new led menu for generic board
2018-01-08 11:06:01 -03:00
ijm7
4b319d9b0c UpdaterClass::printError now accepts the Print object 2018-01-08 18:35:27 +08:00
david gauchard
f28d2eb7d7 lwip2: fix wdt, fix wifi reconnection (#4105)
related to #4101 #4078 #4060 #4028 and maybe others
2018-01-06 19:34:11 -03:00