Ivan Grokhotkov
efc8dda160
Workaround for LwIP not handling ERR_ABRT
...
Described in detail here: https://github.com/esp8266/Arduino/wiki/LwIP-issue,-or-how-a-simple-%22if%22-can-go-wrong
2016-01-26 15:57:37 +03:00
Ivan Grokhotkov
ee2d4495fd
Additional check in wl_definitions.h to guard against duplicate definitions
2015-12-22 14:08:17 +03: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
Ivan Grokhotkov
3d1fbc60ab
Replace chain of UDP pbufs with a single pbuf before sending ( #1009 )
...
Packets up to 1492 bytes may be sent this way.
Also reduced pbuf_unit_size to 128 bytes.
2015-12-06 20:22:54 +03:00
Me No Dev
a44632b8cf
make compiler happier
2015-11-25 18:11:16 +02:00
Markus Sattler
c8aac83c47
add :del message to unref
2015-11-22 22:39:58 +01:00
Ivan Grokhotkov
6b7b802706
Fix a crash due to abort() called from TCP error callback ( #428 )
2015-09-28 16:05:23 +03:00
Juppit
6d6a26aea0
Remove unused include time.h from ssl.h
...
This include is not used by ssl.h but can be annoying.
If there is need for time.h it should be located in the esp8266 tree.
2015-09-15 23:46:15 +02:00
Ivan Grokhotkov
f73d414f38
WiFiClientSecure: add certificate fingerprint verification ( #43 )
2015-09-14 10:22:54 +03:00
Ivan Grokhotkov
9a2f2f2849
Add axTLS, first draft of WiFiClientSecure ( #43 )
2015-09-01 15:45:12 +03:00
aalku
acc34e2914
LocalIP/LocalPort support
2015-08-19 13:18:43 +03:00
Markus Sattler
3a34aa61e0
Merge remote-tracking branch 'remotes/esp8266/esp8266' into esp8266
...
Conflicts:
hardware/esp8266com/esp8266/cores/esp8266/Esp.cpp
2015-06-25 20:02:37 +02:00
Ivan Grokhotkov
565c7aeac0
Less debug output from slist
2015-06-25 00:13:55 +03:00
Markus Sattler
fdb723cbad
Merge remote-tracking branch 'remotes/esp8266/esp8266' into esp8266
...
Conflicts:
hardware/esp8266com/esp8266/cores/esp8266/core_esp8266_main.cpp
2015-06-23 13:08:05 +02:00
Ivan Grokhotkov
b029e78a67
Fix for wifi disconnect handling ( #431 )
2015-06-22 13:59:12 +03:00
Markus Sattler
874cf0ef98
fix exception 28 in AP + STA mode and STA disconnect
...
UDP triggers exception 28
2015-06-20 18:36:19 +02:00
Ivan Grokhotkov
c51acf2a32
Fix tcp error handler
2015-06-11 18:11:26 +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
Markus Sattler
108a40acfd
add support for list of AP connections
...
- auto select ssid with best signal
- for debugging enable DEBUG_WIFI_MULTI macro and call Serial.setDebugOutput(true);
change ESP8266WiFiClass::status() return type to wl_status_t
2015-05-16 22:40:53 +02:00
Ivan Grokhotkov
371320bc45
Merge branch 'esp8266' of https://github.com/ficeto/Arduino into ficeto-esp8266
2015-05-12 20:46:57 +03:00
ficeto
f2f1fad298
add TCP_NODELAY control
2015-05-12 19:25:37 +03:00
Ivan Grokhotkov
720142ef24
Merge branch 'esp8266' of https://github.com/jwatte/Arduino into jwatte-esp8266
2015-05-12 19:11:22 +03:00
Ivan Grokhotkov
89248032d6
Merge branch 'esp8266' of https://github.com/ficeto/Arduino into esp8266
...
Conflicts:
hardware/esp8266com/esp8266/libraries/ESP8266WebServer/examples/SDWebServer/SDWebServer.ino
2015-05-12 18:58:10 +03:00
Ivan Grokhotkov
25d814bdfb
some UdpContext fixes, add rx callback support
...
Set udp destination address, port, and multicast TTL only on send.
Fix read method to return -1 if buffer is empty.
2015-05-12 17:52:22 +03:00
ficeto
1707d3d036
move discard_cb to unref
2015-05-12 14:22:16 +03:00
ficeto
88c6ee418d
add close and abort methods and enable disconnect callback
2015-05-12 13:58:05 +03:00
Jon Watte
3049d48d56
Fix UDP send to not temporarily use connect()
2015-05-10 14:00:50 -07:00
ficeto
8819c1e91c
fix write taking too long
2015-05-07 13:38:32 +03:00
Ivan Grokhotkov
5354464a01
Add destinationIP method to WiFiUDP
...
Might be useful to distinguish between normal and multicast packets arriving at the same port (#105 )
2015-04-29 07:01:54 +08:00
Ivan Grokhotkov
727c61efe2
UDP multicast APIs fix
...
fix #74 , fix #7
2015-04-29 07:01:46 +08:00
Ivan Grokhotkov
b026daf43b
Fix UdpClient semantics, add NTPClient example
...
UdpClient used to create a new socket for each begin/beginPacket call. This made bidirectional communication impossible.
Fix #64 , fix #53 .
2015-04-12 01:09:45 +08:00
Markus Sattler
0bd2ea1948
remove some warnings
2015-04-06 19:54:01 +02:00
Markus Sattler
f165a0afcd
use Eclipse auto Format to get rip auf the tab, space and code style inconsistency
2015-04-06 19:33:50 +02:00
Markus Sattler
3bb2de4a85
add flush() to unref() see #50
2015-04-06 19:17:19 +02:00
Markus Sattler
3c7eaafeaf
force tcp close in error
2015-04-06 18:55:21 +02:00
Markus Sattler
ea7a4e522a
add null prt check to _pcb in flush
2015-04-06 18:49:57 +02:00
Markus Sattler
96ec8e480b
add size check to write
...
some more debug output
2015-04-06 18:41:44 +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
71c705a187
Implement remoteIP and remotePort in WiFiUDP
2015-02-17 01:38:35 +03:00
Ivan Grokhotkov
ea90d3ce92
Fix WiFiClient assignment operator
2015-02-16 03:02:42 +03:00
Ivan Grokhotkov
c28a63c9d5
Add support for multicast UDP
2015-02-01 01:52:23 +03:00
Ivan Grokhotkov
b09e8e593a
Add remoteIP and remotePort methods to WiFiClient
2015-01-16 17:56:11 +03:00
Ivan Grokhotkov
7d1de31896
Fix call to tcp_recved after pcb has been closed, abort connections closed by the remote side
2015-01-13 09:10:32 +03:00
Ivan Grokhotkov
75d9cf40be
Fix license headers in WiFiUDP files
2015-01-09 22:47:07 +03:00
Ivan Grokhotkov
e5e6dbe222
Initial UDP support
2015-01-09 02:10:20 +03:00
Ivan Grokhotkov
ccfbd9c969
WiFiClient cleanup
2014-12-29 10:37:11 +03:00
Ivan Grokhotkov
4944a8fb5f
WiFi library compatibility fixes
2014-12-29 01:20:27 +03:00
Ivan Grokhotkov
55f07f1e08
TCP client flow control
2014-12-29 01:20:07 +03:00
Ivan Grokhotkov
2328e07637
Fix memory leak in WiFiClient
2014-12-23 12:34:41 +03:00
Ivan Grokhotkov
6c344ffbb1
Update license headers in files that were completely rewritten
2014-12-19 01:40:47 +03:00