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

956 Commits

Author SHA1 Message Date
Ivan Grokhotkov
47102201a8 Merge pull request #1096 from per1234/master
Unique Built-In libraries library.properties name
2016-01-10 23:41:54 +03:00
Ivan Grokhotkov
e8d60be62a Merge pull request #1362 from shmuelzon/zero-content-length
A content length of zero should also be sent
2016-01-10 23:16:56 +03:00
Simon Arlott
d099404eb8 WebServer: handle initial read/close timeouts asynchronously
If there is a delay before data becomes available on a new connection
then the handler function blocks for up to 1 second, and there's another
wait on connection close for up to 2 seconds.

This doesn't make the whole server process asynchronous (there is another
delay between headers/data) but it helps when there are other events
that need attention while handling web requests.
2016-01-10 15:50:34 +00:00
Wyatt Neal
e34ded1821 Merge remote-tracking branch 'upstream/master' 2016-01-10 09:41:52 -05:00
Assaf Inbal
9e61e60b0c A content length of zero should also be sent
This is needed since when the content-length header is not sent the clients will
wait for data anyways. Sending a content length of zero will tell the client not
to expect any content and it will close the connection immediately.
2016-01-10 08:11:40 +02:00
Wyatt Neal
9b880e7af2 only respond to ssdp searches that match our type 2016-01-09 23:25:57 -05:00
Damian Peckett
ec1c90c545 Fix typo causing crash on missing uri scheme 2016-01-10 14:10:29 +11:00
Markus Sattler
856792358a Merge remote-tracking branch 'remotes/esp8266/master' 2016-01-09 21:26:00 +01:00
Me No Dev
c6d8e2532b optimize 2016-01-09 21:53:24 +02:00
Markus Sattler
c8e6b7f6d2 correct default return value for softAP 2016-01-09 17:30:14 +01:00
Me No Dev
fe07baadf3 fix bad (recently changed) function signatures in lwip 2016-01-09 18:18:53 +02:00
Me No Dev
a143e614e7 Merge remote-tracking branch 'origin/master' 2016-01-09 13:35:25 +02:00
Me No Dev
377864f76b Merge remote-tracking branch 'esp8266/master' 2016-01-09 13:31:28 +02:00
Markus Sattler
a3161d5b3c typo 2016-01-09 11:40:46 +01:00
Me No Dev
cccff08a37 revert change, though signatures are wrong 2016-01-09 00:15:13 +02:00
Markus Sattler
29bb74beab rework AP config to get DHCP in best mode if SDK config got invalid some how. 2016-01-08 22:40:51 +01:00
Markus Sattler
dec6739e3f add more debug to WiFi 2016-01-08 19:06:28 +01:00
Me No Dev
897a475fdb Merge remote-tracking branch 'esp8266/master' 2016-01-07 21:27:53 +02:00
Wyatt Neal
1950b10751 more correctly responding to queries
also a small formatting fix. this should now allow the system to
actually respond to SSDP discoveries that are issued on the network ...
i'm still not 100% certain if this is right due to the way that the
switch() statement is setup; it could be processing more than it should
2016-01-06 20:52:31 -05:00
Wyatt Neal
17c3fb9ce6 fixing serial number length
silly goof, it's a string
2016-01-05 22:20:19 -05:00
Wyatt Neal
2e71a536cb should at least respond to discovery 2016-01-05 22:04:21 -05:00
Wyatt Neal
430331a4f8 adding a few new features to the packet format
* can now specify the TTL programmatically
* can now define the device type urn (up to 64 chars)
** still defaults to `Basic:1`
* can now set the serial number using a `uint32_t`, formatted as %08X
2016-01-05 21:53:48 -05:00
Wyatt Neal
dba2f92f78 fixing TTL to 2 per spec
the v1.1 upnp spec indicates that the default TTL should be set to 2
(and should also be configurable):

* http://upnp.org/specs/arch/UPnP-arch-DeviceArchitecture-v1.1.pdf
2016-01-05 20:33:05 -05:00
Markus Sattler
a6238e388b Merge remote-tracking branch 'remotes/esp8266/master' into debug 2016-01-04 22:10:50 +01:00
Me No Dev
d67763a809 Merge remote-tracking branch 'esp8266/master' 2016-01-04 15:29:08 +02:00
Ivan Grokhotkov
ce1b64bc43 Merge pull request #1320 from alltheblinkythings/SerialInterframeFixes
Fixes for poor HardwareSerial performance/crashes exacerbated by SDK1.5
2016-01-04 21:26:59 +08:00
Markus Sattler
6cf20e0a71 fix WiFi Multi debug compile error 2016-01-03 15:27:36 +01:00
Me No Dev
7b297d2992 Merge remote-tracking branch 'esp8266/master' 2016-01-03 14:33:05 +02:00
Markus Sattler
137c50757e add OTA debug level 2016-01-02 13:27:21 +01:00
Markus Sattler
995f02f437 add more debug levels 2016-01-02 12:54:34 +01:00
Markus Sattler
2b23b005aa allow control of enabling debug and debug level from IDE 2016-01-02 12:25:39 +01:00
Buzz Burrowes
73f80c539e Merge branch 'master' of https://github.com/BuzzBurrowes/Arduino.git 2016-01-01 00:16:13 -05:00
Buzz Burrowes
9b369dbae4 empty committ for pull request 2016-01-01 00:14:41 -05:00
Buzz Burrowes
4006630452 Merge branch 'master' into master 2015-12-31 11:52:49 -05:00
Markus Sattler
9b06b889c9 disable HTTP client debug 2015-12-31 17:10:38 +01:00
Markus Sattler
1ab74c1c76 add missing return HTTPC_ERROR_STREAM_WRITE 2015-12-31 15:02:53 +01:00
Markus Sattler
ef748e369a allow downgrade to HTTP 1.0
use HTTP/1.0 for update since the update handler not support any transfer Encoding
2015-12-31 14:02:00 +01:00
Markus Sattler
b828f34348 some docu 2015-12-31 12:16:22 +01:00
Markus Sattler
53287f4573 rework sendRequest stream too 2015-12-31 12:14:46 +01:00
Markus Sattler
bd7d915bcd rework error handling and detection
add retry for short write
remove compiler warnings
2015-12-31 12:00:26 +01:00
Buzz Burrowes
939e3430de Fixed crash bug with mDNS where a string buffer could be used uninitialized. 2015-12-30 23:30:15 -05:00
Markus Sattler
7540f11c93 Merge remote-tracking branch 'remotes/esp8266/master' into httpClient 2015-12-31 00:34:30 +01:00
Markus Sattler
c488bfb84e fix WiFi mode change typo 2015-12-31 00:12:41 +01:00
Markus Sattler
288e879a13 disable debug 2015-12-30 21:21:30 +01:00
Markus Sattler
cc0037682b add CHUNKED encoding support too http client (#1324)
HTTP Client - fix examples
increase default timeout to 5000ms
2015-12-30 21:20:43 +01:00
Markus Sattler
db4076fd41 add more debug for disconnect
add isConnected function for easier usage
2015-12-30 17:40:36 +01:00
Markus Sattler
4a68612af8 add API for connect / reconnect management 2015-12-29 21:01:48 +01:00
Christopher Pascoe
2375fb0f86 Cleanup: remove unused includes of cbuf.h. 2015-12-29 12:25:24 -05:00
Markus Sattler
85905c12f2 allow multiple event callbacks and add filter option 2015-12-29 17:31:57 +01:00
Markus Sattler
61440d9e2b add WiFi sleep management
Note: testing needed
2015-12-29 16:15:11 +01:00