Problem of Low Memory in esp32 #7088
Unanswered
espruino-discuss3
asked this question in
ESP32
Replies: 1 comment
-
Posted at 2018-05-29 by Frida See http://forum.espruino.com/comments/14255395/ Posted at 2018-05-29 by Saurabh I need Ble too on same time . Posted at 2018-05-29 by @gfwilliams See http://www.espruino.com/Saving and try 'Save on send'. Posted at 2018-05-29 by Wilberforce Remove your last This then puts the code into flash memory, so it does not take up the ram space. You will then have plenty of free vars for you programme to work. Posted at 2018-05-30 by Saurabh Thanks now its working :) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2018-05-29 by Saurabh
Hi All,
i am transmitting BME680 data to my server using websocket . To doing this i am using espruino 1v99.
I am facing issue of low memory every time and unable to write bme680 module code into esp32.
All this things is working fine in espruino 1v96. but i cant use lower version because i have to use BLE feature too.
My code :
//reset();
//E.setBootCode();
//ws.send("hello world");
//I2C1.setup({scl:22,sda:23});
var wifi = require("Wifi");
E.on('init',function() {
var i2c = new I2C();
i2c.setup({sda:32,scl:33});
var bme = require("BME680").connectI2C(i2c, {addr:0x77});
var wifi = require('Wifi');
wifi.connect("saurabh.verma", {password:"test1234"}, function(err){
var host = "154.0.82.179";
var WebSocket = require("ws");
var ws = new WebSocket(host,{
path: '/',
port: 8080, // default is 80
protocol : "echo-protocol", // websocket protocol name (default is none)
protocolVersion: 13, // websocket protocol version, default is 13
origin: 'Espruino',
keepAlive: 60,
headers:{ some:'header', 'ultimate-question':42 } // websocket headers to be used e.g. for auth (default is none)
});
});
});
save();
Output :
=undefined
WARNING: --- gap_setScan 0
WARNING: Scan stop failed
WARNING: set rssi scan not implemeted yet
WARNING: has central connection not implemented yet
Compacting Flash...
Calculating Size...
Writing..
Compressed 40000 bytes to 14608
Uncaught Error: Function "connectI2C" not found!
at line 5 col 31
var bme = require("BME680").connectI2C(i2c, {addr:0x77});
When i check a memory
1v99
{ "free": 2471, "usage": 29, "total": 2500, "history": 0,
"gc": 0, "gctime": 1.799 }
its half of previous
Beta Was this translation helpful? Give feedback.
All reactions