-
• #3
I need Ble too on same time .
-
• #4
See http://www.espruino.com/Saving and try 'Save on send'.
-
• #5
Remove your last
save()
and turn on save on send in the ide as Gordon suggested.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.
-
• #6
Thanks now its working :)
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){
});
});
save();
Output :
When i check a memory
1v99
{ "free": 2471, "usage": 29, "total": 2500, "history": 0,
"gc": 0, "gctime": 1.799 }
its half of previous