Most recent activity
-
- 13 comments
- 5,665 views
-
-
-
Hello everybody,
I tried with different versions of firmware (2.04) and have every time the same issue:Uncaught InternalError: Failed! mbedtls_ssl_setup: Not enough memory
>process.env ={ VERSION: "2v04", GIT_COMMIT: "3956264e", BOARD: "ESP32", FLASH: 0, RAM: 524288, SERIAL: "240ac40a-ef84", CONSOLE: "Serial1", MODULES: "Flash,Storage,hea" ... "r,crypto,neopixel", EXPTR: 1073484860 } >process.memory() ={ free: 2267, usage: 33, total: 2300, history: 10, gc: 0, gctime: 1.86 } >WARNING: Scan stop failed WARNING: set rssi scan not implemeted yet
Code Testing:
var ssid = "******"; var password = "*****"; var port = 80; var wifi = require('Wifi'); console.log("started"); wifi.connect(ssid, {password: password}, function() { console.log('Connected to Wifi. IP address is:', wifi.getIP().ip); var http = require('http'); http.get("https://www.google.com", function(res) { res.on('data', function(data) { console.log(data); }); }); // wifi.save(); // Next reboot will auto-connect });
Full Error:
____ _ | __|___ ___ ___ _ _|_|___ ___ | __|_ -| . | _| | | | | . | |____|___| _|_| |___|_|_|_|___| |_| espruino.com 2v04 (c) 2019 G.Williams Espruino is Open Source. Our work is supported only by sales of official boards and donations: http://espruino.com/Donate >started ERROR: Wifi: event_handler STA_START: esp_wifi_connect: 12298(SSID is invalid) WARNING: Wifi:startMDNS - espressif Connected to Wifi. IP address is: 192.168.2.54 Uncaught InternalError: Failed! mbedtls_ssl_setup: Not enough memory at line 13 col 6 }); ^ in function called from system
Any help will be appreciated
Regards, pinnchus
-
-
-
Tried to reduce JSVARs by changing the 40,000 value in ...../targets/esp32/main.c (Did not find any other place to do it)
With little or not success, JSVARS reduced, but still not working.
My be this is exceeding my knowledge, will wait for @maze1980 version.
Thanks to all, for your efforts.