MaBecker
ae3a89f31a
ESP8266: Remove osprintf for RELEASE
2017-09-15 10:40:17 +02:00
Standa Opichal
f3378c4a8d
Added size to UDP buf header.
...
This is in order to be able to call several socket.send() calls
to different targets synchronously.
The format changed to host/32:port/16:size/16:[data/??].
2017-08-25 23:49:03 +02:00
Standa Opichal
54412b268a
SocketType parameters in net->send/recv/createsocket
...
And also in their callers (netSend/Recv/CreateSocket).
2017-08-25 23:48:18 +02:00
Standa Opichal
1b139eb547
UDP host:port embedded in send/recv buf
2017-08-25 23:48:18 +02:00
Standa Opichal
ae79c96cd3
Drop big UDP packets for esp8266
...
This proved to be the cure for stalling the 8266 and allowed
the chip to successfully answer .local queries for more than
a day on a local network where some of the mDNS packets are
more than 1kB long.
2017-08-25 23:48:18 +02:00
Standa Opichal
bc3d4cbb46
Passing addMembership() args to net.createsocket
...
Limited to a single membership, handled in target specific createsocket
which is provided with the 'options' object to get multicastGroup and
multicastIp from. Also due to the way the arguments are passed to the
net.createsocket the socket.addMembership() needs to be called before
socket.bind().
Added SO_REUSEPORT so that binding e.g. to mDNS port 5353 is possible
on an osx machine.
2017-08-25 23:48:18 +02:00
Standa Opichal
5ae2923909
Working UDP on esp8266 target
2017-08-25 23:48:18 +02:00
Standa Opichal
df54f21935
Introduced SocketType ST_UDP
...
Initial attempt only, able to send UDP data using socket.write().
2017-08-25 23:48:18 +02:00
Standa Opichal
bb13604e6b
Added SocketType argument to net->createsocket() method.
2017-06-23 22:51:56 +02:00
MaBecker
7c5c9b9004
set NET_DBG 0 if def RELEASE
...
do not include NET debug statements when using RELEASE=1
2017-01-23 23:28:07 +01:00
Thorsten von Eicken
7eb6c66d90
fix #809 esp8266 socket close
2016-02-26 00:02:32 -08:00
Thorsten von Eicken
528630211c
merge upstream in to esp8266 fork
2016-01-17 17:26:21 -08:00
Gordon Williams
34326d03b9
Allow different types of network to have different buffer sizes - enlarge JS, Linux and WIZnet buffers
2016-01-15 18:37:54 +00:00
Thorsten von Eicken
1547ee0a5c
1400 JSvars for esp8266; misc logging changes
2015-12-20 11:45:29 -08:00
Thorsten von Eicken
e5f9db8bd3
first cut at Wifi console
2015-12-19 18:39:12 -08:00
Thorsten von Eicken
a1847d2fcb
fix socket error handling
2015-12-14 21:56:10 -08:00
Thorsten von Eicken
1f562156ca
fix server sockets; use patched lwip
2015-12-10 20:58:41 -08:00
Thorsten von Eicken
c115a78988
implement error events in socketserver
2015-12-10 00:13:48 -08:00
Thorsten von Eicken
fc3986ad8c
fix local port; fix max sockets
2015-12-08 22:13:23 -08:00
Thorsten von Eicken
e56e06c0a9
improve esp8266 socket error handling
2015-12-07 23:38:29 -08:00
Thorsten von Eicken
e60520f6f6
add socket dump when running out
2015-12-06 13:37:51 -08:00
Thorsten von Eicken
dd248975df
small esp8266 tweaks
2015-12-06 13:31:32 -08:00
Thorsten von Eicken
5bbe045945
optimize esp8266 sockets; fix #741 , #720 #681 #595
2015-12-06 08:50:51 -08:00
Neil Kolban
fcc1c53256
#595 First phase of implementation of reconnectCB.
2015-11-12 17:06:22 -06:00
Neil Kolban
f10b99d605
Issue #589 . Changes to the default modes of connect and createAP.
2015-10-28 22:10:50 -05:00
Neil Kolban
cb11ad9b6d
Works for issue #589 . Inclusion of dnsServers option.
2015-10-26 23:21:12 -05:00
Neil Kolban
700415b0a8
Fixes and enhancements to #589 and #630 .
2015-10-25 13:30:30 -05:00
Neil Kolban
b866ab37d1
Fix for #673 . Assert through not freeing currentTxBuffer.
2015-10-18 17:45:44 -05:00
Gordon Williams
f3535fa59f
Merge branch 'master' of github.com:espruino/Espruino
...
Conflicts:
libs/network/esp8266/jswrap_esp8266.c
2015-10-09 08:46:35 +01:00
Neil Kolban
da89887b29
Addition of copyright commentary. #632 .
2015-10-08 12:51:21 -05:00
Gordon Williams
71fb3f0843
tweaks needed so docs for the website can be compiled again
2015-10-08 16:31:35 +01:00
Neil Kolban
c2cc382700
Fix for issue #621 - espconn freed and then accessed.
2015-10-06 17:33:25 -05:00
Neil Kolban
6dcfc779f8
Removed all the \brief additions. Issue #600 .
2015-10-05 23:41:01 -05:00
Thorsten von Eicken
516ef3cef7
Fix merge issues;
...
Partially address #602 , SDK1.4 is usable now;
2015-10-03 23:18:35 -07:00
Neil Kolban
7911591515
Implementation of #596
2015-10-02 20:10:28 -05:00
Neil Kolban
5c5676e441
Sync commit.
2015-10-02 15:34:45 -05:00
Neil Kolban
3ca5aa1961
Document standard compliances
2015-09-30 18:39:37 -05:00
Neil Kolban
908ed13cf6
Code changes for SPI testing.
...
See #588
2015-09-29 17:13:57 -05:00
Neil Kolban
ff96368123
Initial implementation of gethostbyname using the ESP SDK.
2015-09-28 19:57:22 -05:00
Thorsten von Eicken
b5c6d4538c
fix -std=gnu99-isms
2015-09-27 16:23:56 -07:00
Neil Kolban
4eeb12d292
Commit of ESP8266 board specific source files.
2015-09-27 09:16:33 -05:00
Gordon Williams
7b088b6ba5
remove built-in ESP8266 module support - was very broken and JS implementation is better
2015-09-21 18:06:09 +01:00
Gordon Williams
80ce11135a
I love Eclipse global regex replace :)
...
Use jsvUnLock2/etc to really drop memory usage
2015-09-18 12:25:07 +01:00
Gordon Williams
a11edb58f9
more warning removal
2015-06-01 18:13:14 +01:00
Gordon Williams
0eb9c16245
Tweak event handling - events such as Serial.on('data' now set this to Serial
2015-03-30 11:53:01 +01:00
Gordon Williams
26df876abf
we're deprecating the non-JS ESP8266 module
2015-03-26 15:03:48 +00:00
Gordon Williams
0269ba956c
oops - fix ESP8266 issues
2015-01-28 17:24:52 +00:00
Gordon Williams
ad4067cb55
tweaks for ESP8266 binary
2015-01-14 14:42:43 +00:00
Gordon Williams
cee2f638a1
Ok, now we have a working-ish server and client
2015-01-14 14:00:03 +00:00
Gordon Williams
46f097dce5
smart detection of when we're connected to a WiFi network
2015-01-13 19:25:17 +00:00