Ivan Grokhotkov
684b5f1629
WiFiClient: set default timeout to 5000ms for compatibility
2017-05-19 09:35:01 -05:00
Ivan Grokhotkov
71512653ca
WiFiClient: use Stream::_timeout for write operations
2017-05-19 09:35:01 -05:00
Ivan Grokhotkov
eebcc656ed
WiFiClient: add support for connect timeout
2017-05-19 09:35:01 -05:00
david gauchard
a41f55c469
prepare lwip2 ( #3129 )
...
* minimum changes for libraries to compile with lwip2
* add WiFiClient::availableForWrite() (similar to Serial::) which indicates how much data can be sent without buffering
2017-04-25 08:55:01 -05:00
Rodion Kvashnin
2126146e20
Fix warnings ( #2881 )
...
* Suppressed -Wunused-parameter and -Wunused-function by casting to void unused identifiers.
* Explicit initialization of all fields to suppress -Wmissing-field-initializers.
* Fixed signed/unsigned integer comparison.
* memset initialization of structs.
* More -Wunused-parameter fixes.
2017-01-31 10:07:59 +03:00
Ivan Grokhotkov
8db4dcea42
WifiClient::write refactoring (second attempt) ( #2177 )
...
* 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
43412970ae
Fix for crash in WiFiClientSecure when WiFi is disconnected ( #2139 )
...
* WiFiClient: implement stopAll() via stop()
* WiFiClientSecure: clean up ClientContext used by axTLS when stop is called (#2097 )
2016-06-13 18:36:30 +08:00
Christopher Pascoe
2375fb0f86
Cleanup: remove unused includes of cbuf.h.
2015-12-29 12:25:24 -05:00
Markus Sattler
5333ebfed7
add function peekBytes to WiFiClient/WiFiClientSecure to allow to peek multiple bytes if possible
2015-12-19 14:37:36 +01:00
Martin Ayotte
e3e25da792
fix bug in WiFiClient::write_P/ESP8266WebServer::sendContent_P introduced few minutes ago when changing memccpy_P to memcpy_P
2015-09-06 14:04:57 -04:00
Martin Ayotte
389107f09d
fix bug in WiFiClient::write_P when content was binary
2015-09-06 13:09:57 -04:00
Ivan Grokhotkov
a9fbe27cba
Merge pull request #729 from Links2004/esp8266
...
fix mac 599 for ESP8266HTTPUpdate
2015-08-31 09:38:28 +03:00
Ivan Grokhotkov
4995d03b20
Merge pull request #714 from martinayotte/esp8266
...
add toCharArray() to IPAddress class
2015-08-31 09:37:22 +03:00
Markus Sattler
966bf45b35
rename stopAllexcepted to stopAllExcept and simplify the compare
2015-08-29 15:33:41 +02:00
Markus Sattler
79bec479b5
Merge remote-tracking branch 'remotes/esp8266/esp8266' into esp8266
...
Conflicts:
hardware/esp8266com/esp8266/cores/esp8266/Updater.cpp
hardware/esp8266com/esp8266/libraries/ESP8266WiFi/src/include/ClientContext.h
2015-08-29 13:47:25 +02:00
Markus Sattler
8e50cdb190
Updater.cpp:
...
- use new AutoInterruptLock
- add delay to give the RTOS some time to handle TCP
WiFiClient.cpp
- add stopAllexcepted to cancel all TCP excepted one
ClientContext.h
- add getLocalPort()
ESP8266HTTPUpdate.cpp
- close all not needed TCP and UDP
osapi.h
- missing commit from SDK
2015-08-29 13:45:58 +02:00
Martin Ayotte
e89ae46a6b
add WiFiClient::write_P to be used with PROGMEM
2015-08-22 00:25:28 -04:00
aalku
acc34e2914
LocalIP/LocalPort support
2015-08-19 13:18:43 +03:00
Ivan Grokhotkov
e5d2ba5db8
Pass timeout to optimistic_yield, add cont_can_yield check
2015-07-20 15:48:25 +03:00
Makuna
17de2d7a4e
define in header
...
remove extern from cpp files
2015-07-15 16:32:49 -07:00
Makuna
d815c36753
optimistic_yield()
...
this introduces optimistic_yield() used for when standard library
methods are normally used in tight loops waiting for something to
happen, like available().
2015-07-13 13:47:13 -07:00
Ivan Grokhotkov
6f63ad1ee4
Fix return value of WiFiClient::connect ( #511 )
2015-07-06 08:02:24 +03:00
Ivan Grokhotkov
e6e57a8b81
Better handling of wifi disconnect ( #231 )
...
When network interface is down, some nasty things happen, for instance tcp_connect returns without ever calling error callback.
This change adds some workarounds for that: before doing a tcp connect and DNS resolve we check if there is a route available.
Also added a listener for wifi events which stops (aborts) all the WiFiClients and WiFiUDPs when wifi is disconnected. This should
help libraries detect disconnect properly.
2015-06-11 18:01:33 +03:00
Dario Di Maio
7f66a3a415
Remove unnecessary ICACHE_FLASH_ATTR
2015-06-05 15:58:44 +03:00
Ivan Grokhotkov
49aeb79b05
Add API to set the beginning of local ports range for WiFiClient
2015-05-24 23:15:05 +03:00
ficeto
3e7b8515e4
pull get/set NoDelay for WiFiClient
2015-05-13 20:01:05 +03:00
ficeto
74a2b75cf9
Revert "Add WiFiClient.write for Stream"
...
This reverts commit fa24d770c5096ad7a8894c3e5221c1358efe128c.
2015-05-13 12:45:48 +03:00
ficeto
f4969ce0e5
Add WiFiClient.write for Stream
...
reads directly from the stream and fragments the data to achieve
maximum data throughput over WiFi
2015-05-13 12:07:42 +03:00
Bob van der Linden
021b8b61e7
ESP8266WiFi: made connected() return true if data is available
...
WiFiClient::connected() should return true if the connection is disconnected, but there is still data available. This is specified in the Arduino docs: http://www.arduino.cc/en/Reference/WiFiClientConnected
2015-04-29 07:02:19 +08:00
Markus Sattler
0bd2ea1948
remove some warnings
2015-04-06 19:54:01 +02:00
Markus Sattler
a1f0c6feb9
remove NO_PORT_BIND
2015-04-03 14:26:41 +02:00
Markus Sattler
d87bc938f9
disable tcp_bind for WiFiClient (tcp_connect gets automatic a free src port)
2015-04-02 19:11:06 +02:00
Markus Sattler
53dbeeb0aa
add error reason to WiFiClient debug
...
handle tcp_close error in unref()
2015-04-02 18:57:28 +02:00
Ivan Grokhotkov
ea90d3ce92
Fix WiFiClient assignment operator
2015-02-16 03:02:42 +03:00
Ivan Grokhotkov
b09e8e593a
Add remoteIP and remotePort methods to WiFiClient
2015-01-16 17:56:11 +03:00
Ivan Grokhotkov
661c414c2a
Automatically call yield() in WiFiClient::available and WiFiServer::available
2015-01-07 02:45:46 +03:00
Ivan Grokhotkov
8e7a20c08d
Automatically call yield() in WiFiClient::available if called more than once
2015-01-07 01:57:41 +03:00
Ivan Grokhotkov
ccfbd9c969
WiFiClient cleanup
2014-12-29 10:37:11 +03:00
Ivan Grokhotkov
9ba2fcd29f
More license headers
2014-12-19 11:16:28 +03:00
Ivan Grokhotkov
77af5da58f
Clean up ets_printf declarations
2014-12-18 18:45:22 +03:00
Ivan Grokhotkov
64dabb53f5
WiFi client connect with hostname
2014-12-17 10:29:29 +03:00
Ivan Grokhotkov
6d9c77ebe1
Add ESP8266WiFi library
2014-12-01 00:36:56 +03:00