Avatar for jakub.frydrych

jakub.frydrych

Member since Dec 2016 • Last active Jan 2017
  • 1 conversations
  • 3 comments

Most recent activity

  • in ESP8266
    Avatar for jakub.frydrych

    Many thanks,

    I did not understand reset() func and take this func as restart device with boot.

    Now is after reboot or power-on code loaded from memory.

    Thanks for explanation and your time.

  • in ESP8266
    Avatar for jakub.frydrych

    Hi, thaks for answear.

    I test this tip and after restart device ( use func reset() ), device not loaded code from init function. What I do wrong ?

    Testing code for init func :

    E.on('init', function() {
          console.log("Device started");
    });
    

    And console output, after save(); code correctly loaded, but after reset() not load code from init function. If I call load() func after reset, code correctly run.

    Connected
    >
    >
    =undefined
    Wifi.getIP: {
      "ip": "10.0.0.42",
      "netmask": "255.255.255.0",
      "gw": "10.0.0.138",
      "mac": "5c:cf:7f:24:77:e4"
     }
    >
    =undefined
    >
    =undefined
    Erasing Flash.....
    Writing....
    Compressed 27200 bytes to 2026
    Checking...
    DDevice started
    >reset();
    =undefined
     _____                 _
    |   __|___ ___ ___ _ _|_|___ ___
    |   __|_ -| . |  _| | | |   | . |
    |_____|___|  _|_| |___|_|_|_|___|
              |_| http://espruino.com
     1v89 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 0xe0 chip 0x4016
    > 
    
  • in ESP8266
    Avatar for jakub.frydrych

    Hi,

    please help me with loading espruino code from flash after reset() or power-on device esp8266 12f.

    My device has espruino ver. 1.89 and I need start http server after reset() or power-on.

    I try onInit() func, E.on('init', ... and E.setBootCode function, but without success.

    I know that esp8266 not full supported board for espruino, but is chance load code ?

    Lot of thanks for answears.

    Jakub

Actions