1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-05-21 14:13:47 +03:00

23 Commits

Author SHA1 Message Date
Ivan Grokhotkov
19e97bfe15 Fix WiFiUDP::peek return value when buffer is empty (#1796) 2016-03-24 01:21:29 +03:00
Ivan Grokhotkov
aa67d1c492 Pass errors from udp_sendto to WiFiUDP::endPacket (#1696) 2016-03-02 19:58:35 +03:00
Markus Sattler
f96ea403dd port stopAllExcept to WiFiUDP to keep the interface the same 2015-08-29 15:39:12 +02:00
Ivan Grokhotkov
11594b1340 Fix optimistic_yield usage (#588) 2015-07-22 22:50:26 +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
b029e78a67 Fix for wifi disconnect handling (#431) 2015-06-22 13:59:12 +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
Ivan Grokhotkov
936265357b Merge branch 'jwatte-esp8266' into esp8266
* jwatte-esp8266:
  Fix UDP send to not temporarily use connect()
2015-05-12 19:18:19 +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
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
Jon Watte
3049d48d56 Fix UDP send to not temporarily use connect() 2015-05-10 14:00:50 -07: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
da88852693 Fix resource leaks in UDP library
Reference counts were not incremented after creation of UdpContext, so pbufs and pcbs were not freed.
2015-04-14 01:34:52 +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
Ivan Grokhotkov
71c705a187 Implement remoteIP and remotePort in WiFiUDP 2015-02-17 01:38:35 +03:00
Ivan Grokhotkov
fea362a3b5 Allow mDNS on any interface 2015-02-03 09:04:20 +03:00
Ivan Grokhotkov
c28a63c9d5 Add support for multicast UDP 2015-02-01 01:52:23 +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