Avatar for Proceed

Proceed

Member since Jul 2019 • Last active Aug 2019
  • 1 conversations
  • 4 comments

Most recent activity

  • in General
    Avatar for Proceed

    Most of the output I received was New interpreter error: Execution Interrupted. I tried running it with and without minification, but that didn't make a difference. Supposedly something could have went wrong when transpiling, as a lot of the code uses features not available on Espruino (async comes to mind).

    @Gordon the bundled file is essentially a process engine that expects the PIXL to perform certain tasks on events. An example would be the task of writing something to the screen based on an interaction with another IOT device running the engine.

    Can you elaborate what you mean by saying "around 40k JS code"? Is there a list of JavaScript features/libraries available on Espruino? Maybe I don't need to transpile the entirety of code.

  • in General
    Avatar for Proceed

    Hi @Robin, I edited the original post to include the process.memory() output.
    Unfortunately I am not able to get rid of parts of the code as it's an engine that needs most of it's parts running.

  • in General
    Avatar for Proceed

    If there's need for it, I can clarify what is happening in the bundled file. However I didn't seem to be relevant for uploading the code.

  • in General
    Avatar for Proceed

    Hello,

    I'm having trouble uploading a bundled file to my PIXL.js. It will take a while to complete the upload, but it won't give positive feedback.

    The code which I'm trying to execute looks something like this:

    const engine = require('engine');
    
    E.on('init', () => {
      Terminal.println('Something.');
    });
    
    

    where engine is the aforementioned file and I'm running save() to save to the flash storage.
    I am already having doubts that my bundle is too big, but it would be helpful if there was an indicator for that.

    Edit:
    Output for process.memory():

    {
       free: 2348,
       usage: 152,
       total: 2500,
       history: 22
    }
    
Actions