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

25 Commits

Author SHA1 Message Date
Martin Ayotte
e89ae46a6b add WiFiClient::write_P to be used with PROGMEM 2015-08-22 00:25:28 -04: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