Avatar for Drugge

Drugge

Member since Dec 2014 • Last active Nov 2020
  • 2 conversations
  • 3 comments

Most recent activity

    • 2 comments
    • 1,583 views
  • in Puck.js, Pixl.js and MDBT42
    Avatar for Drugge

    Hi.

    Would it be possible to run EspruinoHub on a Synology NAS? I run all my smart home stuff as Docker containers on the NAS right now (HomeAssistant, NodeRed, Mosquitto etc) so it would be nice to also let Puck.js control my home without the need of an RaspberryPi.

    /Emil

  • Avatar for Drugge

    I dropped my pledge to show Patreon that I thought it was a bad idea. Now that they changed their mind I'm back pledging! :) Althouth, due to the VAT (I live in Sweden) I am considering switching to PayPal. Too bad I will be missing the Patreon exclusives.

  • in Pico / Wifi / Original Espruino
    Avatar for Drugge

    I have trouble getting wifi to work when I flash the 0.25.0.0 firmware to the ESP8266. I am using the test code:

    digitalWrite(B9,1);
    Serial2.setup(115200, { rx: A3, tx: A2 });
    var wifi = require("ESP8266WiFi_0v25").connect(Seri­al2, function(err){
      if (err) throw err;
      console.log("Connecting to WiFi");
      wifi.connect("SSID", "PASS", function(err){
        if (err) throw err;
        console.log("Connected");
        require("http").get("http://www.pur3.co.­uk/hello.txt", function(res){
          console.log("Response: ", res);
          res.on('data', function(d){ console.log("--->"+d); });
        });
      });
    });
    wifi.at.debug();
    

    I get the following output:

    Connecting to WiFi
    ["AT+CWMODE=1\r\n"
    ] "\r\nOK\r\n" <--- "\r\nOK\r\n"
    ["AT+CWJAP=\"SSID\",\"PASS\"\r\n"
    ] "W" <--- "W"
    ] "WIFI CONNECTED\r\nWIFI GOT IP\r\n" <--- "IFI CONNECTED\r\nWIFI GOT IP\r\n"
    ] "\r" <--- "\r"
    ] "\nOK\r\n" <--- "\nOK\r\n"
    Connected
    ["AT+CIPSTART=0,\"TCP\",\"http://www.pur­3.co.uk\",80\r\n"
    ] "DNS Fail\r\n\r" <--- "DNS Fail\r\n\r"
    ] "\nERROR\r\n" <--- "\nERROR\r\n"
    >wifi.getIP(function(a) { });
    ["AT+CIFSR\r\n"
    =undefined
    ] "+CIFSR:STAIP" <--- "+CIFSR:STAIP"
    ] "+CIFSR:STAIP,\"84.104.101.32\"\r\n+CIFS­R:STAMAC,\"1" <--- ",\"84.104.101.32\"\r\n+CIFSR:STAMAC,\"1­"
    ] "+CIFSR:STAMAC,\"18:fe:34:9b:48:c6\"\r\n­\r\nOK\r\n" <--- "8:fe:34:9b:48:c6\"\r\n\r\nOK\r\n"
    

    As you can see I get a strange DNS Fail message. After that I manually typed in wifi.getIP(...) and it seems like I never get a dynamic IP from the router.

    However, if I flash the old 0018000902-AI03 firmware, everything works fine. Also wifi.getIP(...) shows the IP assigned from the router.

    I am using the Shim Version 1 soldered to the Pico board.

Actions