• ...long story short - after digging up the versatile USB-to-Serial: Hurray, it just woks: Espruino 2v00 on the mini ESP8266 ESP-09 - 10x10mm (~3/8..0.393..7/16").

    See also sister conversation WebServer and Chirp Sensor (moisture, temperature, light) on ESP-09.

    // EspruinoOnESP09Test.js
    // after flashing w/ Espruino 2v00 via pico
    
    var wifiCreds = require("wifiCreds");
    
    var wifi = require("Wifi");
    
    function onInit() {
      console.log("Connecting to wifi...");
      wifi.connect(wifiCreds.ssid
          , {password:wifiCreds.pw}, function(err) {
        if (err) {
          console.log('error during connect:',err);
          wifi.disconnect();
        } else {
          console.log('Connected to wifi.');
          wifi.stopAP();
          //wifi.save();
        }
      });
    }
    
    setTimeout(onInit,1000);
    

    And console output:

    `
    >
     ____                 _
    |  __|___ ___ ___ _ _|_|___ ___
    |  __|_ -| . |  _| | | |   | . |
    |____|___|  _|_| |___|_|_|_|___|
             |_| espruino.com
     2v00 (c) 2018 G.Williams
    Espruino is Open Source. Our work is supported
    only by sales of official boards and donations:
    http://espruino.com/Donate
    Flash map 1MB:512/512, manuf 0xef chip 0x4014
    >
    Connecting to wifi...
    Connected to wifi.
    >process.env
    ={
      VERSION: "2v00",
      GIT_COMMIT: "ff35517",
      BOARD: "ESP8266_BOARD",
      FLASH: 0, RAM: 81920,
      SERIAL: "18fe349c-153b",
      CONSOLE: "Serial1",
      MODULES: "Flash,Storage,hea" ... "r,crypto,neopixel",
      EXPTR: 1073643636 }
    >process.memory()
    ={ free: 1633, usage: 67, total: 1700, history: 52,
      gc: 0, gctime: 1.397 }
    >
    `
    

    1 Attachment

    • Espruino_on_ESP8266_Esp09.jpg
About

Avatar for allObjects @allObjects started