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

2792 Commits

Author SHA1 Message Date
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
64885fd5cf minor cosmetics (dead code, -Wallextra) (#4274) 2018-02-07 01:34:46 +01:00
83f6d83db0 Fix RTCmem example buffer access past end (#4288) 2018-02-06 20:54:03 -03:00
9694b3e688 Fix spiffs lseek typo for seek_end (#4287) 2018-02-06 19:59:16 -03:00
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
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
c3bd91af28 Merge pull request #4294 from esp8266/ivankravets-patch-1
Update integration with @PlatformIO
2018-02-05 16:38:14 +02:00
e3074e9575 Update integration with @PlatformIO 2018-02-05 12:53:02 +02:00
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
4e115917ae fix dead link docs (#4221) 2018-02-05 00:57:58 -03:00
29c9ebea32 update lwip menu (#4286) 2018-02-03 22:02:29 +01:00
199fe0f16d ClientContext:_write_some: release buffer once data really accepted for sending (#4265)
may fix #1872
2018-02-01 11:49:04 +01:00
9ba8f77678 Check that pins needed by Wire are defined at compile-time (#4261) 2018-01-30 14:59:47 -03:00
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
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
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
8b87491700 new board generator option: --nofloat (#4232) 2018-01-27 11:10:59 +01:00
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
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
575c45d1e7 Merge pull request #4222 from boneskull/oak-fix
add missing constants to variants/oak
2018-01-24 13:42:55 +01:00
87b9097399 add missing constants to variants/oak 2018-01-22 23:25:35 -08:00
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
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
38fe6fc488 Add timeout to WiFi connection loop in WiFiMulti (#4146) 2018-01-20 14:45:54 -03:00
dd00db1b8c check ClientContext's this and _pcb once out of the ::connect() delay (#4194)
fix #4078
2018-01-18 21:20:33 -03:00
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
b08ff10269 Rework of arduino compatibility in WiFiSTAClass::config (#4145) 2018-01-17 15:30:24 -03:00
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
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
de2a3821f6 lower lwip2 ram and flash footprint (by disabling old asserts) 2018-01-15 09:51:33 +01:00
23a7bc2939 restore zalloc() (lost with OOM debug commit, used by lwip/lwip2) 2018-01-15 09:51:33 +01:00
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
ca25068733 initialize io_ctx to nullptr 2018-01-12 18:39:10 +08:00
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
332e059724 ESP8266HTTPClient: add digest authentication example (#4112) 2018-01-10 16:27:25 +08:00
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
8765da258b Added WifiServer::begin(uint16_t port) method, listening port can be changed at runtime (#4123) 2018-01-09 22:10:43 -03:00
2c8b2b92ce tests: minor fixes, add README.md 2018-01-09 15:59:08 +08:00
e7127118c6 tests/device: clean up requirements.txt, use latest versions 2018-01-09 15:59:08 +08:00
74ba914ced tests/device: add make target to generate test reports 2018-01-09 15:59:08 +08:00
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
4b319d9b0c UpdaterClass::printError now accepts the Print object 2018-01-08 18:35:27 +08:00
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
89837fcea5 lib/Ticker: add bool active() (#2722)
* lib/Ticker: add bool active()

Makes it easier to self detach, and check if a timer is still operating.

Signed-off-by: Karl Palsson <karlp@tweak.net.au>

* Code cleanup Ticker.cpp
2018-01-05 01:04:53 -03:00
9cfbbc7ad3 keepalive api (default 2h,75s,9 not enabled) (#3937) 2018-01-05 00:17:37 -03:00
fb7c519856 small fix to stop crash on unrecognized packets (#4092) 2018-01-04 20:10:46 -03:00
a19ff3517e Update ArduinoOTA.cpp to solve #4086 (#4090)
* Update ArduinoOTA.cpp

* Update ArduinoOTA.cpp
2018-01-04 18:48:56 -03:00
d9ef6b5f18 ArduinoOTA: don't crash on unrecognized packets (#4086)
* ArduinoOTA: handle end of packet in readStringUntil

fixes #3912

* ArduinoOTA: fix buffer overflow in parseInt

fixes #3912
2018-01-04 00:14:32 -03:00
82e5186786 Merge pull request #4079 from esp8266/ivankravets-patch-piocore35
Add support for @PlatformIO Core 3.5.0
2018-01-03 16:04:10 +02:00
411f8d878f Add support for @PlatformIO Core 3.5.0 2018-01-03 15:33:55 +02:00