8000 duktape upgrade to 2.6.0, bugfixes and ssl fixes · marcelkottmann/esp32-javascript@e185223 · GitHub
[go: up one dir, main page]

Skip to content

Commit e185223

Browse files
duktape upgrade to 2.6.0, bugfixes and ssl fixes
1 parent 786d805 commit e185223

File tree

20 files changed

+4131
-1856
lines changed

20 files changed

+4131
-1856
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ cmake_minimum_required(VERSION 3.5)
55
# set BOARD_VARIANT to define your ESP32 board. Valid values
66
# are the directory names below ./components/arduino-esp32/include/variants/
77
# or esp32-javascript/include/variants/
8-
set(ENV{BOARD_VARIANT} "../arduino-esp32/include/variants/esp32s2")
8+
set(ENV{BOARD_VARIANT} "../esp32-javascript/include/variants/my")
99

1010
# set ESP32_JS_PROJECT_NAME to define your project component name.
1111
# Place your component below ./components directory. Set to ""

README.md

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
"Lightweight" JS interpreter for ESP32. Provides JS-based eventloop implementation
66
and native asynchronous network and timer functions.
7-
Because of the limited memory on ESP32-WROOM modules, the full functionality is currently only realizable on ESP32-WROVER modules, that include additional 4MB of SPIRAM memory.
7+
Because of the limited memory on ESP32-WROOM modules, the full functionality is currently only realizable on ESP32-WROVER and ESP32-S2-WROVER modules, that came with at least 2MB integrated SPIRAM.
88

99
## Content
1010

@@ -29,28 +29,25 @@ Clone esp32-javascript inside your esp directory (normally ~/esp):
2929
git clone https://github.com/pepe79/esp32-javascript.git
3030
```
3131

32-
Change into ~/esp/esp32-javascript.
32+
Change into ~/esp/esp32-javascript
3333

3434
```shell
3535
cd ~/esp/esp32-javascript
3636
```
3737

38-
Maybe you want to change the BOARD_VARIANT in the ./CMakeLists.txt file.
39-
38+
Maybe you want to change the BOARD_VARIANT in the ./CMakeLists.txt file
39+
for the integrated arduino-esp32 bindin 8000 gs.
4040

4141
First build the project with
4242

4343
```shell
44-
#for ESP32
44+
#for ESP32 devices
4545
idf.py build
4646

47-
#for ESP32-S2
47+
#for ESP32-S2 devices
4848
idf.py -DIDF_TARGET=esp32s2 build
4949
```
5050

51-
If you have an ESP32-S2 device build it like this:
52-
53-
5451
Connect your ESP32 Dev Board via USB and run
5552

5653
```shell
@@ -62,7 +59,7 @@ Use the keyboard shortcut `AltGr + ]` to leave serial monitor.
6259
Now you have installed the pre-configured boot script.
6360

6461
If this is your first install, your onboard LED should blink now. Blinking signals that your board has started a soft ap with the ssid "esp32". With your mobile or desktop connect to the WLAN SSID "esp32" and open http://192.168.4.1/setup (if you have not changed the default credentials your username / password is esp32 / esp32 ). You can change the default password in
65-
[firmware-config.ts](./components/esp32-javascript/modules/esp32-javascript/firmware-config.ts) by changing the value of key`password`.
62+
[firmware-config.ts](./components/esp32-javascript/modules/esp32-javascript/firmware-config.ts) by changing the value of key `password`.
6663

6764
On the Setup page you can configure your WLAN settings and an URL to download your JS main script from.
6865

@@ -114,10 +111,21 @@ You can erase the persistent flash memory, which will be equivalent to a factory
114111

115112
## Compatibility
116113

117-
### Devices
118-
Tested with ESP32 WROVER and ESP-S2 WROVER devices.
114+
### Device Requirements
115+
* Supported chips ESP32 and ESP32-S2
116+
* 2 MB Minimum Flash Size
117+
* 2 MB Minimum external SPI RAM (WROVER)
118+
119119
### ESP-IDF
120-
Tested with esp-idf [release/v4.2](https://github.com/espressif/esp-idf/tree/release/v4.2)
120+
121+
| Version | Compatible |
122+
| ----------------------------------------------------------------- | :--------------------: |
123+
| [4.2](https://github.com/espressif/esp-idf/releases/tag/v4.2) | :heavy_check_mark:[^1] |
124+
| [4.2.1](https://github.com/espressif/esp-idf/releases/tag/v4.2.1) | :heavy_check_mark:[^1] |
125+
126+
[^1]: SSL client connections currently not working properly for ESP32-S2 devices due to esp-idf bug in 4.2.x:
127+
https://github.com/espressif/esp-idf/pull/6998 , but can be fixed manually (see changes in PR).
128+
121129
## API
122130

123131
[API documentation](docs/README.md)

babel.config.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{
2-
"presets": ["minify"]
2+
"presets": ["minify"],
3+
"comments": false
34
}

0 commit comments

Comments
 (0)
0