5289 Commits

Author SHA1 Message Date
jumjum123
0054b39c00 ESP32.py
- added variables_mode in config.
build_platform_config.py
- added define for variables_mode
jsvar.h
- added jsVarsSize;  //size of jsVars for option malloc
- added support of malloc jsVars in jsvInit
jsvar.c
- added definition jsVars for variables_mode_malloc
jshardwareESP32.h
- new file with functions to set/get enable status of BLE and Wifi
jshardwareESP32.c
- new file with functions to set/get enable status of BLE and Wifi
ESP32.make
- added jshardware.c to SOURCES
main.c
- added handling for Wifi enabled
- added calculation for jsVars
- initialise jsVars based on calculation
jshardware.c
- used new API call to get Serial Number, even if Wifi is not enabled
- initialises BLE, if BLE is enabled (in NVS storage)
bluetooth.c
- check if BLE is enabled before initialising
jswrap_esp32.h
- defines functions to enable BLE and/or Wifi
jswrap_esp32.c
- wrapper for functions to enable BLE/Wifi, remove code from Flash, to avoid overflow in jsVars
- added status for BLE/Wifi to ESP32.getStatus
esp32_gap_func.c
- get mac adress even if Wifi is not enabled

 Changes to be committed:
	modified:   boards/ESP32.py
	modified:   make/family/ESP32.make
	modified:   scripts/build_platform_config.py
	modified:   src/jsvar.c
	modified:   src/jsvar.h
	modified:   targets/esp32/BLE/esp32_gap_func.c
	modified:   targets/esp32/bluetooth.c
	modified:   targets/esp32/jshardware.c
	new file:   targets/esp32/jshardwareESP32.c
	new file:   targets/esp32/jshardwareESP32.h
	modified:   targets/esp32/jswrap_esp32.c
	modified:   targets/esp32/jswrap_esp32.h
	modified:   targets/esp32/main.c
2018-06-01 12:23:00 +02:00
wilberforce
a77c9c6082 add mac and channel to wifi scan 2018-05-15 21:08:12 +12:00
Gordon Williams
dfac6037c7 ESP32: Fix accidental initialisation of UART3 when switching to Telnet (fix #1362) 2018-05-14 14:07:25 +01:00
Gordon Williams
11ac45f88a Merge branch 'ESP32-v3.0' 2018-05-14 11:49:35 +01:00
Gordon Williams
5223d4e936 Merge branch 'master' into ESP32-v3.0 2018-05-14 11:49:20 +01:00
wilberforce
c9ae999afb clean up conditions 2018-05-14 21:41:42 +12:00
wilberforce
664fe948cb clean up conditions 2018-05-14 21:26:44 +12:00
Gordon Williams
225c08f174
Merge pull request #1414 from espruino/MaBecker-patch-1
add ESP8266 pr #1411 and #1412
PIXLJS_REV_1i
2018-05-14 09:01:03 +01:00
Gordon Williams
056af74a88
Merge pull request #1415 from opichals/cope-with-http-headers-longer-than-mss
Fix receiving of large HTTP headers
2018-05-14 08:58: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
Gordon Williams
228e32c1da
Merge pull request #1416 from opichals/http-chunked-handle-partial-chunk-in-buf
Handle partial http chunk buf contents
2018-05-14 08:19:46 +01:00
wilberforce
cdc1f4f925
Update ChangeLog 2018-05-14 11:33:44 +12:00
MaBecker
33fa7dcfbb add channelAP to .wificfg 2018-05-13 17:13:02 +02:00
Standa Opichal
9af881942b Polished the test's console output formatting 2018-05-13 10:34:37 +02:00
Standa Opichal
62f18413aa Handle partial http chunk buf contents
When the chunk itself is bigger than the MSS a 'data'
event is issued with the available data and a remaining
length is written as a new http chunk header data to
the *receiveData string before reading more data from
the network.
2018-05-13 10:28:07 +02:00
MaBecker
1e55f843b2 fix wifi restore ssidAP 2018-05-13 07:45:43 +02:00
wilberforce
0181ed9bf5 update esp-idf to v3.0. BLE support - thanks to @jumjum. 2500 vars. Erase flash before flashing 2018-05-13 15:27:22 +12:00
wilberforce
d73e908f39 update esp-idf to v3.0. BLE support - thanks to @jumjum. 2500 vars. Erase flash before flashing 2018-05-13 14:52:58 +12:00
wilberforce
15c3a9ae93 update esp-idf to v3.0. BLE support - thanks to @jumjum. 2500 vars. Erase flash before flashing 2018-05-13 14:24:17 +12:00
wilberforce
883000cf81 update esp-idf to v3.0. BLE support - thanks to @jumjum. 2500 vars. Erase flash before flashing 2018-05-13 13:54:02 +12:00
Standa Opichal
faf7157093 Fix receiving of large HTTP headers
Added a test which sends HTTP headers which take more than
MSS bytes (536) and therefore the httpParseHeaders() needs to be
called later again after the next packet arrives.

Fixes #1405
2018-05-12 22:15:03 +02:00
wilberforce
c5921bd803 update require("Flash").getFree(); addresses 2018-05-12 09:51:43 +12:00
Mark Becker
38580b71cc
add ESP8266 #1411 and #1412 2018-05-11 15:34:52 +02:00
wilberforce
3f99ffe896
Correct saved code location 0x2C0000 2018-05-12 00:21:32 +12:00
Gordon Williams
f2e8987380 improve arraybuffer doc linking 2018-05-11 12:11:39 +01:00
Gordon Williams
a42531e6b7 Merge branch 'master' of github.com:espruino/Espruino 2018-05-11 12:06:34 +01: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
Rhys Williams
c33d1102dd correct firmware size 2018-05-11 21:09:41 +12:00
Rhys Williams
4f930f0271 sync network.c 2018-05-11 21:02:30 +12:00
Rhys Williams
c01485b175 New partition table and layout - partitions_espruino.bin needs to be flashed 2018-05-11 20:58:48 +12: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
Gordon Williams
917ebf6453 Merge branch 'master' of github.com:espruino/Espruino 2018-05-10 10:58:06 +01:00
Gordon Williams
c2525d7bdd Pixl.js: Ensure Pixl.menu changes to bitmap fonts
Pixl.js: tweaked bias/contrast to improve display quality
2018-05-10 10:57:50 +01:00
Gordon Williams
fdb155e5d7 add to changelog 2018-05-10 10:54:52 +01:00
Gordon Williams
d551bfcc13 BLE docs 2018-05-10 09:43:32 +01:00
Gordon Williams
1a82621936
Merge pull request #1410 from opichals/on-message-queued
Make on('message') a queued callback
2018-05-10 08:54:47 +01:00
Gordon Williams
f3c0ea7e1e
Merge pull request #1409 from opichals/tidy-up-networks-by-using-JsNetUDPPacketHeader
Tidy up networks by using JsNetUDPPacketHeader
2018-05-10 08:53:49 +01:00
Gordon Williams
b28f507d0a
Merge pull request #1408 from opichals/avoid-double-net-connect
Avoid double on('connect') for non-HTTP connects
2018-05-10 08:48:51 +01:00
Standa Opichal
8d52ae5238 Tidy up networks by using JsNetUDPPacketHeader 2018-05-10 01:29:50 +02:00
Standa Opichal
47bc0f91c7 Make on('message') a queued callback
And optimize the socketReceived()/socketReceivedUDP() calls
2018-05-10 00:16:07 +02:00
Standa Opichal
87bfcddf2f Avoid double on('connect') for non-HTTP connects
Fixes #1405
2018-05-09 21:54:20 +02:00
Gordon Williams
99d2fed797
Merge pull request #1407 from espruino/MaBecker-patch-1
add ESP8266 #1380, #1358
2018-05-09 16:02:51 +01:00
Mark Becker
5a5404d543
add ESP8266 #1380, #1358 2018-05-09 16:48:15 +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
Gordon Williams
a1653f2e16 Merge branch 'master' of github.com:espruino/Espruino 2018-05-09 11:52:34 +01:00
Gordon Williams
61585f7069 Fix memory leak if an exception is thrown within a rejected promise 2018-05-09 11:52:31 +01:00
Gordon Williams
94d5063aa9 nRF5x: Fix memory leak on NRF.connect 2018-05-09 11:51:56 +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