1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-05-09 16:41:02 +03:00

819 Commits

Author SHA1 Message Date
Sergey Anisimov
98fe5617eb Adding onComplete event handler support for the asynchronous network scanning. () 2016-07-18 19:30:41 +08:00
Me No Dev
e83f30a78d Ota hashed password ()
* 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 () 2016-07-15 11:03:34 +03:00
Me No Dev
1f7989b31d Implement Async NBNS (NetBIOS) name resolution for Windows ()
* Implement Async NBNS (NetBIOS) Name resolution for windows

Source: http://www.xpablo.cz/?p=751#more-751
2016-07-15 10:40:31 +03:00
Me No Dev
217ba9e072 fix typo in hspi_slave.c ()
Current C++ implementation has this field hardcoded, so this case was
never hit
2016-07-15 09:53:20 +03:00
Me No Dev
07f4d4c241 Lwip addons ()
* Add multicast TTL to UDP and rework UdpContext

* Add limit for TCP TIME_WAIT pcbs

* Add liblwip_gcc.a

* Make the changes be backward compatible with the current xcc version
2016-07-11 21:07:45 +08:00
SteveToulouse
86067333f5 Fix2115 ()
* Update ESP8266WiFiMulti.cpp

Fix 

* Update ESP8266WiFiMulti.cpp

Fix . Cleaner version (catch strdup("") fail).
2016-07-08 10:12:22 +08:00
Jeroen Vogelpoel
edba2d2829 Exposed sketch MD5 through HTTP headers ()
* Exposed sketch MD5 through HTTP headers

* Updated spacing, docs, example
2016-07-08 10:07:21 +08:00
Me No Dev
0d996ab75e fix plain post content containing special chars being parsed as arguments ()
this solution actually keeps the content as is, as long as it's text
(does not contain zeroes)
2016-07-07 00:59:26 +03:00
Me No Dev
4217e49b54 Initial SPI Slave implementation and examples ()
* Initial SPI Slave implementation and examples

* Update style and info
2016-07-06 10:58:45 +08:00
Ivan Grokhotkov
39212baeb0 Fix WiFi.onStationModeDHCPTimeout () 2016-07-04 15:47:55 +08:00
Me No Dev
e7a529eb45 Fix missing separator between get and post arguments ()
* fix urlDecode points

Fixes:

https://github.com/esp8266/Arduino/issues/1989
https://github.com/esp8266/Arduino/issues/2198

* Add missing separator between get and plain post arguments
2016-07-04 09:08:31 +03:00
Me No Dev
af06847f4a fix urlDecode points ()
Fixes:
https://github.com/esp8266/Arduino/issues/1989
https://github.com/esp8266/Arduino/issues/2198
2016-07-01 02:37:15 +03:00
Me No Dev
6390cf6bd6 Chunked encoding ()
* Add chunked encoding

example:
```cpp
  server.on("/chunked", HTTP_GET, [](){
    server.send(200, "text/html", String());
    server.sendContent("<!DOCTYPE html><html><head><title>Chunked
Test</title></head><body>");
    server.sendContent("<p>Chunk 1</p>");
    server.sendContent("<p>Chunk 2</p>");
    server.sendContent("<p>Chunk 3</p>");
    server.sendContent("<p>Chunk 4</p>");
    server.sendContent("<p>Chunk 5</p>");
    server.sendContent("<p>Chunk 6</p>");
    server.sendContent("</html>");
    server.sendContent("");//end of chunked
  });
```

* update examples, keep setContentLength and add bool _chunked

* fix wrong session id

* set _chunked to false earlier for cases where users use only sendContent
2016-06-28 14:35:12 +08:00
Ivan Grokhotkov
8db4dcea42 WifiClient::write refactoring (second attempt) ()
* WiFiClient: use DataSource for writes

* ESP8266WebServer: delegate writing to WiFiClient

* ESP8266WebServer: set write timeout before sending content
2016-06-23 17:47:18 +08:00
Ivan Grokhotkov
e64e32b329 Fix regression in WiFiClientSecure, update HTTPS test case () 2016-06-15 11:49:51 +08:00
Ivan Grokhotkov
da17d5425a Fix regression in WiFi.onEvent, add testcase (thanks @everslick) 2016-06-14 13:09:46 +08:00
Ivan Grokhotkov
b4490cd76d Fix issue when WiFi.begin(ssid, pass) is called right after WiFi.mode(WIFI_OFF)
If ssid and pass matched the values in flash, wifi_station_connect was not called and no connection was attempted
2016-06-14 13:07:08 +08:00
Ivan Grokhotkov
91720337d3 Prevent WDT resets in SD library () 2016-06-13 19:30:58 +08:00
Ivan Grokhotkov
43412970ae Fix for crash in WiFiClientSecure when WiFi is disconnected ()
* WiFiClient: implement stopAll() via stop()

* WiFiClientSecure: clean up ClientContext used by axTLS when stop is called ()
2016-06-13 18:36:30 +08:00
Ivan Grokhotkov
35fd2ccd52 Make ESP8266WebServer::urlDecode public () 2016-06-13 15:17:17 +08:00
Ivan Grokhotkov
9dd7910aed Enable SO_REUSE in LwIP and WiFiServer () () 2016-06-13 10:36:10 +08:00
Ivan Grokhotkov
00065ac347 Allow DHCP client to be re-enabled using WiFi.config(0U, 0U, 0U) () 2016-06-12 14:44:15 +08:00
Ivan Grokhotkov
17c02ff252 ESP8266mDNS: restart listening when WiFi STA is connected/disconnected () 2016-06-12 14:17:27 +08:00
Ivan Grokhotkov
de166c9dd7 WiFi event handling refactoring () 2016-06-10 07:46:10 +08:00
Ivan Grokhotkov
7fd7ca6834 WiFiServer: fix error when calling close more than once 2016-06-08 17:32:45 +08:00
Anton Sokolchenko
533a600d95 Add virtual destructor to WiFiServer class ()
Without this line compiler complains about :

Warning		22:9: warning: deleting object of polymorphic class type 'WiFiServer' which has non-virtual destructor might cause undefined behaviour [-Wdelete-non-virtual-dtor]		\\Mac\Home\Documents\Visual Studio 2015\Projects\BlinkESP8266_12\ActAsWiFi_server\SVServer.cpp	22

Reason for this is that I would like to init WiFiServer with port which can by dynamically chosen (for example by serial port)

internalServer = new WiFiServer(port);
2016-06-08 15:51:50 +08:00
Me No Dev
a7ced9cabb make HTTP Update Server more secure ()
* make HTTP Update Server more secure

* added option for authentication
* added option to change the url for upload

* move to overloaded setup

* remove delay in both examples

* Get better result responses

* fix strings

interesting, the meta did not refresh if the successResponse is put in
"R"
2016-06-07 10:09:05 +08:00
shiro
dbef28d394 add "include <ESP8266WiFi.h>" to ESP8266WebServer.h () 2016-06-06 12:21:01 +08:00
Ivan Grokhotkov
dd81336b79 ESP8266HTTPClient: fix duplicate Content-Length headers () 2016-06-03 16:11:44 +08:00
Ivan Grokhotkov
9db0393b65 Update RTC memory example 2016-06-02 14:34:28 +08:00
Macro Yau
2a4081b079 Added support for RTC user memory in ESP-specific APIs. () 2016-06-01 11:13:33 +08:00
mgaman
974b9ae2fa UdpNtpClient rewritten in a clearer, more pedantic fashion. ()
* Create readme.txt

* Add files via upload

* Update RFC1305.h

Added guard lines
2016-06-01 11:12:45 +08:00
unaiur
30720ce87a Fix ESP8266mDNS doesn't accept queryService responses from avahi-daemon ()
Ignore unknown records (AAAA) in the query response; this way we can extract
the IPv4 address and connect to the server.
2016-06-01 11:11:11 +08:00
NullMedia
d60d744b59 ArduinoOTA library change ()
* 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
Ivan Grokhotkov
3cfad27e38 Merge pull request from dave-prosee/master
I2C bus reset with status info to user, re issue 1025
2016-06-01 11:09:15 +08:00
Ivan Grokhotkov
a26ec346b3 Merge pull request from scottfitzenrider/base64Authorization-strip-newlines
Update ESP8266HTTPClient.cpp
2016-06-01 11:04:43 +08:00
Ivan Grokhotkov
c50d6ffb66 Merge pull request from hotchpotch/ota-gethostname
Add ArduinoOTA::getHostname() interface
2016-06-01 11:03:57 +08:00
Hideki Shiro
2df4a0b426 allow HTTP header value without LWS. 2016-05-27 00:42:47 +09:00
Dave P
099f3a4147 I2C bus reset with info to user
I2C slave might stil have something to send when ESP826 starts I2C, thus
keeping the bus stuck.
Happens e.g. when power failure/reset during transmission.
Thanks to work of drmpf there is a solution.
Implemented as separate method so as not to interfere with existing.
Usage:

Wire.begin();
if (Wire.status() != I2C_OK) Serial.writeln("Something wrong with I2C
bus that cannot be recovered. Perform power cycle or search for other
masters on bus.";
2016-05-26 12:53:48 +02:00
scottfitzenrider
0ac37810ca Update ESP8266HTTPClient.cpp
The libb64 base64 library adds newlines to the base64 encoding of the encoded _base64Authorization String if the encoded string every 72 characters.  This causes problems with the Authorization: Basic http header when the username and password are long.  The change strips out newlines from _base64Authorization right before the header is sent.
2016-05-25 15:07:14 -04:00
Yuichi Tateno
cffdd55759 Add ArduinoOTA::getHostname() interface 2016-05-22 18:17:23 +09:00
Ivan Grokhotkov
e8b8a606e4 Update axTLS to 139914f
- Fix occasional software WDT due to lengthy bigint operations
- Implement truly blocking reads as a workaround for half-duplex nature of axTLS
2016-05-10 23:34:33 +08:00
Ivan Grokhotkov
542b05e543 If GDBStub library is used, break into gdb on assert and panic 2016-05-10 21:30:53 +08:00
Ivan Grokhotkov
4b3c36b430 GDBStub: fix section attribute for core gdbstub functions 2016-05-10 16:11:08 +08:00
Ivan Grokhotkov
f2fb43cabf Prevent WiFi config corruption ( ) 2016-05-10 15:27:06 +08:00
b-pas
74bd4f9200 include non-standard ports in Host: header 2016-05-07 10:56:24 -04:00
Ivan Grokhotkov
a2b82ed6b6 Use gcc-built LwIP by default ()
It is still possible to use xcc-built LwIP by selecting "Core Development" board from tools menu.
2016-05-06 20:09:15 +08:00
Ivan Grokhotkov
fecddba827 Merge pull request from luc-github/master
Fix WiFiSleepType_t values to match SDK ones
2016-05-05 21:59:30 -05:00
luc
f95f0ed321 Fix WiFiSleepType_t values to match SDK ones 2016-05-05 19:38:32 +02:00