Hi,
I don't seem to be able to load with Save on Send of the web ide. save() works and load correctly, but with setBootCode looks like the load does not load anything. Sometimes it triggers "ERROR: Prompt not detected - upload failed. Trying to recover...".
For me, Save-on-send didn't work either on the v1.93, I get "Not connected to the internet", with and without load-as-function option (see http://forum.espruino.com/conversations/296431/). Until now, the only way to get this option working is with v1.93.162 I compiled (http://forum.espruino.com/conversations/305014/#comment13761399).
Here is my code :
function start(){
pin=NodeMCU.D2;
var dht22 = require("DHT22").connect(pin);
var dht22_read_test = function() {
dht22.read(
function(a){
console.log("Temp is "+a.temp.toString()+ "C and RH is "+a.rh.toString()+"%");
});
};
setInterval(dht22_read_test,3000);
print("started");
};
E.on("init",start);
print("init");
Here is the result with v1.94 :
_____ _
| __|___ ___ ___ _ _|_|___ ___
| __|_ -| . | _| | | | | . |
|_____|___| _|_| |___|_|_|_|___|
|_| http://espruino.com
1v94 Copyright 2016 G.Williams
Espruino is Open Source. Our work is supported
only by sales of official boards and donations:
http://espruino.com/Donate
Flash map 4MB:512/512, manuf 0xef chip 0x4016
>Erasing Flash..................
Writing....
Compressed 25600 bytes to 113Loading 1130 bytes from flash...
=undefined
>
=undefined
>E.getSizeOf(global)
=13
>E.getSizeOf(global,1)
=[
{
"name": "\xFF",
"size": 16 },
{
"name": "E",
"size": 2 }
]
>
Here is the result with 1.93.162:
_____ _
| __|___ ___ ___ _ _|_|___ ___
| __|_ -| . | _| | | | | . |
|_____|___| _|_| |___|_|_|_|___|
|_| http://espruino.com
1v93.162 Copyright 2016 G.Williams
Espruino is Open Source. Our work is supported
only by sales of official boards and donations:
http://espruino.com/Donate
Flash map 4MB:512/512, manuf 0xef chip 0x4016
>Erasing Flash.....
Writing....
Loading 1124 bytes from flash...
init
started
Temp is 26.1C and RH is 47.6%
Temp is 26.2C and RH is 48.3%
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Hi,
I don't seem to be able to load with Save on Send of the web ide. save() works and load correctly, but with setBootCode looks like the load does not load anything. Sometimes it triggers "ERROR: Prompt not detected - upload failed. Trying to recover...".
For me, Save-on-send didn't work either on the v1.93, I get "Not connected to the internet", with and without load-as-function option (see http://forum.espruino.com/conversations/296431/). Until now, the only way to get this option working is with v1.93.162 I compiled (http://forum.espruino.com/conversations/305014/#comment13761399).
Here is my code :
Here is the result with v1.94 :
Here is the result with 1.93.162: