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

30 Commits

Author SHA1 Message Date
Allman-astyler
eea9999dc5 Revert "Allman now (#6080)" (#6090)
This reverts commit 98125f88605cd7e46e9be4e1b3ad0600dd5d2b51.
2019-05-14 00:09:54 +02:00
Allman-astyler
98125f8860 Allman now (#6080)
* switch restyle script for CI

* remove confirmation

* restyle with allman
2019-05-13 16:41:34 +02:00
david gauchard
cdb549572d
restore proper arduino Client:: & Wire:: API (#5969) 2019-04-26 22:05:46 +02:00
david gauchard
773f306ef9 more compatibility fixes to IPAddress, restore INADDR_ANY, INADDR_NONE (#5416) 2018-12-02 22:43:19 -03:00
david gauchard
5c4db3acf4
IPv6 on esp8266-nonos-sdk and arduino (#5136) 2018-11-27 23:07:47 +01:00
david gauchard
74ca42f829 Sketch emulation on host (#5342)
* WIP compile examples on host with 'make examples'

* WIP bufferize tcp input

* WIP Makefile

* WIP network to rework, tcp/udp to factorize, udp addresses broken

* minor changes to the core

* WIP basic udp working

* WIP mdns

* WIP mcast receiving, not sending

* WIP mdns OK

* beta version

* SSL + doc

* update travis host test command

* licenses

* typo

* doc: arduino builder is not around: declare functions before calling them

* fix with latest SSL PR, compile in 32 bits mode

* fix make clean

* make -m32 optional

* 32bits compiler ability tester

* WIP

* WIP (fix 1 vtable error, still another one to hunt with using spiffs)

* example astyle

* fix os_printf_plus

* load / save mock spiffs

* fix style

* fix using spiffs/mock

* don't mess ram

* update doc

* remove leftover

* optimization -Os except for CI, rename ARCH32 to FORCE32

* revert useless cast (not even compiled)

* remove unused function

* use proper type for pointer arithmetics

* makefile: sketch object and cpp file moved to bin/ directories
easier to clean, and IDE don't like them

* changes for review

* make use of %zd

* less verbose makefile by default (option)

* update readme
2018-11-20 18:51:45 -02:00
david gauchard
26980b39e3 fix #1002 ::Flush() wait for empty send buffer (#3967)
* fix #1002 ::Flush() wait for empty send buffer

* WiFiClient::Flush() guarantees that the data has been delivered
option 1 of https://github.com/esp8266/Arduino/pull/3967#discussion_r156901071
10ms max wait according to loaded tcp echo/reply scheme
2017-12-17 13:16:41 -03:00
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