You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • Just tried this, and it works fine here:

    require("http").get("http://www.espruino­.com/press/logo_square_blur.png", function(res) {
      res.on('data', function(data) { console.log("Got "+data.length+" bytes"); });
      res.on('close', function() { console.log("Closed"); });
    });
    

    Even setting a few of them off at once. Using https still works, but I can't do more than one because of memory.

    Please can you try checking E.getAnalogVRef() and seeing what it says? It should be pretty close to 3.3 (well within 0.1v). Could you also check E.getTemperature()?

    Perhaps you could do something like:

    v=0
    setInterval(function() {
      v = (v+E.getAnalogVRef())/2;
      digitalWrite(LED1, (v<3) || (v>3.6));
    },1);
    

    It'll then light the red LED if the voltage goes too far out of range.

    I've hooked it up to the oscilloscope with the WiFi router about as far away as I can sensibly get it, so it'll be using as much power as it can, and I do see some little troughs in the voltage - it goes down to 2.75v for about 250uS - which seems to be about what you'd expect based on the voltage regulator's response time (it's not overloaded, it just takes 200uS or so to respond), but that would appear to be fine.

    Do you have more than one Espruino WiFi device? Does it happen on all of them?

About

Avatar for Gordon @Gordon started