Gordon Williams
a79e995ac1
fix typo - https://github.com/espruino/EspruinoTools/issues/175#issuecomment-2017605900
2024-03-25 10:49:35 +00:00
Gordon Williams
1341bceb21
Move commonly used sequences of function calls into functions (eg jsvRemoveChild,jsvUnLock -> jsvRemoveChildAndUnLock) - saves ~200b
2024-02-02 14:16:14 +00:00
Gordon Williams
744882346c
Tidying up error messages - we've now saved 1.5k on Micrbit 1!
2023-10-06 11:47:37 +01:00
Gordon Williams
4327ebd34e
Tidying up error messages (no trailing '.' or '\n'), making almost-similar error messages the same
...
Used the following to try and find issues:
find . -name "*.c" | xargs -I{} grep -h jsExceptionHere {} | sed -e "s/^[^\"]*\"/\"/" | sort | uniq -c
2023-10-06 10:47:58 +01:00
Gordon Williams
9b30f17227
Added jsvObjectGetChildIfExists to avoid the jsvObjectGetChild(... ,0) case - saves ~300b of flash space
2023-04-25 10:59:34 +01:00
qucchia
c5bb94bf7a
Limit documentation comments to 80 characters ( #2244 )
2022-07-27 15:32:19 +02:00
Gordon Williams
f99ccaac3e
fix espxx builds after new readJSON
2020-03-01 22:14:05 +00:00
Gordon Williams
e230148625
improve docs making
2019-11-07 16:12:27 +00:00
MaBecker
103b64c5c3
esp8266_fix1595_fix1640
2019-04-14 22:11:55 +02:00
Gordon Williams
5bc873ae38
fix memory leak reported in http://forum.espruino.com/conversations/323848
2018-08-02 09:07:34 +01:00
Gordon Williams
cf93b4ba02
Merge pull request #1417 from MaBecker/wifi
...
fix wifi restore ssidAP
2018-05-14 08:57:00 +01:00
MaBecker
33fa7dcfbb
add channelAP to .wificfg
2018-05-13 17:13:02 +02:00
MaBecker
1e55f843b2
fix wifi restore ssidAP
2018-05-13 07:45:43 +02:00
Gordon Williams
0d2cfb3a44
Merge pull request #1412 from MaBecker/wifi
...
return authmode as text
2018-05-11 11:35:10 +01:00
MaBecker
d1296381d3
return authmode as text
2018-05-11 11:20:17 +02:00
Gordon Williams
240984bf8d
Merge pull request #1411 from MaBecker/wifi
...
rearange rf_cal_sector (fix #1294 )
2018-05-10 17:19:30 +01:00
MaBecker
6eba176637
rearange rf_cal_sector ( fix #1294 )
...
* sector map for last 5 sectors of flash: ABCCC
A : rf cal
B : rf init data
C : sdk parameters
* change last FlashArea
* update ESP8266_BOARD
2018-05-10 17:35:40 +02:00
Standa Opichal
8d52ae5238
Tidy up networks by using JsNetUDPPacketHeader
2018-05-10 01:29:50 +02:00
Gordon Williams
1381fdcc3d
Merge pull request #1401 from MaBecker/wificonf
...
rewrite wifi.save and restore to use the storage lib (imp #1380 )
2018-05-09 12:54:02 +01:00
MaBecker
a71ea63ce4
add option hidden to startAP (imp #1358 )
...
* allow to find hidden access points
* option hidden tested on ESPRUINO-WIFI board, option is ignored until
not implemented
2018-05-09 11:20:29 +02:00
MaBecker
7893b46a76
rewrite wifi.save and restore to use the storage lib (imp #1380 )
...
* use .wificfg to store wifi credentials
* free wifi save page and add to save_code
* remove flash page 0x77000 and add to flash_available
* move wifi restore after JavaScript environment is up and running
2018-05-08 02:55:18 +02:00
Gordon Williams
eaef9c1440
Add better docs for the form of Wifi callback functions
...
Modify ESP8266/ESP32 callbacks to match the node.js style used elsewhere
2018-04-30 09:02:20 +01:00
Gordon Williams
253ff899b5
Add TODOs for cleaning up UDP
2018-03-13 09:37:47 +00:00
Gordon Williams
9ffc516204
trying to bring WiFi docs/functions for Espruino in line on all platforms
2018-02-07 17:30:30 +00:00
MaBecker
87ec0578c0
add #else for WIFI and NET DBG
2018-01-13 09:09:26 +01:00
MaBecker
591c6a9c03
no debug if RELEASE
...
unset RELEASE
DEFINE=“—DNET_DBG=1 DNET_DBG=1 -DWIFI_DBG=1|2“ make
2018-01-09 21:26:11 +01:00
MaBecker
f92f753661
Revert "remove ifdef RELEASE block"
...
This reverts commit c486b93e88a5bf0fcdb47f5a713d0ae8fac63cee.
2018-01-09 21:07:14 +01:00
MaBecker
c486b93e88
remove ifdef RELEASE block
...
DEFINE=“-DNET_DBG=1 -DWIFI_DBG=1|2“ make
to switch NET and/or WIFI debug on
2018-01-08 23:52:03 +01:00
MaBecker
6e04cc7ff6
Revert "remove ifdef RELEASE block"
...
This reverts commit 96a4c68b851354ba91bee4c4c88de540051f8fe1.
2018-01-08 23:36:37 +01:00
MaBecker
96a4c68b85
remove ifdef RELEASE block
...
os_printf is only enable when WIFI_DBG is set
# normal debug
DEFINES="-DWIFI_DBG=1“ make
# verbose deduce
DEFINES="-DWIFI_DBG=2" make
2018-01-08 23:32:14 +01:00
MaBecker
3c4ea9d7b6
no callback if SSID is not available ( fix #1297 )
...
* add reason new in SDK 2.0
* extend callback check
2018-01-07 13:52:28 +01:00
MaBecker
5bf71e2dd4
fix issue #752
2018-01-05 00:22:50 +01:00
MaBecker
ae3a89f31a
ESP8266: Remove osprintf for RELEASE
2017-09-15 10:40:17 +02:00
MaBecker
94031dbc65
ESP8266: move code save section to fist partition for memory mapping ( fix #1240 )
...
only fist partition is memory mapped
2017-09-14 21:54:29 +02: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
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
MaBecker
ffbc6bd8f4
fix issue #753
2017-07-21 14:46:11 +02:00
MaBecker
fdda1059c5
fix issue #1037
...
fix found by @iotong
2017-07-21 12:41:59 +02:00
Standa Opichal
bb13604e6b
Added SocketType argument to net->createsocket() method.
2017-06-23 22:51:56 +02:00
Gordon Williams
c09739f663
Remove duplicate JSON code and WiFi functions in reference, fix #1155
2017-04-29 19:02:51 +01:00
MaBecker
7bc5093fca
update ESP8266_4MB.py plus dependencies
2017-04-17 10:02:04 +02:00
MaBecker
ca820c353a
update ESP8266_4MB
2017-04-16 21:22:59 +02:00
MaBecker
81204d6b15
use 0x200000 as save section and 0x300000 as flash section
2017-02-27 22:42:46 +01:00
MaBecker
6421b97f5e
add save areas for FLASH_4MB_C1
2017-02-27 07:50:56 +01:00