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

38 Commits

Author SHA1 Message Date
Develo
e9d052c621
WIP - Update ArduinoOTA and examples with MDNS.update() calls (#5494)
* ArduinoOTA: allow use without MDNS, add MDNS.update() in handle()

* Update examples with MDNS.update() in loop

* Update CaptivePortalAdvanced.ino

Fix typo

* Update CaptivePortalAdvanced.ino

astyle

* Update Arduino_Wifi_AVRISP.ino

astyle
2018-12-14 03:29:32 -03:00
david gauchard
92373a9837 Deprecate axTLS, update examples (#5366)
* update examples

* fix serial<->tcp example, use STASSID instead of SSID (name collision)

* fix HTTPSRequest.ino

* update AxTLS HTTPS examples, update AxTLS API to deprecated

* fixes

* fixes + fix astyle (no preproc directives) + restyling script

* fix HTTPClient library

* fixes

* common.sh: do not reload arduino when already present (for locally CI testing)

* common.sh: do not reload ArduinoJson when already present (for locally CI testing)

* fix

* fix

* fix deprecated example

* fix WiFiHTTPSServer.ino

* reduce footprint

* wipfix

* fix led builtin

* fix example

* finished updating APSSID on all examples

* style

* restyle examples

* helper to run CI test locally

* local CI runner more verbose

* +const

* deprecation deprecation

* deprecation

* Update NTPClient.ino

const char[] => const char *

* Update interactive.ino

const char[] => const char *
2018-11-29 20:49:27 -08:00
david gauchard
5c4db3acf4
IPv6 on esp8266-nonos-sdk and arduino (#5136) 2018-11-27 23:07:47 +01:00
david gauchard
83a8076db8 ClientContext (tcp) updates (#5089)
* +sync, get/set default nodelay, sync

* default nodelay=1

* update flush()

* fix return value

* ClientContext: put things together

* ClientContext: fix debugging messages

* WiFiClient: move static members out of the class, add comments

* remove circular dependency

* parameter and return value for Client::flush&stop, flush timeout raised to 300ms

* tcp flush: restart timer on ack receive

* OTA protocol needs setNoDelay(true)

* fix Ethernet with Client changes

* 1 line unredable -> 5 lines readable code

* doc

* Update client-class.rst

* Added details for getters
2018-09-25 10:47:27 -03:00
david gauchard
85e68093e9
Automatic stack location selection (SYS or HEAP), enable per library AR-chive in arduino build system (#5018)
Automatic stack location selection (SYS or HEAP), enable per library AR-chive in arduino build system 

* enable dot_a_linkage on internal libraries
* add device tests
* boards generator: deprecate --noextra4k/--allowWPS and fix documentation
2018-08-20 14:35:52 +02:00
Ivan Grokhotkov
61cd8d8385 examples: format all .ino files
This formats all the example source files using Arduino style rules.
2018-03-08 14:32:06 +08:00
Earle F. Philhower, III
f9ac524b13
Add -Werror to acceptance builds for C and CPP (#4369)
Use platform.local.txt to add -Werror to GCC for the build of all
code.  Any warnings on a submitted patch will cause an error.

Several examples and libraries had warnings/errors (missing returns
on functions, types, etc.).  Clean those up with this commit as well.
2018-02-17 18:47:10 -08:00
Mike Killewald
fb7c519856 small fix to stop crash on unrecognized packets (#4092) 2018-01-04 20:10:46 -03:00
ZaPpInG
a19ff3517e Update ArduinoOTA.cpp to solve #4086 (#4090)
* Update ArduinoOTA.cpp

* Update ArduinoOTA.cpp
2018-01-04 18:48:56 -03:00
yoursunny
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
Alessio Leoncini
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
per1234
fe6f3cc830 Use correct separator in keywords.txt
The Arduino IDE requires the use of a tab separator between the name and identifier. Without this tab the keyword is not highlighted.

Reference: https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5:-Library-specification#keywords
2017-09-04 06:54:18 -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
Me No Dev
889775c6fe ArduinoOTA optimizations (#2445)
- Added option to control if the ESP should be rebooted on success
- Added delay before ESP.restart() is called
- Added some comments to the header
2016-08-27 18:32:26 +03:00
Clemens Kirchgatterer
18297458be allows global object instances be switch off with defines (#2344) 2016-08-01 11:21:50 +08:00
Me No Dev
e83f30a78d Ota hashed password (#2292)
* Add option to give ArduinoOTA a hashed value of the password

hashed password can be safely stored on flash

* Switch to separate method to accept the hash

* Calculate the hash of plain passwords at setup

* missed line

* Remove underscores from local variable
2016-07-18 19:28:56 +08:00
andig
c4f9f102ce Add getCommand() api for OTA update type (#2259) 2016-07-15 11:03:34 +03:00
NullMedia
d60d744b59 ArduinoOTA library change (#2013)
* Fixed callbacks to allow lambda capture

* Update ArduinoOTA.cpp

* Fixed callbacks to allow lambda capture

* Fixed callbacks to allow lambda capture

* Update ArduinoOTA.h

* Tests update

Update ArduinoOTA.h

Fixed callbacks to allow lambda capture

* Modified callbacks to enable lambda capture

* Modified callbacks to enable lambda capture
2016-06-01 11:10:29 +08:00
Yuichi Tateno
cffdd55759 Add ArduinoOTA::getHostname() interface 2016-05-22 18:17:23 +09:00
Me No Dev
bfe9f7be69 Update and move lwIP headers, add options to use different lwIP build for generic device
Makefile added to lwip source folder to build and install liblwip_gcc.a
2016-04-10 21:55:22 +03:00
Markus Sattler
137c50757e add OTA debug level 2016-01-02 13:27:21 +01:00
Stavros Korokithakis
c2c7cc3a71 Print a newline properly. 2015-12-01 05:32:42 +02:00
Stavros Korokithakis
239352b7cf Add linebreak. 2015-12-01 05:27:06 +02:00
Stavros Korokithakis
1da7f91a08 Make progress print on the same line. 2015-12-01 05:26:05 +02:00
Stavros Korokithakis
e9f2f1c989 Fix typo. 2015-11-28 16:37:36 +02:00
Me No Dev
a44632b8cf make compiler happier 2015-11-25 18:11:16 +02:00
Me No Dev
fe9dc913b4 unref udp if exists 2015-11-21 21:14:11 +02:00
Me No Dev
d2982d3555 Make ArduinoOTA AUTH async
still up to the user to call ArduinoOTA.handle() to start the upload
2015-11-19 22:49:40 +02:00
Me No Dev
0213dc34ff Skip authentication when password is empty
should have been changed when turned in String
2015-11-12 03:09:04 +02:00
Me No Dev
18f0a9999a add progress option for espota.py and fix typo in ArduinoOTA 2015-11-11 23:23:25 +02:00
Ivan Grokhotkov
92069e657b Replace some manually managed buffers with Strings, fix code style 2015-11-11 01:07:02 +03:00
Me No Dev
950e9c9522 Let the socket to properly close
python was keeping the connection open and sending duplicate FINs until
the ESP came back online, because the ESP was resetting without giving
the network a chance to answer and close
2015-11-09 02:38:20 +02:00
Me No Dev
13b8cc0a27 Add sanity check so we do not trigger an update from wrong data 2015-11-09 01:47:51 +02:00
Me No Dev
a8976a01fd Add MD5 to core, Fix OTA examples and Digest Authentication to OTA and espota.py 2015-11-09 00:42:30 +02:00
sticilface
0c9892fd24 Update ArduinoOTA.cpp
my bad
2015-11-04 21:38:00 +00:00
sticilface
46658593b0 Update ArduinoOTA.cpp
Restarts the UDP port if it becomes disconnected. Works when for example the wifi is disconnected and reconnected
2015-11-03 19:57:57 +00:00
Pascal Gollor
c773140a5b use ArduinoOTA class in OTA-mDNS.SPIFFS example 2015-10-22 16:43:00 +02:00
Miguel Angel Ajo
6978b6a777 OTA support encapsulated to ArduinoOTA class 2015-10-12 10:29:18 +02:00