Avatar for Ollie


Member since Jul 2014 • Last active Mar 2017
  • 25 conversations

Most recent activity

  • in ESP8266
    Avatar for Ollie

    Looks good. So what do you want to do next?
    You have the whole internet available to your tiny ESP8266...

  • in ESP8266
    Avatar for Ollie

    Re the output after save(). I'd be inclined to ensure the board is wiped totally. For this you may need something like "esptool.py", I don't know what flasher.js does with respect to wiping board before flashing

  • in ESP8266
    Avatar for Ollie

    Thanks for that. I thought it was a big ask.

    It's not exactly as I had hoped, but the good news is your board looks fine. Next step is to get yourself on a network.

    Something like this, but checkout the documentation for all the detail

    wifi.connect(ssid, {password:pw}, function(err){
     if (!err) {console.log("Connected");}
  • in ESP8266
    Avatar for Ollie

    This is most odd. We should use the Web IDE though - we have a good starting point for debugging and a common understanding of the interface.

    Please can you post the output/screen grabs of these actions.

    1) Immediately after you connect via the Web IDE.
    2) After you type reset() in console on left hand side of IDE, and hit return
    3) After you type save() in the console, and have hit return
    4) After you key the var wifi= require("Wifi") and hit return
    5) After you key the wifi.getStatus() and hit return

  • in News
    Avatar for Ollie

    I think this is a great idea @Gordon. Good luck with it.

  • in ESP8266
    Avatar for Ollie

    Where is that function call to main() coming from? Do you have code saved that is loaded at boot?

    You should get this, or similar, this is the output of a connection with screen:

    |   __|___ ___ ___ _ _|_|___ ___ 
    |   __|_ -| . |  _| | | |   | . |
    |_____|___|  _|_| |___|_|_|_|___|
              |_| http://espruino.com
     1v91.122 Copyright 2016 G.Williams
    Espruino is Open Source. Our work is supported
    only by sales of official boards and donations:
    Flash map 4MB:512/512, manuf 0xef chip 0x4016
    >var wifi=require("Wifi")
    =function () { [native code] }
      "mode": "sta", 
      "station": "connected", 
      "ap": "disabled", 
      "phy": "11n", 
      "powersave": "ps-poll", 
      "savedMode": "off"

    In the terminal try issue a reset() first, this will clear saved code, then issue a save() then try again.

  • in ESP8266
    Avatar for Ollie


    require("Wifi") is correct if you have flashed Espruino to the nodeMCU itself.

    When using a using a terminal app to send code, you won't have modules autoloaded by default, but that shouldn't be your issue with the Wifi module as that is built in.

    Are you saying that you get undefined returned from this?

    var wifi = require("Wifi");
  • in Puck.js
    Avatar for Ollie

    @oesterle has suggested 3 things I'd like to 'plus 1'

    1) Fun program onboard when you receive it - might defer "my puck is not working" type support
    2) Yes, my thoughts too. It's clearly 3 LEDs - the light doesn't diffuse well.
    4) The battery insulator tab. I've raised this too. Clear or not, add a bit more on it - so it can be pulled out using fingers, not pincers.

    A couple of other minor annoyances

    • The fingernail lift on battery trick is fantastic to reset - once you know about it. Access to battery could be easier - or a reset button.

    • Top cover material. It's hard to keep clean. I'm not sure if this is static or what, but it attracts dust. No big deal, but are there other options, that might not?

  • in ESP8266
    Avatar for Ollie

    When you wrote this


    You're setting up the server to listen on port 8080 i.e http://ip address :8080. It is distinct from port 80. 80 is the default for http - so the only one you don't have to explicitly call in the URI if your server is listening on port 80. Similarly 443 is the default for a server offering SSL/TLS via HTTPS

    You need to contact the server using the port it is listening on - if that is port 80 you can omit it.

    Beyond that you need to have a response handler - your pageHandler function that can output the correct response that a browser can use/understand. The Espruino page on Internet has numerous examples that will help you write the handler function.

    Re Telnet. Once you have Wifi setup and you are connected. If you know the IP address of your board, and set that up on the communications page as x.x.x.x:23, you should be able to establish a Telnet connection - unless the build of Espruino you are using has had Telnet option turned off. Standard builds should have Telnet enabled.

  • in ESP8266
    Avatar for Ollie

    Test Telnet. Connect on port 23 from
    IDE. If works, check or post up your http response handler function code - problem most likely in there