4652 Commits

Author SHA1 Message Date
MaBecker
b6e11a0d0f ESP8266: Add GPIO16 as D16 without watch (#1206) 2017-09-14 20:32:12 +02:00
Gordon Williams
c951f277ca tidying up console code now we're using the delete characters after VT100 code 2017-09-14 14:52:37 +01:00
Gordon Williams
c58855638b tidy up UART initialisation 2017-09-14 14:50:18 +01:00
Gordon Williams
3094e01dd1 tweak copyright date 2017-09-13 13:59:52 +01:00
Gordon Williams
798037ee01 add todo 2017-09-13 09:44:06 +01:00
Gordon Williams
997910cb17 ESP8266: Remove debugger again as it will never work on 8266 2017-09-12 13:56:26 +01:00
Gordon Williams
e6cb617545 Make nRF5x builds automatically create a bootloader if it's required 2017-09-12 12:36:23 +01:00
Gordon Williams
dfa0c271eb Use Esc[J VT100 code when cycling through command history (much faster REPL on low bandwidth connections) 2017-09-12 10:52:46 +01:00
Gordon Williams
efa7a8a04c Add E.errorFlag event to allow JS to respond to internal errors 2017-09-12 10:12:47 +01:00
Gordon Williams
6701a40448 Fix memory leak in tab completion code 2017-09-12 09:43:04 +01:00
Gordon Williams
180bfc6c13 nRF5x: Fix issue with findDevices/setScan servicedata when all digits of service are numbers (eg 1809) 2017-09-11 17:19:01 +01:00
Gordon Williams
ea2dfc9222 nRF5x: Remove app_uart and use nrf_drv_uart with double buffering - fix uart overflow errors (fix #1238) 2017-09-11 13:21:38 +01:00
Gordon Williams
0fe025fbaa tweak docs 2017-09-11 11:42:53 +01:00
Gordon Williams
98ae311f42 Fix issue where make clean with a local compiler would blow away compiler's .o files 2017-09-11 08:35:55 +01:00
Gordon Williams
622fbfbc06 remove debug print 2017-09-07 08:16:51 +01:00
Gordon Williams
7b89618990 Merge pull request #1236 from espruino/ESP32
update ESP32 Branch to UDP, copy UDP code from linux
2017-09-05 12:26:55 +01:00
Gordon Williams
e8fa5b39bf clear up Wifi library purpose 2017-09-04 12:43:50 +01:00
wilberforce
d7751b2425 define CALLED_FROM_INTERRUPT for EPS32 2017-09-03 10:34:19 +12:00
wilberforce
4f0fa4af4e UDP testing 2017-09-02 16:11:57 +12:00
Gordon Williams
c7e774246a Revert "nRF5x: Swap to UART fifo to avoid overrun errors at high baud rates"
This reverts commit 1cd1808d76aedacbea2557970c175c624e297c13.
2017-09-01 17:02:11 +01:00
Gordon Williams
03bd6fc1f5 fix #1237 2017-08-31 17:22:27 +01:00
Gordon Williams
80f1f94f32 remove spurious jsvGetArrayIndexOf 2017-08-31 17:08:14 +01:00
Gordon Williams
e2dacd1259 nNR5x: NRF.setScan now reads service data automatically
nNR5x: NRF.findDevices aggregates data from multiple advertising packets
2017-08-31 17:04:05 +01:00
Gordon Williams
735c014659 Internal: Added initialiser argument to jsvNewStringOfLength
Internal: Added jsvObjectSetChildVar/jsvObjectSetChildVar/jsvObjectSetChildVar
            Internal: Fix jsvCopy if given a NAME_INT/etc
            Added ES6's Object.assign
2017-08-31 16:42:31 +01:00
Gordon Williams
68995f8521 Ensure Exceptions/errors are reported on a blank line 2017-08-31 12:11:26 +01:00
Gordon Williams
1cd1808d76 nRF5x: Swap to UART fifo to avoid overrun errors at high baud rates 2017-08-31 12:10:10 +01:00
wilberforce
54240e92f7 update ESP32 Branch to UDP, copy UDP code from linux 2017-08-31 10:53:25 +12:00
wilberforce
fd590f08ba update ESP32 Branch to UDP, copy UDP code from linux 2017-08-31 10:49:10 +12:00
Gordon Williams
0ab85a8964 minor tweak for website 2017-08-30 15:14:57 +01:00
Gordon Williams
560613ae5c Merge branch 'master' of github.com:espruino/Espruino 2017-08-30 15:06:16 +01:00
Gordon Williams
ebe756df6d updating docs 2017-08-30 15:06:09 +01:00
Gordon Williams
9635ae2475 Merge pull request #1235 from opichals/server-addmembership
Introduced sockerserver:serverAddMembership
2017-08-30 08:19:07 +01:00
Gordon Williams
cbefe32f98 Merge pull request #1234 from opichals/date-timezone-fixups
Date timezone handling fixes.
2017-08-30 08:17:25 +01:00
Standa Opichal
07c75edeb3 Introduced socketserver:serverAddMembership
This avoids the HTTP_NAME_OPTIONS_VAR server property leaking the
socketserver.c local abstraction.
2017-08-29 22:26:16 +02:00
Standa Opichal
925f7bb6d4 Date timezone handling fixes.
No tz-containing date strings are considered of local timezone.
No time-containing date strings are considered GMT.
2017-08-29 21:54:57 +02:00
Gordon Williams
52a1309f80 Merge pull request #1198 from opichals/espruino-udp
UDP support
2017-08-29 15:48:48 +01:00
Gordon Williams
89074ff534 release 1v94 RELEASE_1V94 2017-08-29 14:08:50 +01:00
Gordon Williams
8a230ad5bb Disable Graphics.createCallback on devices with small amounts of flash memory - rarely used on those devices and fixes HYSTM32_28 build 2017-08-29 12:55:23 +01:00
Gordon Williams
d644eab626 STM32: Remove the 'utility timer' from the list of available PWM pins, fixing A0/1/2 PWM on F4 (fix #1229) 2017-08-29 12:18:46 +01:00
Standa Opichal
aa75f14ebb Disable startMDNS() in favor of mDNS.js
Without this the esp8266 uses the mdns port 5353 and silently ignores
any message to be received mDNS.js.
2017-08-25 23:49:43 +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
2ae6041697 DBG instead of jsWarn where appropriate 2017-08-25 23:48:18 +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
e4bcd3f2db Separated UDP/TCP socketserver handling
Not using stream for UDP receiveData, calling dgram_messageCallback()
instead.
2017-08-25 23:48:18 +02:00
Standa Opichal
7497a604e4 Added dgram_socket test
socketIdle() from in dgram_bind (after previous dgram_close)
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
68e8297bb2 Async socket.bind() support
socket.bind(port, boundSocket => { ... });
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